FairRoot/PandaRoot
|
#include <PndLmdDetector.h>
Public Member Functions | |
PndLmdDetector () | |
PndLmdDetector (const char *name, Bool_t active) | |
virtual | ~PndLmdDetector () |
virtual void | SetBranchNames (char *outBranchname, char *folderName) |
virtual void | SetBranchNames () |
virtual void | SetDefaultSensorNames () |
virtual void | Initialize () |
void | ModifyGeometry () |
void | SetMisalignmentMatrices (const std::map< std::string, TGeoHMatrix > &alignmentMatrices) |
void | ModifyGeometryByFullPath () |
void | ModifyGeometryBySymlink () |
ClassDef (PndLmdDetector, 7) | |
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... | |
Private Attributes | |
std::map< std::string, TGeoHMatrix > | fAlignmentMatrices |
PndLmdDetector.h
Defines the active detector PndLmdDetector. Constructs the geometry and registers MCPoints. Notes on Jun 30,2010 by Huagen: To construct detector geometry from ASCII file the detector name shall be defined by users. The function of ConstructASCIIGeometry() should be reloaded by user who wants to define the DetName freely.Without reloading this function the detector name was defined by PndSdsGeo class anyway.
Definition at line 28 of file PndLmdDetector.h.
PndLmdDetector::PndLmdDetector | ( | ) |
Default constructor
Definition at line 10 of file PndLmdDetector.cxx.
References kLUMI, and PndSdsDetector::SetDetectorID().
PndLmdDetector::PndLmdDetector | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 15 of file PndLmdDetector.cxx.
References kLUMI, and PndSdsDetector::SetDetectorID().
|
virtual |
|
protectedinherited |
Private method AddHit
Adds a CbmTrdPoint to the HitCollection
Definition at line 436 of file PndSdsDetector.cxx.
References PndSdsDetector::fGeoH, PndSdsDetector::fOutBranchName, PndSdsDetector::fPndSdsCollection, and PndGeoHandling::GetPath().
Referenced by PndSdsDetector::ProcessHits().
|
protectedinherited |
Definition at line 358 of file PndSdsDetector.cxx.
References PndSdsDetector::fListOfSensitives, and i.
PndLmdDetector::ClassDef | ( | PndLmdDetector | , |
7 | |||
) |
|
protectedinherited |
|
virtualinherited |
Definition at line 371 of file PndSdsDetector.cxx.
References Bool_t, fRun, geoFace, geoLoad, PndSdsGeoPar::GetGeoPassiveNodes(), PndSdsGeoPar::GetGeoSensitiveNodes(), par, and rtdb.
Referenced by PndSdsDetector::ConstructGeometry().
|
virtualinherited |
Virtual method Construct geometry
Constructs the PndSdsDetector geometry
Definition at line 343 of file PndSdsDetector.cxx.
References PndSdsDetector::ConstructASCIIGeometry(), PndSdsDetector::fListOfSensitives, PndSdsDetector::SetDefaultSensorNames(), and TString.
|
virtualinherited |
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 PndSdsDetector::fPosIndex, i, offset(), and PndSdsMCPoint::SetTrackID().
|
virtualinherited |
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 PndSdsDetector::fPndSdsCollection, PndSdsDetector::fPosIndex, and PndSdsDetector::Print().
|
virtualinherited |
Definition at line 258 of file PndSdsDetector.cxx.
|
virtualinherited |
Accessor to the hit collection
Definition at line 278 of file PndSdsDetector.cxx.
References PndSdsDetector::fPndSdsCollection.
|
inlineinherited |
|
inlineinherited |
Definition at line 192 of file PndSdsDetector.h.
References PndSdsDetector::fUseRadDamOption.
|
inlinevirtual |
Reimplemented from PndSdsDetector.
Definition at line 48 of file PndLmdDetector.h.
References PndSdsDetector::Initialize().
void PndLmdDetector::ModifyGeometry | ( | ) |
Definition at line 38 of file PndLmdDetector.cxx.
References DEBUG, fAlignmentMatrices, gGeoManager, ModifyGeometryByFullPath(), ModifyGeometryBySymlink(), and TString.
void PndLmdDetector::ModifyGeometryByFullPath | ( | ) |
Definition at line 56 of file PndLmdDetector.cxx.
References fAlignmentMatrices, gGeoManager, and TString.
Referenced by ModifyGeometry().
void PndLmdDetector::ModifyGeometryBySymlink | ( | ) |
Definition at line 77 of file PndLmdDetector.cxx.
References fAlignmentMatrices, gGeoManager, and TString.
Referenced by ModifyGeometry().
|
virtualinherited |
Virtual method Print
Screen output of hit collection.
Definition at line 290 of file PndSdsDetector.cxx.
References PndSdsDetector::fPndSdsCollection, i, and nHits.
Referenced by PndSdsDetector::EndOfEvent().
|
virtualinherited |
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 PndSdsDetector::AddHit(), PndStack::AddPoint(), PndSdsDetector::fDetectorID, PndSdsDetector::fELoss, PndSdsDetector::fGeoH, PndSdsDetector::fLength, PndSdsDetector::fMomIn, PndSdsDetector::fMomOut, PndSdsDetector::fPosIn, PndSdsDetector::fPosOut, PndSdsDetector::fTime, PndSdsDetector::fTrackID, PndSdsDetector::fUseRadDamOption, PndSdsDetector::fVolumeID, PndGeoHandling::GetShortID(), PndSdsDetector::ResetParameters(), and TString.
|
virtualinherited |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 264 of file PndSdsDetector.cxx.
References PndSdsDetector::fFolderName, PndSdsDetector::fOutBranchName, and PndSdsDetector::fPndSdsCollection.
|
virtualinherited |
Virtual method Reset
Clears the hit collection
Definition at line 306 of file PndSdsDetector.cxx.
References PndSdsDetector::fPndSdsCollection, and PndSdsDetector::ResetParameters().
|
inlineprotectedinherited |
Private method ResetParameters
Resets the private members for the track parameters
Definition at line 251 of file PndSdsDetector.h.
References PndSdsDetector::fELoss, PndSdsDetector::fLength, PndSdsDetector::fMomIn, PndSdsDetector::fMomOut, PndSdsDetector::fPosIn, PndSdsDetector::fPosIndex, PndSdsDetector::fPosOut, PndSdsDetector::fTime, PndSdsDetector::fTrackID, and PndSdsDetector::fVolumeID.
Referenced by PndSdsDetector::ProcessHits(), and PndSdsDetector::Reset().
|
virtual |
Definition at line 24 of file PndLmdDetector.cxx.
References PndSdsDetector::fFolderName, and PndSdsDetector::fOutBranchName.
|
virtual |
pure virtual method SetBranchName
called by Initialize() function to set individual branch names
Implements PndSdsDetector.
Definition at line 29 of file PndLmdDetector.cxx.
References PndSdsDetector::fFolderName, and PndSdsDetector::fOutBranchName.
|
virtual |
pure virtual method SetDefaultSensorNames
called by Initialize() function to set individual sensor type names
Implements PndSdsDetector.
Definition at line 34 of file PndLmdDetector.cxx.
References PndSdsDetector::fListOfSensitives.
|
inlineinherited |
Definition at line 189 of file PndSdsDetector.h.
References PndSdsDetector::fDetectorID.
Referenced by PndLmdDetector(), and PndMvdDetector::PndMvdDetector().
|
inherited |
Definition at line 423 of file PndSdsDetector.cxx.
References PndSdsDetector::fListOfSensitives.
Referenced by createPndLmdMisalignmentMatrices(), run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumi0DPMbkgSte(), runLumi0SimBox(), runLumiPixel0SimBox(), runLumiPixel0SimDPMDirect(), runLumiPixel0SimDPMDirect_all(), runLumiPixel0SimFTF(), runLumiPixel0SimFTFDirect(), runLumiSimBox(), and sim_LMD().
void PndLmdDetector::SetMisalignmentMatrices | ( | const std::map< std::string, TGeoHMatrix > & | alignmentMatrices | ) |
Definition at line 103 of file PndLmdDetector.cxx.
References fAlignmentMatrices.
Referenced by runLumiPixel0SimBox().
|
inlineinherited |
|
inlineinherited |
Definition at line 191 of file PndSdsDetector.h.
References PndSdsDetector::fUseRadDamOption, and val.
|
virtualinherited |
Virtual Method SetSpecialPhysicsCuts
replaces some Geant initialisation via g3Config.C and so on
Reimplemented in PndMvdDetector.
Definition at line 122 of file PndSdsDetector.cxx.
|
inlineinherited |
Definition at line 195 of file PndSdsDetector.h.
References PndSdsDetector::fGeoH, and PndGeoHandling::SetVerbose().
Referenced by run0AllSysDPMbkg(), runGeaneTestSimBox(), runLumi0DPMbkg(), runLumi0DPMbkgSte(), runLumi0SimBox(), runLumiPixel0SimBox(), runLumiPixel0SimDPM(), runLumiPixel0SimDPMDirect(), runLumiPixel0SimDPMDirect_all(), runLumiPixel0SimFTF(), runLumiPixel0SimFTFDirect(), runLumiSimBox(), and sim_LMD().
|
private |
Definition at line 29 of file PndLmdDetector.h.
Referenced by ModifyGeometry(), ModifyGeometryByFullPath(), ModifyGeometryBySymlink(), and SetMisalignmentMatrices().
|
protectedinherited |
To be set by daughter classes.
Definition at line 223 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::SetDetectorID().
|
protectedinherited |
length
Definition at line 215 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
To be set by daughter classes.
Definition at line 222 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::Register(), PndMvdDetector::SetBranchNames(), and SetBranchNames().
|
protectedinherited |
energy loss
Definition at line 217 of file PndSdsDetector.h.
Referenced by PndSdsDetector::AddHit(), PndSdsDetector::Initialize(), PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::SetVerboseLevel().
|
protectedinherited |
time
Definition at line 214 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
To be set by daughter classes.
Definition at line 225 of file PndSdsDetector.h.
Referenced by PndSdsDetector::CheckIfSensitive(), PndSdsDetector::ConstructGeometry(), PndSdsDetector::Initialize(), PndSdsDetector::operator=(), PndMvdDetector::SetDefaultSensorNames(), SetDefaultSensorNames(), and PndSdsDetector::SetExclusiveSensorType().
|
protectedinherited |
exit position in global frame
Definition at line 211 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
momentum
Definition at line 212 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
enables the detection of neutral particles
Definition at line 221 of file PndSdsDetector.h.
Referenced by PndSdsDetector::AddHit(), PndSdsDetector::operator=(), PndSdsDetector::Register(), PndMvdDetector::SetBranchNames(), and SetBranchNames().
|
protectedinherited |
Definition at line 198 of file PndSdsDetector.h.
Referenced by PndSdsDetector::GetPersistance(), PndSdsDetector::operator=(), and PndSdsDetector::SetPersistance().
|
protectedinherited |
Definition at line 219 of file PndSdsDetector.h.
Referenced by PndSdsDetector::AddHit(), PndSdsDetector::EndOfEvent(), PndSdsDetector::GetCollection(), PndSdsDetector::operator=(), PndSdsDetector::Print(), PndSdsDetector::Register(), PndSdsDetector::Reset(), and PndSdsDetector::~PndSdsDetector().
|
protectedinherited |
Det id.
Definition at line 209 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
Gives Access to the Path info of a hit.
Definition at line 218 of file PndSdsDetector.h.
Referenced by PndSdsDetector::CopyClones(), PndSdsDetector::EndOfEvent(), PndSdsDetector::operator=(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
entry position in global frame
Definition at line 210 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
momentum
Definition at line 213 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
Track information to be stored until the track leaves the active volume.
Definition at line 207 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().
|
protectedinherited |
Hit collection.
Definition at line 220 of file PndSdsDetector.h.
Referenced by PndSdsDetector::GetRadDamOption(), PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::SetRadDamOption().
|
protectedinherited |
track index
Definition at line 208 of file PndSdsDetector.h.
Referenced by PndSdsDetector::operator=(), PndSdsDetector::ProcessHits(), and PndSdsDetector::ResetParameters().