FairRoot/PandaRoot
|
#include <PndHypGe.h>
Public Member Functions | |
PndHypGe () | |
PndHypGe (const char *name, Bool_t active) | |
virtual | ~PndHypGe () |
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 | ConstructHPGeGeometry () |
PndHypGePoint * | AddHit (Int_t trackID, Int_t evtID, Int_t pdgCode, Int_t charge, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t copy) |
PndHypGePoint * | AddGeAlHit (Int_t trackID, Int_t evtID, Int_t pdgCode, Int_t charge, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t copy) |
void | SetDisIP (Double_t dist) |
void | SetPathGeo (TString pgeo) |
Private Member Functions | |
bool | CheckIfSensitive (std::string name) |
void | ResetParameters () |
Private Attributes | |
std::vector< std::string > | fListOfSensitives |
Int_t | fpdgCode |
Int_t | fcharge |
Int_t | fTrackID |
Int_t | fVolumeID |
Int_t | fEventID |
TLorentzVector | fPos |
TLorentzVector | fMom |
Double32_t | fTime |
Double32_t | fLength |
Double32_t | fELoss |
Int_t | fPosIndex |
Short_t | fnCopy |
Double_t | fdist |
TString | fPathGeo |
TClonesArray * | fHypGeCollection |
TClonesArray * | fHypGeAlCollection |
Definition at line 26 of file PndHypGe.h.
PndHypGe::PndHypGe | ( | ) |
Default constructor
Definition at line 51 of file PndHypGe.cxx.
References fdist, fEventID, fHypGeAlCollection, fHypGeCollection, fListOfSensitives, and fPosIndex.
PndHypGe::PndHypGe | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 68 of file PndHypGe.cxx.
References fdist, fEventID, fHypGeAlCollection, fHypGeCollection, fListOfSensitives, and fPosIndex.
|
virtual |
Destructor
Definition at line 90 of file PndHypGe.cxx.
References fHypGeAlCollection, and fHypGeCollection.
PndHypGePoint * PndHypGe::AddGeAlHit | ( | Int_t | trackID, |
Int_t | evtID, | ||
Int_t | pdgCode, | ||
Int_t | charge, | ||
TVector3 | pos, | ||
TVector3 | mom, | ||
Double_t | tof, | ||
Double_t | length, | ||
Double_t | eLoss, | ||
Short_t | copy | ||
) |
Definition at line 605 of file PndHypGe.cxx.
References fHypGeAlCollection.
Referenced by ProcessHits().
PndHypGePoint * PndHypGe::AddHit | ( | Int_t | trackID, |
Int_t | evtID, | ||
Int_t | pdgCode, | ||
Int_t | charge, | ||
TVector3 | pos, | ||
TVector3 | mom, | ||
Double_t | tof, | ||
Double_t | length, | ||
Double_t | eLoss, | ||
Short_t | copy | ||
) |
Definition at line 592 of file PndHypGe.cxx.
References fHypGeCollection.
Referenced by ProcessHits().
|
virtual |
Definition at line 127 of file PndHypGe.cxx.
|
private |
|
virtual |
Virtual method Construct geometry
Definition at line 342 of file PndHypGe.cxx.
References ConstructHPGeGeometry(), and TString.
void PndHypGe::ConstructHPGeGeometry | ( | ) |
Definition at line 357 of file PndHypGe.cxx.
References cos(), GeCluster::CreateCluster(), Double_t, fdist, fPathGeo, geobuild, geoFace, geoLoad, gGeoManager, HypGe, i, Media, Pi, GeCluster::SetPathGeo(), and TString.
Referenced by ConstructGeometry().
|
virtual |
Virtual method CopyClones
Copies the hit collection with a given track index offset
cl1 | Origin |
cl2 | Target |
offset | Index offset |
Definition at line 324 of file PndHypGe.cxx.
References fPosIndex, PndHypGePoint::GetTrackID(), i, offset(), and PndHypGePoint::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 271 of file PndHypGe.cxx.
References Print(), and Reset().
|
virtual |
Accessor to the hit collection
Definition at line 288 of file PndHypGe.cxx.
References fHypGeAlCollection, and fHypGeCollection.
|
virtual |
Virtual method Initialize Initialises detector. Stores volume IDs for MUO detector and mirror.
Definition at line 114 of file PndHypGe.cxx.
References Initialize(), rtdb, and sim().
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 298 of file PndHypGe.cxx.
References fHypGeCollection, 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 PndHypGePoints and PndHypGeMirrorPoints and adds them to the collections.
vol | Pointer to the active volume |
Definition at line 136 of file PndHypGe.cxx.
References AddGeAlHit(), AddHit(), fcharge, fELoss, fEventID, fLength, fMom, fnCopy, fpdgCode, fPos, fTime, fTrackID, nam, pos, ResetParameters(), and TString.
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 279 of file PndHypGe.cxx.
References fHypGeAlCollection, and fHypGeCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 312 of file PndHypGe.cxx.
References fHypGeAlCollection, fHypGeCollection, and fPosIndex.
Referenced by EndOfEvent().
|
inlineprivate |
|
inline |
Setting distance to interaction point
Definition at line 131 of file PndHypGe.h.
|
inline |
Definition at line 136 of file PndHypGe.h.
Referenced by sim_Gamma(), sim_hypGe_COSY(), sim_hypGe_COSY2014(), sim_hypGe_CrystalsOnly(), sim_hypGe_extparameters_urqmd(), sim_hypGe_TestGeo(), and sim_hypGe_TestGeoCableTest().
|
private |
Definition at line 148 of file PndHypGe.h.
Referenced by ProcessHits().
|
private |
Definition at line 160 of file PndHypGe.h.
Referenced by ConstructHPGeGeometry(), and PndHypGe().
|
private |
Definition at line 157 of file PndHypGe.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 152 of file PndHypGe.h.
Referenced by PndHypGe(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 166 of file PndHypGe.h.
Referenced by AddGeAlHit(), GetCollection(), PndHypGe(), Register(), Reset(), and ~PndHypGe().
|
private |
Definition at line 165 of file PndHypGe.h.
Referenced by AddHit(), GetCollection(), PndHypGe(), Print(), Register(), Reset(), and ~PndHypGe().
|
private |
Definition at line 156 of file PndHypGe.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 143 of file PndHypGe.h.
Referenced by CheckIfSensitive(), and PndHypGe().
|
private |
Definition at line 154 of file PndHypGe.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 159 of file PndHypGe.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 161 of file PndHypGe.h.
Referenced by ConstructHPGeGeometry().
|
private |
Definition at line 147 of file PndHypGe.h.
Referenced by ProcessHits().
|
private |
Definition at line 153 of file PndHypGe.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 158 of file PndHypGe.h.
Referenced by CopyClones(), PndHypGe(), and Reset().
|
private |
Definition at line 155 of file PndHypGe.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 150 of file PndHypGe.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 151 of file PndHypGe.h.
Referenced by ResetParameters().