PandaRoot
PndDsk Class Reference

#include <PndDsk.h>

Inheritance diagram for PndDsk:

Public Member Functions

 PndDsk ()
 
 PndDsk (const char *name, Bool_t active)
 
virtual ~PndDsk ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void EndOfEvent ()
 
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 ()
 
virtual Bool_t CheckIfSensitive (std::string name)
 
Bool_t DichroicMirrorTransmitted (Double_t wavelength, Int_t detector_type)
 
PndDskCerenkovAddCerenkov (Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Double_t energy, Double_t wavelength, Int_t motherTrackID, Int_t motherPdgCode, TString motherPdgName)
 
PndDskFLGHitAddHit (Int_t trackID, Int_t detectorID, TVector3 position_store, TVector3 momentum_store, Double_t time, Double_t angIn, Double_t thetaC_store, TVector3 Cherenkov_photon, Int_t light_guide, Int_t pixel)
 
PndDskParticleAddParticle (Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Int_t pdgCode, TString pdgName, Double_t energy, Int_t motherTrackID, Int_t motherPdgCode, TString motherPdgName, Double_t mass, Double_t angIn, Double_t thetaC, Int_t nPhot)
 
PndDskTrackPointAddTrackPoint (Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Double_t length, Double_t eLoss)
 
void SetDebugLevel (Int_t debugLevel)
 
void SetPDE (Double_t pde)
 
void SetStoreCerenkovs (Bool_t storeCerenkovs)
 
void SetStoreParticles (Bool_t storeParticles)
 
void SetStoreTrackPoints (Bool_t storeTrackPoints)
 
void SetTrapFraction (std::string name)
 

Detailed Description

Definition at line 22 of file PndDsk.h.

Constructor & Destructor Documentation

◆ PndDsk() [1/2]

PndDsk::PndDsk ( )

Default constructor

◆ PndDsk() [2/2]

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

Standard constructor with arguments

Parameters
namedetetcor name
activesensitivity flag

◆ ~PndDsk()

virtual PndDsk::~PndDsk ( )
virtual

Destructor

Member Function Documentation

◆ AddCerenkov()

PndDskCerenkov* PndDsk::AddCerenkov ( Int_t  trackID,
Int_t  detectorID,
TVector3  position,
TVector3  momentum,
Double_t  time,
Double_t  energy,
Double_t  wavelength,
Int_t  motherTrackID,
Int_t  motherPdgCode,
TString  motherPdgName 
)

Method AddCerenkov

Adds a Cerenkov to the collection

◆ AddHit()

PndDskFLGHit* PndDsk::AddHit ( Int_t  trackID,
Int_t  detectorID,
TVector3  position_store,
TVector3  momentum_store,
Double_t  time,
Double_t  angIn,
Double_t  thetaC_store,
TVector3  Cherenkov_photon,
Int_t  light_guide,
Int_t  pixel 
)

◆ AddParticle()

PndDskParticle* PndDsk::AddParticle ( Int_t  trackID,
Int_t  detectorID,
TVector3  position,
TVector3  momentum,
Double_t  time,
Int_t  pdgCode,
TString  pdgName,
Double_t  energy,
Int_t  motherTrackID,
Int_t  motherPdgCode,
TString  motherPdgName,
Double_t  mass,
Double_t  angIn,
Double_t  thetaC,
Int_t  nPhot 
)

Method AddParticle

Adds a Particle to the collection

◆ AddTrackPoint()

PndDskTrackPoint* PndDsk::AddTrackPoint ( Int_t  trackID,
Int_t  detectorID,
TVector3  position,
TVector3  momentum,
Double_t  time,
Double_t  length,
Double_t  eLoss 
)

Method AddTrackPoint

Adds a TrackPoint to the collection

◆ CheckIfSensitive()

virtual Bool_t PndDsk::CheckIfSensitive ( std::string  name)
virtual

Virtual method CheckIfSensitive

Decide if volume is sensitive

Parameters
nameName of the volume to check

◆ ConstructGeometry()

virtual void PndDsk::ConstructGeometry ( )
virtual

Virtual method ConstructGeometry

Decide how to construct the geometry

◆ CopyClones()

virtual void PndDsk::CopyClones ( TClonesArray *  cl1,
TClonesArray *  cl2,
Int_t  offset 
)
virtual

Virtual method CopyClones

Copies the hit collection with a given track index offset

Parameters
cl1Origin
cl2Target
offsetIndex offset

◆ DichroicMirrorTransmitted()

Bool_t PndDsk::DichroicMirrorTransmitted ( Double_t  wavelength,
Int_t  detector_type 
)

Method DichroicMirrorTransmitted

simulates dichroic mirrors

◆ EndOfEvent()

virtual void PndDsk::EndOfEvent ( )
virtual

Virtual method EndOfEvent

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

◆ GetCollection()

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

Virtual method GetCollection

Accessor to the Cerenkov and Particle collections

◆ Initialize()

virtual void PndDsk::Initialize ( )
virtual

Virtual method Initialize Initialises detector.

◆ Print()

virtual void PndDsk::Print ( ) const
virtual

Virtual method Print

Screen output of hit collection.

◆ ProcessHits()

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

Virtual method ProcessHits

Decides if actions for a Cerenkov or a Particle have to be taken and calls the ProcessHitsX method accordingly.

Parameters
volPointer to the active volume

◆ Register()

virtual void PndDsk::Register ( )
virtual

Virtual method Register

Registers the collections in the ROOT manager.

◆ Reset()

virtual void PndDsk::Reset ( )
virtual

Virtual method Reset

Clears the collections

◆ SetDebugLevel()

void PndDsk::SetDebugLevel ( Int_t  debugLevel)
inline

Modifiers

Definition at line 133 of file PndDsk.h.

133 { fDebugLevel = debugLevel; }

◆ SetPDE()

void PndDsk::SetPDE ( Double_t  pde)
inline

Definition at line 135 of file PndDsk.h.

135 { fPDE = pde; }

◆ SetStoreCerenkovs()

void PndDsk::SetStoreCerenkovs ( Bool_t  storeCerenkovs)
inline

Definition at line 136 of file PndDsk.h.

136 { fStoreCerenkovs = storeCerenkovs; }

◆ SetStoreParticles()

void PndDsk::SetStoreParticles ( Bool_t  storeParticles)
inline

Definition at line 137 of file PndDsk.h.

137 { fStoreParticles = storeParticles; }

◆ SetStoreTrackPoints()

void PndDsk::SetStoreTrackPoints ( Bool_t  storeTrackPoints)
inline

Definition at line 138 of file PndDsk.h.

References SetTrapFraction().

138 { fStoreTrackPoints = storeTrackPoints; }

◆ SetTrapFraction()

void PndDsk::SetTrapFraction ( std::string  name)

Referenced by SetStoreTrackPoints().


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