FairRoot/PandaRoot
|
#include <PndGemDetector.h>
Public Member Functions | |
PndGemDetector () | |
PndGemDetector (const char *name, Bool_t active) | |
virtual | ~PndGemDetector () |
virtual void | Initialize () |
virtual Bool_t | ProcessHits (FairVolume *vol=0) |
virtual void | EndOfEvent () |
virtual void | FinishRun () |
virtual void | Register () |
virtual TClonesArray * | GetCollection (Int_t iColl) const |
virtual void | Print () const |
virtual void | Reset () |
virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
virtual void | ConstructGeometry () |
void | MisalignDetector () |
void | SetExclusiveSensorType (const TString sens) |
void | SetRadDamOption (bool val) |
bool | GetRadDamOption () |
Private Member Functions | |
Int_t | GetSensorId (TString detName) |
bool | CheckIfSensitive (std::string name) |
PndGemMCPoint * | AddHit (Int_t trackID, Int_t detID, Int_t sensID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss) |
void | ResetParameters () |
ClassDef (PndGemDetector, 5) | |
Private Attributes | |
Int_t | fTrackID |
Int_t | fVolumeID |
track index More... | |
TLorentzVector | fPosIn |
Det id. More... | |
TLorentzVector | fPosOut |
entry position in global frame More... | |
TLorentzVector | fMomIn |
exit position in global frame More... | |
TLorentzVector | fMomOut |
momentum More... | |
Double32_t | fTime |
momentum More... | |
Double32_t | fLength |
time More... | |
Double32_t | fELoss |
length More... | |
Int_t | fPosIndex |
energy loss More... | |
TClonesArray * | fPndGemCollection |
bool | fUseRadDamOption |
Hit collection. More... | |
std::vector< std::string > | fListOfSensitives |
enables the detection of neutral particles More... | |
Definition at line 30 of file PndGemDetector.h.
PndGemDetector::PndGemDetector | ( | ) |
Default constructor
Definition at line 46 of file PndGemDetector.cxx.
References fListOfSensitives, fPndGemCollection, and fPosIndex.
PndGemDetector::PndGemDetector | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 62 of file PndGemDetector.cxx.
References fListOfSensitives, fPndGemCollection, and fPosIndex.
|
virtual |
|
private |
Private method AddHit
Adds a PndGemMCPoint to the HitCollection
Definition at line 422 of file PndGemDetector.cxx.
References fPndGemCollection.
Referenced by ProcessHits().
|
private |
Definition at line 329 of file PndGemDetector.cxx.
References fListOfSensitives, and i.
|
private |
|
virtual |
Virtual method Construct geometry
Constructs the PndGemDetector geometry
Definition at line 259 of file PndGemDetector.cxx.
References TString.
|
virtual |
Virtual method CopyClones
Copies the hit collection with a given track index offset
cl1 | Origin |
cl2 | Target |
offset | Index offset |
Definition at line 232 of file PndGemDetector.cxx.
References fPosIndex, i, and offset().
|
virtual |
Virtual method EndOfEvent
If verbosity level is set, Print hit collection at the end of the event and resets it afterwards.
Definition at line 169 of file PndGemDetector.cxx.
References fPndGemCollection, fPosIndex, and Print().
|
virtual |
Definition at line 179 of file PndGemDetector.cxx.
|
virtual |
Accessor to the hit collection
Definition at line 194 of file PndGemDetector.cxx.
References fPndGemCollection.
|
inline |
Definition at line 121 of file PndGemDetector.h.
References fUseRadDamOption.
|
private |
|
virtual |
Definition at line 90 of file PndGemDetector.cxx.
References gGeoManager, and Initialize().
void PndGemDetector::MisalignDetector | ( | ) |
Definition at line 273 of file PndGemDetector.cxx.
References Double_t, gGeoManager, trans, and TString.
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 206 of file PndGemDetector.cxx.
References fPndGemCollection, i, and nHits.
Referenced by EndOfEvent().
|
virtual |
Virtual method ProcessHits
Defines the action to be taken when a step is inside the active volume. Creates CbmTrdPoints and adds them to the collection.
vol | Pointer to the active volume |
Definition at line 103 of file PndGemDetector.cxx.
References AddHit(), PndStack::AddPoint(), fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fTime, fTrackID, fUseRadDamOption, GetSensorId(), kGEM, ResetParameters(), and TString.
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 185 of file PndGemDetector.cxx.
References fPndGemCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 222 of file PndGemDetector.cxx.
References fPndGemCollection, and ResetParameters().
|
inlineprivate |
Private method ResetParameters
Resets the private members for the track parameters
Definition at line 171 of file PndGemDetector.h.
References fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosIndex, fPosOut, fTime, fTrackID, and fVolumeID.
Referenced by ProcessHits(), and Reset().
void PndGemDetector::SetExclusiveSensorType | ( | const TString | sens | ) |
Definition at line 408 of file PndGemDetector.cxx.
References fListOfSensitives.
|
inline |
Definition at line 120 of file PndGemDetector.h.
References fUseRadDamOption, and val.
|
private |
length
Definition at line 138 of file PndGemDetector.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
time
Definition at line 137 of file PndGemDetector.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
enables the detection of neutral particles
Definition at line 145 of file PndGemDetector.h.
Referenced by CheckIfSensitive(), PndGemDetector(), and SetExclusiveSensorType().
|
private |
exit position in global frame
Definition at line 134 of file PndGemDetector.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
momentum
Definition at line 135 of file PndGemDetector.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 142 of file PndGemDetector.h.
Referenced by AddHit(), EndOfEvent(), GetCollection(), PndGemDetector(), Print(), Register(), Reset(), and ~PndGemDetector().
|
private |
Det id.
Definition at line 132 of file PndGemDetector.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
energy loss
Definition at line 141 of file PndGemDetector.h.
Referenced by CopyClones(), EndOfEvent(), PndGemDetector(), and ResetParameters().
|
private |
entry position in global frame
Definition at line 133 of file PndGemDetector.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
momentum
Definition at line 136 of file PndGemDetector.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Track information to be stored until the track leaves the active volume.
Definition at line 130 of file PndGemDetector.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Hit collection.
Definition at line 143 of file PndGemDetector.h.
Referenced by GetRadDamOption(), ProcessHits(), and SetRadDamOption().
|
private |