PandaRoot
PndSdsDetector Class Referenceabstract

#include <PndSdsDetector.h>

Inheritance diagram for PndSdsDetector:
PndLmdDetector PndMvdDetector

Public Member Functions

 PndSdsDetector ()
 
 PndSdsDetector (PndSdsDetector &other)
 
 PndSdsDetector (const char *name, Bool_t active)
 
virtual ~PndSdsDetector ()
 
PndSdsDetectoroperator= (PndSdsDetector &other)
 
virtual void Initialize ()
 
virtual void SetBranchNames ()=0
 
virtual void SetDefaultSensorNames ()=0
 
void SetExclusiveSensorType (const TString sens)
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void EndOfEvent ()
 
virtual void FinishRun ()
 
virtual void Register ()
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 
virtual void Print () const
 
virtual void SetSpecialPhysicsCuts ()
 
virtual void Reset ()
 
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 
virtual void ConstructGeometry ()
 
virtual void ConstructASCIIGeometry ()
 
void SetDetectorID (DetectorId id)
 
void SetRadDamOption (bool val)
 
bool GetRadDamOption ()
 
void SetVerboseLevel (Int_t level)
 
void SetPersistance (Bool_t p=kTRUE)
 
Bool_t GetPersistance ()
 

Protected Member Functions

bool CheckIfSensitive (std::string name)
 
PndSdsMCPointAddHit (Int_t trackID, Int_t detID, Int_t sensorID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss)
 
void ResetParameters ()
 
 ClassDef (PndSdsDetector, 6)
 

Protected Attributes

Bool_t fPersistance
 
Int_t fTrackID
 
Int_t fVolumeID
 track index More...
 
TLorentzVector fPosIn
 Det id. More...
 
TLorentzVector fPosOut
 entry position in global frame More...
 
TLorentzVector fMomIn
 exit position in global frame More...
 
TLorentzVector fMomOut
 momentum More...
 
Double32_t fTime
 momentum More...
 
Double32_t fLength
 time More...
 
Double32_t fELoss
 length More...
 
PndGeoHandlingfGeoH
 energy loss More...
 
Int_t fPosIndex
 Gives Access to the Path info of a hit. More...
 
TClonesArray * fPndSdsCollection
 
bool fUseRadDamOption
 Hit collection. More...
 
TString fOutBranchName
 enables the detection of neutral particles More...
 
TString fFolderName
 To be set by daughter classes. More...
 
DetectorId fDetectorID
 To be set by daughter classes. More...
 
std::vector< std::string > fListOfSensitives
 To be set by daughter classes. More...
 

Detailed Description

Definition at line 34 of file PndSdsDetector.h.

Constructor & Destructor Documentation

◆ PndSdsDetector() [1/3]

PndSdsDetector::PndSdsDetector ( )

Default constructor

Referenced by PndSdsDetector().

◆ PndSdsDetector() [2/3]

PndSdsDetector::PndSdsDetector ( PndSdsDetector other)
inline

Definition at line 40 of file PndSdsDetector.h.

References PndSdsDetector(), and ~PndSdsDetector().

41  : FairDetector(other), fPersistance(other.fPersistance), fTrackID(other.fTrackID), fVolumeID(other.fVolumeID), fPosIn(other.fPosIn), fPosOut(other.fPosOut),
42  fMomIn(other.fMomIn), fMomOut(other.fMomOut), fTime(other.fTime), fLength(other.fLength), fELoss(other.fELoss), fGeoH(other.fGeoH), fPosIndex(other.fPosIndex),
TClonesArray * fPndSdsCollection
TLorentzVector fPosOut
entry position in global frame
Int_t fVolumeID
track index
TLorentzVector fMomOut
momentum
TLorentzVector fPosIn
Det id.
Int_t fPosIndex
Gives Access to the Path info of a hit.
std::vector< std::string > fListOfSensitives
To be set by daughter classes.
Double32_t fTime
momentum
PndGeoHandling * fGeoH
energy loss
Double32_t fLength
time
TString fOutBranchName
enables the detection of neutral particles
Double32_t fELoss
length
TLorentzVector fMomIn
exit position in global frame
TString fFolderName
To be set by daughter classes.
DetectorId fDetectorID
To be set by daughter classes.
bool fUseRadDamOption
Hit collection.

