FairRoot/PandaRoot
|
#include <PndRich.h>
Public Member Functions | |
PndRich (const char *Name, Bool_t Active) | |
PndRich () | |
virtual | ~PndRich () |
virtual void | Initialize () |
virtual Bool_t | ProcessHits (FairVolume *v=0) |
virtual void | Register () |
virtual TClonesArray * | GetCollection (Int_t iColl) const |
virtual void | Reset () |
void | ConstructGeometry () |
void | ConstructOpGeometry () |
void | SetRunCherenkov (Bool_t const &ch) |
void | SetGeoVersion (UInt_t const &version) |
void | UseProtection (Bool_t const &up) |
bool | CheckIfSensitive (std::string name) |
Double_t | lhcbaerindex (Double_t n400, Double_t wl) |
PndRichPDPoint * | AddPDPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss, UInt_t EventId=0) |
PndRichBarPoint * | AddBarPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Int_t pdgCode, Double_t thetaC, Int_t eventID, Double_t mass, TVector3 pos0, TVector3 mom0) |
virtual void | CopyClones (TClonesArray *, TClonesArray *, Int_t) |
virtual void | SetSpecialPhysicsCuts () |
virtual void | EndOfEvent () |
virtual void | FinishPrimary () |
virtual void | FinishRun () |
virtual void | BeginPrimary () |
virtual void | PostTrack () |
virtual void | PreTrack () |
virtual void | BeginEvent () |
Public Attributes | |
std::vector< std::string > | fListOfSensitives |
Private Member Functions | |
PndRich (const PndRich &) | |
PndRich & | operator= (const PndRich &) |
void | DefGeoVersion () |
Private Attributes | |
Int_t | fTrackID |
Int_t | fVolumeID |
track index More... | |
TLorentzVector | fPos |
volume id More... | |
TLorentzVector | fMom |
position at entrance More... | |
Double_t | fTime |
momentum at entrance More... | |
Double_t | fLength |
time More... | |
Double_t | fELoss |
length More... | |
PndRichGeo * | fGeo |
energy loss More... | |
PndGeoHandling * | fGeoH |
Bool_t | fUseProtection |
///< converter for detector names More... | |
Bool_t | fRunCherenkov |
UInt_t | fGeoVersion |
TClonesArray * | fPndRichPDPointCollection |
TClonesArray * | fPndRichBarPointCollection |
std::vector< Double_t > | fWlPhoton |
std::vector< Double_t > | fPDE |
std::map< Int_t, Int_t > | trackid |
Double_t | fnOpt |
Double_t | fZabar |
PndRich::PndRich | ( | const char * | Name, |
Bool_t | Active | ||
) |
Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors
Definition at line 64 of file PndRich.cxx.
References fGeoH, fGeoVersion, fListOfSensitives, and PndGeoHandling::Instance().
PndRich::PndRich | ( | ) |
default constructor
Definition at line 35 of file PndRich.cxx.
References fGeoH, fGeoVersion, fListOfSensitives, and PndGeoHandling::Instance().
|
virtual |
destructor
Definition at line 94 of file PndRich.cxx.
References fPndRichBarPointCollection, and fPndRichPDPointCollection.
|
private |
PndRichBarPoint * PndRich::AddBarPoint | ( | Int_t | trackID, |
Int_t | detID, | ||
TVector3 | pos, | ||
TVector3 | mom, | ||
Double_t | time, | ||
Double_t | length, | ||
Int_t | pdgCode, | ||
Double_t | thetaC, | ||
Int_t | eventID, | ||
Double_t | mass, | ||
TVector3 | pos0, | ||
TVector3 | mom0 | ||
) |
Definition at line 675 of file PndRich.cxx.
References fPndRichBarPointCollection.
Referenced by ProcessHits().
PndRichPDPoint * PndRich::AddPDPoint | ( | Int_t | trackID, |
Int_t | detID, | ||
TVector3 | pos, | ||
TVector3 | mom, | ||
Double_t | time, | ||
Double_t | length, | ||
Double_t | eLoss, | ||
UInt_t | EventId = 0 |
||
) |
This method is an example of how to add your own point of type PndRichPoint to the clones array
Definition at line 664 of file PndRich.cxx.
References fPndRichPDPointCollection.
Referenced by ProcessHits().
|
virtual |
Definition at line 302 of file PndRich.cxx.
|
inlinevirtual |
bool PndRich::CheckIfSensitive | ( | std::string | name | ) |
void PndRich::ConstructGeometry | ( | ) |
Create the detector geometry
If you are using the standard ASCII input for the geometry just copy this and use it for your detector, otherwise you can implement here you own way of constructing the geometry.
Definition at line 391 of file PndRich.cxx.
References Bool_t, fRun, geoFace, geoLoad, PndRichGeoPar::GetGeoPassiveNodes(), PndRichGeoPar::GetGeoSensitiveNodes(), par, rtdb, and TString.
void PndRich::ConstructOpGeometry | ( | ) |
Definition at line 540 of file PndRich.cxx.
References DefGeoVersion(), Double_t, fGeo, fGeoVersion, fnOpt, i, PndRichGeo::init(), lhcbaerindex(), PndRichGeo::nOpt(), and npoints.
|
inlinevirtual |
|
private |
Definition at line 349 of file PndRich.cxx.
References fGeoVersion, and TString.
Referenced by ConstructOpGeometry(), and Initialize().
|
virtual |
Definition at line 342 of file PndRich.cxx.
References fPndRichBarPointCollection, fPndRichPDPointCollection, and trackid.
|
inlinevirtual |
|
virtual |
Definition at line 291 of file PndRich.cxx.
|
virtual |
Gets the produced collections
Definition at line 378 of file PndRich.cxx.
References fPndRichBarPointCollection, and fPndRichPDPointCollection.
|
virtual |
Initialization of the detector is done here
Definition at line 106 of file PndRich.cxx.
References PndRichGeo::aerogelOffset(), PndRichGeo::aerogelSize(), PndGeoHandling::CreateUniqueSensorId(), DefGeoVersion(), Double_t, fGeo, fGeoH, fGeoVersion, fListOfSensitives, fnOpt, fPDE, fRun, fRunCherenkov, fWlPhoton, fZabar, gGeoManager, i, PndRichGeo::init(), Initialize(), PndRichGeo::nOpt(), par, PndGeoHandling::PrintSensorNames(), PndRichGeo::richOffset(), rtdb, and trackid.
|
virtual |
this method is called for each step during simulation (see FairMCApplication::Stepping())
This method is called from the MC stepping
Definition at line 161 of file PndRich.cxx.
References AddBarPoint(), AddPDPoint(), PndStack::AddPoint(), Double_t, fELoss, fGeo, fLength, fMom, fnOpt, fPos, fRunCherenkov, fTime, fTrackID, fVolumeID, fZabar, kRICH, nam, particle, PndRichGeo::phDetQEff(), trackid, and TString.
|
virtual |
Registers the produced collections in FAIRRootManager.
This will create a branch in the output tree called PndRichPoint, setting the last parameter to kFALSE means: this collection will not be written to the file, it will exist only during the simulation.
Definition at line 360 of file PndRich.cxx.
References fPndRichBarPointCollection, fPndRichPDPointCollection, and fRunCherenkov.
|
virtual |
has to be called after each event to reset the containers
Definition at line 385 of file PndRich.cxx.
References fPndRichBarPointCollection, and fPndRichPDPointCollection.
|
inline |
|
inline |
Definition at line 54 of file PndRich.h.
References fRunCherenkov.
Referenced by sim_complete_runs(), and sim_rich().
|
inlinevirtual |
|
inline |
Definition at line 58 of file PndRich.h.
References fUseProtection.
|
private |
|
private |
energy loss
Definition at line 108 of file PndRich.h.
Referenced by ConstructOpGeometry(), Initialize(), and ProcessHits().
|
private |
Definition at line 109 of file PndRich.h.
Referenced by Initialize(), and PndRich().
|
private |
Definition at line 113 of file PndRich.h.
Referenced by ConstructOpGeometry(), DefGeoVersion(), Initialize(), PndRich(), and SetGeoVersion().
|
private |
std::vector<std::string> PndRich::fListOfSensitives |
Definition at line 58 of file PndRich.h.
Referenced by CheckIfSensitive(), Initialize(), and PndRich().
|
private |
|
private |
Definition at line 130 of file PndRich.h.
Referenced by ConstructOpGeometry(), Initialize(), and ProcessHits().
|
private |
Definition at line 126 of file PndRich.h.
Referenced by Initialize().
|
private |
Definition at line 118 of file PndRich.h.
Referenced by AddBarPoint(), EndOfEvent(), GetCollection(), Register(), Reset(), and ~PndRich().
|
private |
container for data points
Definition at line 117 of file PndRich.h.
Referenced by AddPDPoint(), EndOfEvent(), GetCollection(), Register(), Reset(), and ~PndRich().
|
private |
|
private |
Definition at line 112 of file PndRich.h.
Referenced by Initialize(), ProcessHits(), Register(), and SetRunCherenkov().
|
private |
|
private |
Track information to be stored until the track leaves the
active volume.
Definition at line 100 of file PndRich.h.
Referenced by ProcessHits().
|
private |
///< converter for detector names
Definition at line 111 of file PndRich.h.
Referenced by UseProtection().
|
private |
|
private |
Definition at line 125 of file PndRich.h.
Referenced by Initialize().
|
private |
Definition at line 131 of file PndRich.h.
Referenced by Initialize(), and ProcessHits().
|
private |
Definition at line 128 of file PndRich.h.
Referenced by EndOfEvent(), Initialize(), and ProcessHits().