PandaRoot
PndDrc Class Reference

#include <PndDrc.h>

Inheritance diagram for PndDrc:

Public Member Functions

 PndDrc ()
 
 PndDrc (const char *name, Bool_t active)
 
virtual ~PndDrc ()
 
void StopSecondaries (Bool_t ss=kFALSE)
 Kill secondaries at its production point. More...
 
void StopChargedTrackAfterDIRC (Bool_t sctad=kTRUE)
 Kill charged track by exiting the DIRC to avoid it hitting the large EV. More...
 
void SetDetEffId (Int_t val=2)
 Set MCP-Pmt's quantum effeciency. More...
 
void SetDetEffAtProduction (Bool_t dep=kFALSE)
 Kill photons at production point according to the detector efficiency distribution. More...
 
void SetTransportEffAtProduction (Bool_t tra=kFALSE)
 Kill photons at production point according to the transport efficiency distribution. More...
 
void SetMirrorReal (Bool_t mir=kTRUE)
 Choose between ideal and real mirror: More...
 
void SetBlackLensSides (Bool_t lesi=kFALSE)
 
void SetStopTime (Double_t ti=-1.)
 Set time after which photons are killed. More...
 
void SetOptionForLUT (Bool_t oplu=kFALSE)
 
virtual void Initialize ()
 
void SetPersistency (Bool_t v=kTRUE)
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void FinishPrimary ()
 
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 *clPD1, TClonesArray *clPD2, TClonesArray *clBar1, TClonesArray *clBar2, Int_t offset)
 
void FinishRun ()
 
virtual void ConstructGeometry ()
 
virtual void ConstructOpGeometry ()
 
bool CheckIfSensitive (std::string name)
 
void NumberOfBounces (TVector3, TVector3, Int_t, Int_t *, Int_t *, Double_t *, Double_t *)
 
Double_t FindOutPoint (Double_t, Double_t, Double_t, Double_t *, Bool_t)
 
PndDrcPDPointAddHit (Int_t trackID, Int_t copyNo, Int_t mcpId, TVector3 pos, TVector3 mom, TVector3 momAtEV, Double_t timeAtEV, Double_t time, Double_t length, Int_t pdgCode, Int_t eventID)
 
PndDrcEVPointAddEVHit (Int_t trackID, Int_t copyNo, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Int_t pdgCode, Int_t eventID, Double_t timestart, Double_t timestartEV, Double_t VeloPhoton, TVector3 normal)
 
PndDrcBarPointAddBarHit (Int_t trackID, Int_t copyNo, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Int_t pdgCode, Double_t thetaC, Int_t nBar, Int_t eventID, Double_t mass)
 
void SetRunCherenkov (Bool_t ch)
 

Public Attributes

std::vector< std::string > fListOfSensitives
 

Detailed Description

Definition at line 27 of file PndDrc.h.

Constructor & Destructor Documentation

◆ PndDrc() [1/2]

PndDrc::PndDrc ( )

Default constructor

◆ PndDrc() [2/2]

PndDrc::PndDrc ( const char *  name,
Bool_t  active 
)

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

◆ ~PndDrc()

virtual PndDrc::~PndDrc ( )
virtual

Destructor

Member Function Documentation

◆ AddBarHit()

PndDrcBarPoint* PndDrc::AddBarHit ( Int_t  trackID,
Int_t  copyNo,
TVector3  pos,
TVector3  mom,
Double_t  time,
Double_t  length,
Int_t  pdgCode,
Double_t  thetaC,
Int_t  nBar,
Int_t  eventID,
Double_t  mass 
)

◆ AddEVHit()

PndDrcEVPoint* PndDrc::AddEVHit ( Int_t  trackID,
Int_t  copyNo,
TVector3  pos,
TVector3  mom,
Double_t  time,
Double_t  length,
Int_t  pdgCode,
Int_t  eventID,
Double_t  timestart,
Double_t  timestartEV,
Double_t  VeloPhoton,
TVector3  normal 
)

◆ AddHit()

PndDrcPDPoint* PndDrc::AddHit ( Int_t  trackID,
Int_t  copyNo,
Int_t  mcpId,
TVector3  pos,
TVector3  mom,
TVector3  momAtEV,
Double_t  timeAtEV,
Double_t  time,
Double_t  length,
Int_t  pdgCode,
Int_t  eventID 
)

◆ BeginEvent()

virtual void PndDrc::BeginEvent ( )
virtual

Referenced by SetPersistency().

◆ CheckIfSensitive()

bool PndDrc::CheckIfSensitive ( std::string  name)

◆ ConstructGeometry()

virtual void PndDrc::ConstructGeometry ( )
virtual

Virtual method Construct geometry

Referenced by SetPersistency().

◆ ConstructOpGeometry()

virtual void PndDrc::ConstructOpGeometry ( )
virtual

Referenced by SetPersistency().

◆ CopyClones()

virtual void PndDrc::CopyClones ( TClonesArray *  clPD1,
TClonesArray *  clPD2,
TClonesArray *  clBar1,
TClonesArray *  clBar2,
Int_t  offset 
)
virtual

Virtual method CopyClones

Copies the hit collection with a given track index offset

Parameters
cl1Origin
cl2Target
offsetIndex offset

Referenced by SetPersistency().

◆ EndOfEvent()

virtual void PndDrc::EndOfEvent ( )
virtual

Virtual method EndOfEvent

If verbosity level is set, print hit collection at the end of the event and resets it afterwards.

Referenced by SetPersistency().

◆ FindOutPoint()

