FairRoot/PandaRoot
|
#include <PndSdsDetector.h>
Public Member Functions | |
PndSdsDetector () | |
PndSdsDetector (PndSdsDetector &other) | |
PndSdsDetector (const char *name, Bool_t active) | |
virtual | ~PndSdsDetector () |
PndSdsDetector & | operator= (PndSdsDetector &other) |
virtual void | Initialize () |
virtual void | SetBranchNames ()=0 |
virtual void | SetDefaultSensorNames ()=0 |
void | SetExclusiveSensorType (const TString sens) |
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 | SetSpecialPhysicsCuts () |
virtual void | Reset () |
virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
virtual void | ConstructGeometry () |
virtual void | ConstructASCIIGeometry () |
void | SetDetectorID (DetectorId id) |
void | SetRadDamOption (bool val) |
bool | GetRadDamOption () |
void | SetVerboseLevel (Int_t level) |
void | SetPersistance (Bool_t p=kTRUE) |
Bool_t | GetPersistance () |
Protected Member Functions | |
bool | CheckIfSensitive (std::string name) |
PndSdsMCPoint * | AddHit (Int_t trackID, Int_t detID, Int_t sensorID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss) |
void | ResetParameters () |
ClassDef (PndSdsDetector, 6) | |
Protected Attributes | |
Bool_t | fPersistance |
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... | |
PndGeoHandling * | fGeoH |
energy loss More... | |
Int_t | fPosIndex |
Gives Access to the Path info of a hit. More... | |
TClonesArray * | fPndSdsCollection |
bool | fUseRadDamOption |
Hit collection. More... | |
TString | fOutBranchName |
enables the detection of neutral particles More... | |
TString | fFolderName |
To be set by daughter classes. More... | |
DetectorId | fDetectorID |
To be set by daughter classes. More... | |
std::vector< std::string > | fListOfSensitives |
To be set by daughter classes. More... | |
Definition at line 39 of file PndSdsDetector.h.
PndSdsDetector::PndSdsDetector | ( | ) |
Default constructor
Definition at line 40 of file PndSdsDetector.cxx.
|
inline |
Definition at line 47 of file PndSdsDetector.h.
PndSdsDetector::PndSdsDetector | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 68 of file PndSdsDetector.cxx.
|
virtual |
|
protected |
Private method AddHit
Adds a CbmTrdPoint to the HitCollection
Definition at line 436 of file PndSdsDetector.cxx.
References fGeoH, fOutBranchName, fPndSdsCollection, and PndGeoHandling::GetPath().
Referenced by ProcessHits().
|
protected |
Definition at line 358 of file PndSdsDetector.cxx.
References fListOfSensitives, and i.
|
protected |
|
virtual |
Definition at line 371 of file PndSdsDetector.cxx.
References Bool_t, fRun, geoFace, geoLoad, PndSdsGeoPar::GetGeoPassiveNodes(), PndSdsGeoPar::GetGeoSensitiveNodes(), par, and rtdb.
Referenced by ConstructGeometry().
|
virtual |
Virtual method Construct geometry
Constructs the PndSdsDetector geometry
Definition at line 343 of file PndSdsDetector.cxx.
References ConstructASCIIGeometry(), fListOfSensitives, SetDefaultSensorNames(), and 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 316 of file PndSdsDetector.cxx.
References fPosIndex, i, offset(), and PndSdsMCPoint::SetTrackID().
|
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 242 of file PndSdsDetector.cxx.
References fPndSdsCollection, fPosIndex, and Print().
|
virtual |
Definition at line 258 of file PndSdsDetector.cxx.
|
virtual |
Accessor to the hit collection
Definition at line 278 of file PndSdsDetector.cxx.
References fPndSdsCollection.
|
inline |
|
inline |
Definition at line 192 of file PndSdsDetector.h.
References fUseRadDamOption.
|
virtual |
Reimplemented in PndLmdDetector, and PndMvdDetector.
Definition at line 106 of file PndSdsDetector.cxx.
References PndGeoHandling::CreateUniqueSensorId(), fGeoH, fListOfSensitives, gGeoManager, Initialize(), PndGeoHandling::PrintSensorNames(), and SetBranchNames().
Referenced by PndMvdDetector::Initialize(), and PndLmdDetector::Initialize().
|
inline |
Definition at line 77 of file PndSdsDetector.h.
References fDetectorID, fELoss, fFolderName, fGeoH, fLength, fListOfSensitives, fMomIn, fMomOut, fOutBranchName, fPersistance, fPndSdsCollection, fPosIn, fPosIndex, fPosOut, fTime, fTrackID, fUseRadDamOption, and fVolumeID.
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 290 of file PndSdsDetector.cxx.
References fPndSdsCollection, 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 176 of file PndSdsDetector.cxx.
References AddHit(), PndStack::AddPoint(), fDetectorID, fELoss, fGeoH, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fTime, fTrackID, fUseRadDamOption, fVolumeID, PndGeoHandling::GetShortID(), ResetParameters(), and TString.
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 264 of file PndSdsDetector.cxx.
References fFolderName, fOutBranchName, and fPndSdsCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 306 of file PndSdsDetector.cxx.
References fPndSdsCollection, and ResetParameters().
|
inlineprotected |
Private method ResetParameters
Resets the private members for the track parameters
Definition at line 251 of file PndSdsDetector.h.
References fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosIndex, fPosOut, fTime, fTrackID, and fVolumeID.
Referenced by ProcessHits(), and Reset().
|
pure virtual |
pure virtual method SetBranchName
called by Initialize() function to set individual branch names
Implemented in PndLmdDetector, and PndMvdDetector.
Referenced by Initialize().
|
pure virtual |
pure virtual method SetDefaultSensorNames
called by Initialize() function to set individual sensor type names
Implemented in PndLmdDetector, and PndMvdDetector.
Referenced by ConstructGeometry().
|
inline |
Definition at line 189 of file PndSdsDetector.h.
References fDetectorID.
Referenced by PndLmdDetector::PndLmdDetector(), and PndMvdDetector::PndMvdDetector().
void PndSdsDetector::SetExclusiveSensorType | ( | const TString | sens | ) |
Definition at line 423 of file PndSdsDetector.cxx.
References fListOfSensitives.
Referenced by createPndLmdMisalignmentMatrices(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumi0DPMbkgSte(), runLumi0SimBox(), runLumiPixel0SimBox(), runLumiPixel0SimDPMDirect(), runLumiPixel0SimDPMDirect_all(), runLumiPixel0SimFTF(), runLumiPixel0SimFTFDirect(), runLumiSimBox(), and sim_LMD().
|
inline |
|
inline |
Definition at line 191 of file PndSdsDetector.h.
References fUseRadDamOption, and val.
|
virtual |
Virtual Method SetSpecialPhysicsCuts
replaces some Geant initialisation via g3Config.C and so on
Reimplemented in PndMvdDetector.
Definition at line 122 of file PndSdsDetector.cxx.
|
inline |
Definition at line 195 of file PndSdsDetector.h.
References fGeoH, and PndGeoHandling::SetVerbose().
Referenced by run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumi0DPMbkgSte(), runLumi0SimBox(), runLumiPixel0SimBox(), runLumiPixel0SimDPM(), runLumiPixel0SimDPMDirect(), runLumiPixel0SimDPMDirect_all(), runLumiPixel0SimFTF(), runLumiPixel0SimFTFDirect(), runLumiSimBox(), and sim_LMD().
|
protected |
To be set by daughter classes.
Definition at line 223 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and SetDetectorID().
|
protected |
length
Definition at line 215 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().
|
protected |
To be set by daughter classes.
Definition at line 222 of file PndSdsDetector.h.
Referenced by operator=(), Register(), PndMvdDetector::SetBranchNames(), and PndLmdDetector::SetBranchNames().
|
protected |
energy loss
Definition at line 217 of file PndSdsDetector.h.
Referenced by AddHit(), Initialize(), operator=(), ProcessHits(), and SetVerboseLevel().
|
protected |
time
Definition at line 214 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().
|
protected |
To be set by daughter classes.
Definition at line 225 of file PndSdsDetector.h.
Referenced by CheckIfSensitive(), ConstructGeometry(), Initialize(), operator=(), PndMvdDetector::SetDefaultSensorNames(), PndLmdDetector::SetDefaultSensorNames(), and SetExclusiveSensorType().
|
protected |
exit position in global frame
Definition at line 211 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().
|
protected |
momentum
Definition at line 212 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().
|
protected |
enables the detection of neutral particles
Definition at line 221 of file PndSdsDetector.h.
Referenced by AddHit(), operator=(), Register(), PndMvdDetector::SetBranchNames(), and PndLmdDetector::SetBranchNames().
|
protected |
Definition at line 198 of file PndSdsDetector.h.
Referenced by GetPersistance(), operator=(), and SetPersistance().
|
protected |
Definition at line 219 of file PndSdsDetector.h.
Referenced by AddHit(), EndOfEvent(), GetCollection(), operator=(), Print(), Register(), Reset(), and ~PndSdsDetector().
|
protected |
Det id.
Definition at line 209 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().
|
protected |
Gives Access to the Path info of a hit.
Definition at line 218 of file PndSdsDetector.h.
Referenced by CopyClones(), EndOfEvent(), operator=(), and ResetParameters().
|
protected |
entry position in global frame
Definition at line 210 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().
|
protected |
momentum
Definition at line 213 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().
|
protected |
Track information to be stored until the track leaves the active volume.
Definition at line 207 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().
|
protected |
Hit collection.
Definition at line 220 of file PndSdsDetector.h.
Referenced by GetRadDamOption(), operator=(), ProcessHits(), and SetRadDamOption().
|
protected |
track index
Definition at line 208 of file PndSdsDetector.h.
Referenced by operator=(), ProcessHits(), and ResetParameters().