//----------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Lead shield for curler absorption for combined // TPC+FOPI MC // Active material allows extraction of points to pass // track parameters to FOPI SIM // // // Environment: // Software developed for the FOPI GEM-TPC detector // // Author List: // Felix Boehmer TUM (original author) // // //----------------------------------------------------------- #ifndef TPCSHIELD_HH #define TPCSHIELD_HH // Base Class Headers ---------------- #include "FairDetector.h" // Collaborating Class Headers ------- #include "TVector3.h" // Collaborating Class Declarations -- class TClonesArray; class FairVolume; class TpcShieldPoint; class TpcShield : public FairDetector{ public: // Constructors/Destructors --------- /** Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors */ TpcShield(const char * Name, Bool_t Active); // Modifiers ----------------------- /** default constructor */ TpcShield(); /** destructor */ virtual ~TpcShield(); /** Initialization of the detector is done here */ //virtual void Initialize(); /** this method is called for each step during simulation (see FairMCApplication::Stepping()) */ virtual Bool_t ProcessHits(FairVolume* v = NULL); /** Registers the produced collections in CBMRootManager. */ virtual void Register(); /** Gets the produced collections */ virtual TClonesArray* GetCollection(Int_t iColl) const ; /** has to be called after each event to reset the containers */ virtual void Reset(); /** replaces G3 initialisation via g3Config.C */ virtual void SetSpecialPhysicsCuts(); /** Create the detector geometry */ void ConstructGeometry(); bool CheckIfSensitive(std::string name); void EndOfEvent(); void BeginEvent(); TpcShieldPoint* AddHit(Int_t trackID, Int_t SecID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss); // Operators // Accessors ----------------------- // Modifiers ----------------------- // Operations ---------------------- private: // Private Data Members ------------ TClonesArray *fTpcShieldPointCollection; public: ClassDef(TpcShield,1) }; #endif //-------------------------------------------------------------- // $Log$ //--------------------------------------------------------------