CbmRoot
Loading...
Searching...
No Matches
CbmTrd Class Reference

Defines the active detector TRD. Constructs the geometry and registers MCPoints. More...

#include <CbmTrd.h>

Inheritance diagram for CbmTrd:
[legend]
Collaboration diagram for CbmTrd:
[legend]

Public Member Functions

 CbmTrd ()
 Default constructor.
 
 CbmTrd (const char *name, Bool_t active)
 Standard constructor.
 
 CbmTrd (const CbmTrd &)=delete
 
CbmTrd operator= (const CbmTrd &)=delete
 
virtual ~CbmTrd ()
 Destructor.
 
virtual Bool_t ProcessHits (FairVolume *vol=NULL)
 Defines the action to be taken when a step is inside the active volume. Creates CbmTrdPoints and adds them to the collection.
 
virtual void EndOfEvent ()
 If verbosity level is set, print hit collection at the end of the event and resets it afterwards.
 
virtual void Register ()
 Registers the hit collection in the ROOT manager.
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 Accessor to the hit collection.
 
virtual void Print (Option_t *="") const
 Screen output of hit collection.
 
virtual void Reset ()
 Clears the hit collection.
 
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 Copies the hit collection with a given track index offset.
 
virtual void ConstructGeometry ()
 Constructs the TRD geometry.
 
Bool_t CheckIfSensitive (std::string name)
 
virtual Bool_t IsSensitive (const std::string &name)
 
void UseGlobalPhysicsProcesses (Bool_t use)
 
void SetTransformationMatrix (TGeoMatrix *mat)
 

Private Member Functions

void ResetParameters ()
 Transformation matrix for geometry positioning.
 
virtual void Initialize ()
 
virtual void SetSpecialPhysicsCuts ()
 
virtual void ConstructRootGeometry (TGeoMatrix *shift=NULL)
 
 ClassDef (CbmTrd, 10)
 

Private Attributes

TLorentzVector fPosIn
 
TLorentzVector fMomIn
 position at entrance
 
TLorentzVector fPosOut
 momentum at entrance
 
TLorentzVector fMomOut
 position at exit
 
Double32_t fTime
 momentum at exit
 
Double32_t fLength
 time
 
Double32_t fELoss
 length
 
Int_t fPosIndex
 energy loss
 
TClonesArray * fTrdPoints
 position index
 
CbmTrdGeoHandlerfGeoHandler
 MC point collection.
 
Bool_t fUseGlobalPhysicsProcesses
 Interface to gMC and gGeoManager.
 
TGeoMatrix * fCombiTrans
 weather to follow the global switch for physics cuts for the TRDgas
 

Detailed Description

Defines the active detector TRD. Constructs the geometry and registers MCPoints.

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Date
27.07.2004

Definition at line 34 of file CbmTrd.h.

Constructor & Destructor Documentation

◆ CbmTrd() [1/3]

CbmTrd::CbmTrd ( )

Default constructor.

Definition at line 38 of file CbmTrd.cxx.

◆ CbmTrd() [2/3]

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

Standard constructor.

Parameters
nameDetector name.
activeSensitivity flag

Definition at line 59 of file CbmTrd.cxx.

◆ CbmTrd() [3/3]

CbmTrd::CbmTrd ( const CbmTrd & )
delete

◆ ~CbmTrd()

CbmTrd::~CbmTrd ( )
virtual

Destructor.

Definition at line 80 of file CbmTrd.cxx.

References fGeoHandler, and fTrdPoints.

Member Function Documentation

◆ CheckIfSensitive()

Bool_t CbmTrd::CheckIfSensitive ( std::string name)

Definition at line 335 of file CbmTrd.cxx.

References IsSensitive().

◆ ClassDef()

CbmTrd::ClassDef ( CbmTrd ,
10  )
private

◆ ConstructGeometry()

void CbmTrd::ConstructGeometry ( )
virtual

Constructs the TRD geometry.

Definition at line 300 of file CbmTrd.cxx.

References ConstructRootGeometry().

◆ ConstructRootGeometry()

void CbmTrd::ConstructRootGeometry ( TGeoMatrix * shift = NULL)
privatevirtual

◆ CopyClones()

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

Copies the hit collection with a given track index offset.

Parameters
cl1Origin.
cl2Target.
offsetIndex offset.

Definition at line 282 of file CbmTrd.cxx.

References fPosIndex.

◆ EndOfEvent()

void CbmTrd::EndOfEvent ( )
virtual

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

Definition at line 233 of file CbmTrd.cxx.

References fPosIndex, fTrdPoints, and Print().