Double_t PndDrc::FindOutPoint ( Double_t  ,
Double_t  ,
Double_t  ,
Double_t *  ,
Bool_t   
)

◆ FinishPrimary()

virtual void PndDrc::FinishPrimary ( )
virtual

Referenced by SetPersistency().

◆ FinishRun()

void PndDrc::FinishRun ( )

Referenced by SetPersistency().

◆ GetCollection()

virtual TClonesArray* PndDrc::GetCollection ( Int_t  iColl) const
virtual

Accessor to the hit collection

Referenced by SetPersistency().

◆ Initialize()

virtual void PndDrc::Initialize ( )
virtual

Referenced by SetOptionForLUT().

◆ NumberOfBounces()

void PndDrc::NumberOfBounces ( TVector3  ,
TVector3  ,
Int_t  ,
Int_t *  ,
Int_t *  ,
Double_t *  ,
Double_t *   
)

◆ Print()

virtual void PndDrc::Print ( ) const
virtual

Virtual method Print

Screen output of hit collection.

Referenced by SetPersistency().

◆ ProcessHits()

virtual Bool_t PndDrc::ProcessHits ( FairVolume *  vol = 0)
virtual

Virtual method ProcessHits

Defines the action to be taken when a step is inside the active volume. Creates PndDrcPoints and PndDrcMirrorPoints and adds them to the collections.

Parameters
volPointer to the active volume

Referenced by SetPersistency().

◆ Register()

virtual void PndDrc::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

Referenced by SetPersistency().

◆ Reset()

virtual void PndDrc::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

Referenced by SetPersistency().

◆ SetBlackLensSides()

void PndDrc::SetBlackLensSides ( Bool_t  lesi = kFALSE)
inline

Definition at line 90 of file PndDrc.h.

90 { fSetBlackLens = lesi; }

◆ SetDetEffAtProduction()

void PndDrc::SetDetEffAtProduction ( Bool_t  dep = kFALSE)
inline

Kill photons at production point according to the detector efficiency distribution.

Parameters
depNOTE! Transport efficiency can not be used together with Detector efficiency: it can not be used like: SetDetEffAtProduction(kTRUE) SetTransportEffAtProduction(kTRUE)

at least one of them should be kFALSE

Definition at line 68 of file PndDrc.h.

68 { fDetEffAtProduction = dep; }

◆ SetDetEffId()

void PndDrc::SetDetEffId ( Int_t  val = 2)
inline

Set MCP-Pmt's quantum effeciency.

Parameters
0- Std QE
1- Hiq 400

Definition at line 56 of file PndDrc.h.

56 { fDetEffId = val; }

◆ SetMirrorReal()

void PndDrc::SetMirrorReal ( Bool_t  mir = kTRUE)
inline

Choose between ideal and real mirror:

Parameters
mirkFALSE - take ideal mirror, reflectivity = 1 for photons within energy range 1..10 eV kTRUE - take real mirror, reflectivity has realistic values for photons within energy range 1.907..6.199 eV

Definition at line 88 of file PndDrc.h.

88 { fTakeRealReflectivity = mir; }

◆ SetOptionForLUT()

void PndDrc::SetOptionForLUT ( Bool_t  oplu = kFALSE)
inline

Virtual method Initialize Initialises detector. Stores volume IDs for DIRC detector and mirror.

Definition at line 110 of file PndDrc.h.

References Initialize().

110 { fOptionForLUT = oplu; }

◆ SetPersistency()

void PndDrc::SetPersistency ( Bool_t  v = kTRUE)
inline

◆ SetRunCherenkov()

void PndDrc::SetRunCherenkov ( Bool_t  ch)
inline

Definition at line 191 of file PndDrc.h.

191 { fRunCherenkov = ch; };

◆ SetStopTime()

void PndDrc::SetStopTime ( Double_t  ti = -1.)
inline

Set time after which photons are killed.

Parameters
tiThe time (ns)

Definition at line 95 of file PndDrc.h.

96  {
97  fPhoMaxTime = ti;
98  if (fPhoMaxTime > 0.) {
99  fStopTime = kTRUE;
100  }
101  if (fPhoMaxTime <= 0.) {
102  fStopTime = kFALSE;
103  }
104  }

◆ SetTransportEffAtProduction()

void PndDrc::SetTransportEffAtProduction ( Bool_t  tra = kFALSE)
inline

Kill photons at production point according to the transport efficiency distribution.

Parameters
traNOTE! Transport efficiency can not be used together with Detector efficiency: it can not be used like: SetDetEffAtProduction(kTRUE) SetTransportEffAtProduction(kTRUE)

at least one of them should be kFALSE

Definition at line 81 of file PndDrc.h.

81 { fTransportEffAtProduction = tra; }

◆ StopChargedTrackAfterDIRC()

void PndDrc::StopChargedTrackAfterDIRC ( Bool_t  sctad = kTRUE)
inline

Kill charged track by exiting the DIRC to avoid it hitting the large EV.

Parameters
sctad

Definition at line 50 of file PndDrc.h.

50 { fStopChargedTrackAfterDIRC = sctad; }

◆ StopSecondaries()

void PndDrc::StopSecondaries ( Bool_t  ss = kFALSE)
inline

Kill secondaries at its production point.

Parameters
ss

Definition at line 45 of file PndDrc.h.

45 { fStopSecondaries = ss; }

Member Data Documentation

◆ fListOfSensitives

std::vector<std::string> PndDrc::fListOfSensitives

Definition at line 176 of file PndDrc.h.


The documentation for this class was generated from the following file: