FairRoot/PandaRoot
|
#include <PndEmcApd.h>
Public Member Functions | |
PndEmcApd () | |
PndEmcApd (const char *name, Bool_t active) | |
virtual | ~PndEmcApd () |
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 | ConstructASCIIGeometry () |
PndEmcApdPoint * | AddHit (Int_t trackID, Int_t detID, Int_t evtID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t mod, Short_t row, Short_t crys, Short_t copy, Short_t flag) |
Private Member Functions | |
void | ResetParameters () |
Hit collection. More... | |
PndEmcApd (const PndEmcApd &L) | |
PndEmcApd & | operator= (const PndEmcApd &) |
Private Attributes | |
Int_t | fTrackID |
Int_t | fVolumeID |
track index More... | |
Int_t | fEventID |
volume id More... | |
TLorentzVector | fPos |
event id More... | |
TLorentzVector | fMom |
position More... | |
Double32_t | fTime |
momentum More... | |
Double32_t | fLength |
time More... | |
Double32_t | fELoss |
length More... | |
Int_t | fPosIndex |
energy loss More... | |
TClonesArray * | fApdCollection |
Definition at line 20 of file PndEmcApd.h.
PndEmcApd::PndEmcApd | ( | ) |
PndEmcApd::PndEmcApd | ( | const char * | name, |
Bool_t | active | ||
) |
|
virtual |
|
private |
PndEmcApdPoint * PndEmcApd::AddHit | ( | Int_t | trackID, |
Int_t | detID, | ||
Int_t | evtID, | ||
TVector3 | pos, | ||
TVector3 | mom, | ||
Double_t | tof, | ||
Double_t | length, | ||
Double_t | eLoss, | ||
Short_t | mod, | ||
Short_t | row, | ||
Short_t | crys, | ||
Short_t | copy, | ||
Short_t | flag | ||
) |
Definition at line 299 of file PndEmcApd.cxx.
References fApdCollection.
Referenced by ProcessHits().
|
virtual |
Definition at line 88 of file PndEmcApd.cxx.
void PndEmcApd::ConstructASCIIGeometry | ( | ) |
Definition at line 225 of file PndEmcApd.cxx.
References Bool_t, geobuild, geoFace, geoLoad, PndEmcReader::GetData(), PndEmcReader::GetMaxCrystals(), PndEmcReader::GetMaxModules(), PndEmcReader::GetMaxRows(), PndEmcReader::GetMinCrystals(), PndEmcReader::GetMinModules(), PndEmcReader::GetMinRows(), gGeoManager, Media, DataG4::module, n, DataG4::pAlp1, DataG4::pAlp2, DataG4::pDx1, DataG4::pDx2, DataG4::pDx3, DataG4::pDx4, DataG4::pDy1, DataG4::pDy2, DataG4::pDz, DataG4::phi, DataG4::posX, DataG4::posY, DataG4::posZ, DataG4::pPhi, DataG4::pTheta, rot, rot1, row, DataG4::tau, DataG4::theta, and TString.
Referenced by ConstructGeometry().
|
virtual |
Virtual method Construct geometry
Definition at line 210 of file PndEmcApd.cxx.
References ConstructASCIIGeometry(), 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 189 of file PndEmcApd.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 145 of file PndEmcApd.cxx.
References Print(), and Reset().
|
virtual |
Accessor to the hit collection
Definition at line 158 of file PndEmcApd.cxx.
References fApdCollection.
|
virtual |
Virtual method Initialize Initialises detector.
Definition at line 79 of file PndEmcApd.cxx.
References Initialize().
Definition at line 131 of file PndEmcApd.h.
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 166 of file PndEmcApd.cxx.
References fApdCollection, 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 PndEmcApdPoints and adds them to the collections.
vol | Pointer to the active volume |
Definition at line 96 of file PndEmcApd.cxx.
References AddHit(), fELoss, fEventID, fLength, fMom, fPos, fTime, fTrackID, fVolumeID, nam, pos, ResetParameters(), and TString.
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 152 of file PndEmcApd.cxx.
References fApdCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 179 of file PndEmcApd.cxx.
References fApdCollection, and fPosIndex.
Referenced by EndOfEvent().
|
inlineprivate |
|
private |
Definition at line 125 of file PndEmcApd.h.
Referenced by AddHit(), GetCollection(), Print(), Register(), Reset(), and ~PndEmcApd().
|
private |
length
Definition at line 122 of file PndEmcApd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
volume id
Definition at line 117 of file PndEmcApd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
time
Definition at line 121 of file PndEmcApd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
position
Definition at line 119 of file PndEmcApd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
event id
Definition at line 118 of file PndEmcApd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
|
private |
momentum
Definition at line 120 of file PndEmcApd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 115 of file PndEmcApd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
track index
Definition at line 116 of file PndEmcApd.h.
Referenced by ProcessHits(), and ResetParameters().