◆ PndSdsDetector() [3/3]

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

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

◆ ~PndSdsDetector()

virtual PndSdsDetector::~PndSdsDetector ( )
virtual

Destructor

Referenced by PndSdsDetector().

Member Function Documentation

◆ AddHit()

PndSdsMCPoint* PndSdsDetector::AddHit ( Int_t  trackID,
Int_t  detID,
Int_t  sensorID,
TVector3  posIn,
TVector3  posOut,
TVector3  momIn,
TVector3  momOut,
Double_t  time,
Double_t  length,
Double_t  eLoss 
)
protected

Private method AddHit

Adds a CbmTrdPoint to the HitCollection

◆ CheckIfSensitive()

bool PndSdsDetector::CheckIfSensitive ( std::string  name)
protected

◆ ClassDef()

PndSdsDetector::ClassDef ( PndSdsDetector  ,
 
)
protected

◆ ConstructASCIIGeometry()

virtual void PndSdsDetector::ConstructASCIIGeometry ( )
virtual

Referenced by operator=().

◆ ConstructGeometry()

virtual void PndSdsDetector::ConstructGeometry ( )
virtual

Virtual method Construct geometry

Constructs the PndSdsDetector geometry

Referenced by operator=().

◆ CopyClones()

virtual void PndSdsDetector::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

Referenced by operator=().

◆ EndOfEvent()

virtual void PndSdsDetector::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 operator=().

◆ FinishRun()

virtual void PndSdsDetector::FinishRun ( )
virtual

Referenced by operator=().

◆ GetCollection()

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

Accessor to the hit collection

Referenced by operator=().

◆ GetPersistance()

Bool_t PndSdsDetector::GetPersistance ( )
inline

Definition at line 174 of file PndSdsDetector.h.

References fPersistance.

174 { return fPersistance; };

◆ GetRadDamOption()

bool PndSdsDetector::GetRadDamOption ( )
inline

Definition at line 164 of file PndSdsDetector.h.

References fUseRadDamOption.

164 { return fUseRadDamOption; };
bool fUseRadDamOption
Hit collection.

◆ Initialize()

virtual void PndSdsDetector::Initialize ( )
virtual

◆ operator=()

PndSdsDetector& PndSdsDetector::operator= ( PndSdsDetector other)
inline

Definition at line 54 of file PndSdsDetector.h.

References ConstructASCIIGeometry(), ConstructGeometry(), CopyClones(), EndOfEvent(), fDetectorID, fELoss, fFolderName, fGeoH, FinishRun(), fLength, fListOfSensitives, fMomIn, fMomOut, fOutBranchName, fPersistance, fPndSdsCollection, fPosIn, fPosIndex, fPosOut, fTime, fTrackID, fUseRadDamOption, fVolumeID, GetCollection(), Initialize(), Print(), ProcessHits(), Register(), Reset(), SetBranchNames(), SetDefaultSensorNames(), SetExclusiveSensorType(), and SetSpecialPhysicsCuts().

