FairRoot/PandaRoot
|
#include <PndSciT.h>
Public Member Functions | |
PndSciT () | |
PndSciT (const char *name, Bool_t active) | |
virtual | ~PndSciT () |
virtual void | Initialize () |
virtual Bool_t | ProcessHits (FairVolume *vol=0) |
virtual void | EndOfEvent () |
virtual void | BeginEvent () |
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 | SetThreshold (Double_t val) |
PndSciTPoint * | AddHit (Int_t eventID, Int_t trackID, Int_t sensorID, TString detName, TVector3 posin, TVector3 momin, TVector3 posout, TVector3 momout, Double_t tof, Double_t length, Double_t eLoss) |
Private Member Functions | |
bool | CheckIfSensitive (std::string name) |
void | ResetParameters () |
Private Attributes | |
std::vector< std::string > | fListOfSensitives |
Int_t | fEventID |
Int_t | fTrackID |
Int_t | fSensorID |
TString | fdetPath |
TLorentzVector | fPosIn |
TLorentzVector | fMomIn |
TLorentzVector | fPosOut |
TLorentzVector | fMomOut |
Double32_t | fTime |
Double32_t | fLength |
Double_t | fELoss |
Double_t | fThreshold |
PndGeoHandling * | fGeoH |
PndGeoSciTPar * | par |
Gives Access to the Path info of a hit. More... | |
Int_t | fPosIndex |
for saving parameters, although not mandatory, may someone can make use out of the stored parameters More... | |
TClonesArray * | fSciTCollection |
PndSciT::PndSciT | ( | ) |
Default constructor
Definition at line 52 of file PndSciT.cxx.
References fGeoH, fListOfSensitives, fSciTCollection, fThreshold, and PndGeoHandling::Instance().
PndSciT::PndSciT | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 68 of file PndSciT.cxx.
References fGeoH, fListOfSensitives, fSciTCollection, fThreshold, and PndGeoHandling::Instance().
|
virtual |
PndSciTPoint * PndSciT::AddHit | ( | Int_t | eventID, |
Int_t | trackID, | ||
Int_t | sensorID, | ||
TString | detName, | ||
TVector3 | posin, | ||
TVector3 | momin, | ||
TVector3 | posout, | ||
TVector3 | momout, | ||
Double_t | tof, | ||
Double_t | length, | ||
Double_t | eLoss | ||
) |
Definition at line 286 of file PndSciT.cxx.
References fSciTCollection.
Referenced by ProcessHits().
|
virtual |
Definition at line 127 of file PndSciT.cxx.
|
private |
|
virtual |
|
virtual |
Virtual method CopyClones
Copies the hit collection with a given track index offset
cl1 | Origin |
cl2 | Target |
offset | Index offset |
Definition at line 244 of file PndSciT.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 195 of file PndSciT.cxx.
References Print(), and Reset().
|
virtual |
Accessor to the hit collection
Definition at line 211 of file PndSciT.cxx.
References fSciTCollection.
|
virtual |
Virtual method Initialize Initialises detector. Stores volume IDs for MUO detector and mirror.
Definition at line 103 of file PndSciT.cxx.
References PndGeoHandling::CreateUniqueSensorId(), fGeoH, fListOfSensitives, gGeoManager, Initialize(), par, PndGeoHandling::PrintSensorNames(), rtdb, and sim().
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 220 of file PndSciT.cxx.
References fSciTCollection, 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 PndSciTPoints and PndSciTMirrorPoints and adds them to the collections.
vol | Pointer to the active volume |
Definition at line 134 of file PndSciT.cxx.
References AddHit(), PndStack::AddPoint(), fdetPath, fELoss, fEventID, fGeoH, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fSensorID, fThreshold, fTime, fTrackID, PndGeoHandling::GetShortID(), kTOF, and ResetParameters().
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 203 of file PndSciT.cxx.
References fSciTCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 233 of file PndSciT.cxx.
References fPosIndex, and fSciTCollection.
Referenced by EndOfEvent().
|
inlineprivate |
|
inline |
|
private |
Definition at line 139 of file PndSciT.h.
Referenced by ProcessHits().
|
private |
Definition at line 148 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 136 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 151 of file PndSciT.h.
Referenced by Initialize(), PndSciT(), and ProcessHits().
|
private |
Definition at line 147 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 132 of file PndSciT.h.
Referenced by CheckIfSensitive(), Initialize(), and PndSciT().
|
private |
Definition at line 142 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 144 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 141 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
for saving parameters, although not mandatory, may someone can make use out of the stored parameters
Definition at line 153 of file PndSciT.h.
Referenced by CopyClones(), and Reset().
|
private |
Definition at line 143 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 154 of file PndSciT.h.
Referenced by AddHit(), GetCollection(), PndSciT(), Print(), Register(), Reset(), and ~PndSciT().
|
private |
Definition at line 138 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 149 of file PndSciT.h.
Referenced by PndSciT(), ProcessHits(), and SetThreshold().
|
private |
Definition at line 146 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 137 of file PndSciT.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Gives Access to the Path info of a hit.
Definition at line 152 of file PndSciT.h.
Referenced by Initialize().