◆ GetCollection()

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

Accessor to the hit collection.

Definition at line 248 of file CbmTrd.cxx.

References fTrdPoints.

◆ Initialize()

void CbmTrd::Initialize ( )
privatevirtual

Definition at line 92 of file CbmTrd.cxx.

References fGeoHandler, and CbmTrdGeoHandler::Init().

◆ IsSensitive()

Bool_t CbmTrd::IsSensitive ( const std::string & name)
virtual

Definition at line 324 of file CbmTrd.cxx.

Referenced by CheckIfSensitive().

◆ operator=()

CbmTrd CbmTrd::operator= ( const CbmTrd & )
delete

◆ Print()

void CbmTrd::Print ( Option_t * = "") const
virtual

Screen output of hit collection.

Definition at line 258 of file CbmTrd.cxx.

References fTrdPoints.

Referenced by EndOfEvent().

◆ ProcessHits()

Bool_t CbmTrd::ProcessHits ( FairVolume * vol = NULL)
virtual

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.

Definition at line 189 of file CbmTrd.cxx.

References CbmStack::AddPoint(), fELoss, fGeoHandler, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fTime, fTrdPoints, CbmTrdGeoHandler::GetModuleAddress(), kTrd, ResetParameters(), and size().

◆ Register()

void CbmTrd::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 243 of file CbmTrd.cxx.

References fTrdPoints.

◆ Reset()

void CbmTrd::Reset ( )
virtual

Clears the hit collection.

Definition at line 273 of file CbmTrd.cxx.

References fTrdPoints, and ResetParameters().

◆ ResetParameters()

void CbmTrd::ResetParameters ( )
inlineprivate

Transformation matrix for geometry positioning.

Resets the private members for the track parameters.

Definition at line 141 of file CbmTrd.h.

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

Referenced by ProcessHits(), and Reset().

◆ SetSpecialPhysicsCuts()

void CbmTrd::SetSpecialPhysicsCuts ( )
privatevirtual

Definition at line 105 of file CbmTrd.cxx.

References fUseGlobalPhysicsProcesses.

◆ SetTransformationMatrix()

void CbmTrd::SetTransformationMatrix ( TGeoMatrix * mat)
inline

Definition at line 106 of file CbmTrd.h.

References fCombiTrans.

◆ UseGlobalPhysicsProcesses()

void CbmTrd::UseGlobalPhysicsProcesses ( Bool_t use)
inline

Definition at line 104 of file CbmTrd.h.

References fUseGlobalPhysicsProcesses.

Member Data Documentation

◆ fCombiTrans

TGeoMatrix* CbmTrd::fCombiTrans
private

weather to follow the global switch for physics cuts for the TRDgas

Definition at line 125 of file CbmTrd.h.

Referenced by ConstructRootGeometry(), and SetTransformationMatrix().

◆ fELoss

Double32_t CbmTrd::fELoss
private

length

Definition at line 117 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fGeoHandler

CbmTrdGeoHandler* CbmTrd::fGeoHandler
private

MC point collection.

Definition at line 121 of file CbmTrd.h.

Referenced by Initialize(), ProcessHits(), and ~CbmTrd().

◆ fLength

Double32_t CbmTrd::fLength
private

time

Definition at line 116 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomIn

TLorentzVector CbmTrd::fMomIn
private

position at entrance

Definition at line 112 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomOut

TLorentzVector CbmTrd::fMomOut
private

position at exit

Definition at line 114 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPosIn

TLorentzVector CbmTrd::fPosIn
private

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

Definition at line 111 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPosIndex

Int_t CbmTrd::fPosIndex
private

energy loss

Definition at line 118 of file CbmTrd.h.

Referenced by CopyClones(), EndOfEvent(), and ResetParameters().

◆ fPosOut

TLorentzVector CbmTrd::fPosOut
private

momentum at entrance

Definition at line 113 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTime

Double32_t CbmTrd::fTime
private

momentum at exit

Definition at line 115 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTrdPoints

TClonesArray* CbmTrd::fTrdPoints
private

position index

Definition at line 120 of file CbmTrd.h.

Referenced by EndOfEvent(), GetCollection(), Print(), ProcessHits(), Register(), Reset(), and ~CbmTrd().

◆ fUseGlobalPhysicsProcesses

Bool_t CbmTrd::fUseGlobalPhysicsProcesses
private

Interface to gMC and gGeoManager.

Definition at line 123 of file CbmTrd.h.

Referenced by SetSpecialPhysicsCuts(), and UseGlobalPhysicsProcesses().


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