55  {
56  fPersistance = other.fPersistance;
57  fTrackID = other.fTrackID;
58  fVolumeID = other.fVolumeID;
59  fPosIn = other.fPosIn;
60  fPosOut = other.fPosOut;
61  fMomIn = other.fMomIn;
62  fMomOut = other.fMomOut;
63  fTime = other.fTime;
64  fLength = other.fLength;
65  fELoss = other.fELoss;
66  fGeoH = other.fGeoH;
67  fPosIndex = other.fPosIndex;
71  fFolderName = other.fFolderName;
72  fDetectorID = other.fDetectorID;
74  return *this;
75  };
TClonesArray * fPndSdsCollection
TLorentzVector fPosOut
entry position in global frame
Int_t fVolumeID
track index
TLorentzVector fMomOut
momentum
TLorentzVector fPosIn
Det id.
Int_t fPosIndex
Gives Access to the Path info of a hit.
std::vector< std::string > fListOfSensitives
To be set by daughter classes.
Double32_t fTime
momentum
PndGeoHandling * fGeoH
energy loss
Double32_t fLength
time
TString fOutBranchName
enables the detection of neutral particles
Double32_t fELoss
length
TLorentzVector fMomIn
exit position in global frame
TString fFolderName
To be set by daughter classes.
DetectorId fDetectorID
To be set by daughter classes.
bool fUseRadDamOption
Hit collection.

◆ Print()

virtual void PndSdsDetector::Print ( ) const
virtual

Virtual method Print

Screen output of hit collection.

Referenced by operator=().

◆ ProcessHits()

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

Virtual method ProcessHits

Defines the action to be taken when a step is inside the active volume. Creates CbmTrdPoints and adds them to the collection.

Parameters
volPointer to the active volume

Referenced by operator=().

◆ Register()

virtual void PndSdsDetector::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

Referenced by operator=().

◆ Reset()

virtual void PndSdsDetector::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

Referenced by operator=().

◆ ResetParameters()

void PndSdsDetector::ResetParameters ( )
inlineprotected

Private method ResetParameters

Resets the private members for the track parameters

Definition at line 219 of file PndSdsDetector.h.

References fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosIndex, fPosOut, fTime, fTrackID, and fVolumeID.

220 {
221  fTrackID = 0;
222  fVolumeID = 1;
223  fPosIn.SetXYZM(0.0, 0.0, 0.0, 0.0);
224  fPosOut.SetXYZM(0.0, 0.0, 0.0, 0.0);
225  fMomIn.SetXYZM(0.0, 0.0, 0.0, 0.0);
226  fMomOut.SetXYZM(0.0, 0.0, 0.0, 0.0);
227  fTime = fLength = fELoss = 0;
228  fPosIndex = 0;
229 }
TLorentzVector fPosOut
entry position in global frame
Int_t fVolumeID
track index
TLorentzVector fMomOut
momentum
TLorentzVector fPosIn
Det id.
Int_t fPosIndex
Gives Access to the Path info of a hit.
Double32_t fTime
momentum
Double32_t fLength
time
Double32_t fELoss
length
TLorentzVector fMomIn
exit position in global frame

◆ SetBranchNames()

virtual void PndSdsDetector::SetBranchNames ( )
pure virtual

pure virtual method SetBranchName

called by Initialize() function to set individual branch names

Implemented in PndLmdDetector, and PndMvdDetector.

Referenced by operator=().

◆ SetDefaultSensorNames()

virtual void PndSdsDetector::SetDefaultSensorNames ( )
pure virtual

pure virtual method SetDefaultSensorNames

called by Initialize() function to set individual sensor type names

Implemented in PndLmdDetector, and PndMvdDetector.

Referenced by operator=().

◆ SetDetectorID()

void PndSdsDetector::SetDetectorID ( DetectorId  id)
inline

Definition at line 157 of file PndSdsDetector.h.

References fDetectorID.

158  {
159  fDetectorID = id;
160  fDetId = static_cast<int>(id);
161  }
DetectorId fDetectorID
To be set by daughter classes.

◆ SetExclusiveSensorType()

void PndSdsDetector::SetExclusiveSensorType ( const TString  sens)

Referenced by operator=().

◆ SetPersistance()

void PndSdsDetector::SetPersistance ( Bool_t  p = kTRUE)
inline

Definition at line 173 of file PndSdsDetector.h.

References fPersistance.

173 { fPersistance = p; };

◆ SetRadDamOption()

