// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // //--------------------------------------------------------------------------- // // ClassName: Histo - Generic histogram/ntuple manager class // // // Author: M. Esposito 20.03.13 // //---------------------------------------------------------------------------- // #ifndef Pixel_h #define Pixel_h 1 #include "globals.hh" #include #include "G4DynamicParticle.hh" #include "G4VPhysicalVolume.hh" #include "G4DataVector.hh" #include "G4Track.hh" #include "HistoManager.hh" #include "PixelMessenger.hh" ///class Histo; class Pixel { public: Pixel(); ~Pixel(); void Sample(std::vector ,std::vector , G4int motherCopyno, G4String RTtype,G4int number,G4int PDGid); void SetSensorLength(G4double len) { length = len; }; G4double GetSensorLength() { return length; }; void SetPixelPitch(G4double p) { pitch = p; }; G4double GetPixelPitch() { return pitch; }; void SetThreshold(G4double t) { threshold = t; }; G4double GetThreshold() { return threshold ; }; /// Histo* GetHisto(){return histo;} private: /// Histo* histo; HistoManager* histoManager; PixelMessenger* pixelMessenger; private: std::vector yHit; std::vector zHit; std::ofstream histofiles; std::ofstream histofiles_sh; std::vector data; G4String RTtype; G4double threshold; G4double pitch; G4double length; }; #endif