void PndSdsDetector::SetRadDamOption ( bool  val)
inline

Definition at line 163 of file PndSdsDetector.h.

References fUseRadDamOption.

163 { fUseRadDamOption = val; };
bool fUseRadDamOption
Hit collection.

◆ SetSpecialPhysicsCuts()

virtual void PndSdsDetector::SetSpecialPhysicsCuts ( )
virtual

Virtual Method SetSpecialPhysicsCuts

replaces some Geant initialisation via g3Config.C and so on

Reimplemented in PndMvdDetector.

Referenced by operator=().

◆ SetVerboseLevel()

void PndSdsDetector::SetVerboseLevel ( Int_t  level)
inline

Definition at line 167 of file PndSdsDetector.h.

References fGeoH, and PndGeoHandling::SetVerbose().

168  {
169  fVerboseLevel = level;
170  fGeoH->SetVerbose(level);
171  }
PndGeoHandling * fGeoH
energy loss
void SetVerbose(Int_t v)

Member Data Documentation

◆ fDetectorID

DetectorId PndSdsDetector::fDetectorID
protected

To be set by daughter classes.

Definition at line 197 of file PndSdsDetector.h.

Referenced by operator=(), and SetDetectorID().

◆ fELoss

Double32_t PndSdsDetector::fELoss
protected

length

Definition at line 189 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fFolderName

TString PndSdsDetector::fFolderName
protected

To be set by daughter classes.

Definition at line 196 of file PndSdsDetector.h.

Referenced by operator=().

◆ fGeoH

PndGeoHandling* PndSdsDetector::fGeoH
protected

energy loss

Definition at line 191 of file PndSdsDetector.h.

Referenced by operator=(), and SetVerboseLevel().

◆ fLength

Double32_t PndSdsDetector::fLength
protected

time

Definition at line 188 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fListOfSensitives

std::vector<std::string> PndSdsDetector::fListOfSensitives
protected

To be set by daughter classes.

Definition at line 199 of file PndSdsDetector.h.

Referenced by operator=().

◆ fMomIn

TLorentzVector PndSdsDetector::fMomIn
protected

exit position in global frame

Definition at line 185 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fMomOut

TLorentzVector PndSdsDetector::fMomOut
protected

momentum

Definition at line 186 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fOutBranchName

TString PndSdsDetector::fOutBranchName
protected

enables the detection of neutral particles

Definition at line 195 of file PndSdsDetector.h.

Referenced by operator=().

◆ fPersistance

Bool_t PndSdsDetector::fPersistance
protected

Definition at line 174 of file PndSdsDetector.h.

Referenced by GetPersistance(), operator=(), and SetPersistance().

◆ fPndSdsCollection

TClonesArray* PndSdsDetector::fPndSdsCollection
protected

Definition at line 193 of file PndSdsDetector.h.

Referenced by operator=().

◆ fPosIn

TLorentzVector PndSdsDetector::fPosIn
protected

Det id.

Definition at line 183 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fPosIndex

Int_t PndSdsDetector::fPosIndex
protected

Gives Access to the Path info of a hit.

Definition at line 192 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fPosOut

TLorentzVector PndSdsDetector::fPosOut
protected

entry position in global frame

Definition at line 184 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fTime

Double32_t PndSdsDetector::fTime
protected

momentum

Definition at line 187 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fTrackID

Int_t PndSdsDetector::fTrackID
protected

Track information to be stored until the track leaves the active volume.

Definition at line 181 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().

◆ fUseRadDamOption

bool PndSdsDetector::fUseRadDamOption
protected

Hit collection.

Definition at line 194 of file PndSdsDetector.h.

Referenced by GetRadDamOption(), operator=(), and SetRadDamOption().

◆ fVolumeID

Int_t PndSdsDetector::fVolumeID
protected

track index

Definition at line 182 of file PndSdsDetector.h.

Referenced by operator=(), and ResetParameters().


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