CbmRoot
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. More...
 
 CbmTrd (const char *name, Bool_t active)
 Standard constructor. More...
 
 CbmTrd (const CbmTrd &)=delete
 
CbmTrd operator= (const CbmTrd &)=delete
 
virtual ~CbmTrd ()
 Destructor. More...
 
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. More...
 
virtual void EndOfEvent ()
 If verbosity level is set, print hit collection at the end of the event and resets it afterwards. More...
 
virtual void Register ()
 Registers the hit collection in the ROOT manager. More...
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 Accessor to the hit collection. More...
 
virtual void Print (Option_t *="") const
 Screen output of hit collection. More...
 
virtual void Reset ()
 Clears the hit collection. More...
 
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 Copies the hit collection with a given track index offset. More...
 
virtual void ConstructGeometry ()
 Constructs the TRD geometry. More...
 
Bool_t CheckIfSensitive (std::string name)
 
void UseGlobalPhysicsProcesses (Bool_t use)
 
void SetTransformationMatrix (TGeoMatrix *mat)
 

Private Member Functions

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

Private Attributes

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

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 28 of file CbmTrd.h.

Constructor & Destructor Documentation

◆ CbmTrd() [1/3]

CbmTrd::CbmTrd ( )

Default constructor.

Definition at line 34 of file CbmTrd.cxx.

References kTrd.

◆ CbmTrd() [2/3]

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

Standard constructor.

Parameters
nameDetector name.
activeSensitivity flag

Definition at line 54 of file CbmTrd.cxx.

References kTrd.

◆ CbmTrd() [3/3]

CbmTrd::CbmTrd ( const CbmTrd )
delete

◆ ~CbmTrd()

CbmTrd::~CbmTrd ( )
virtual

Destructor.

Definition at line 74 of file CbmTrd.cxx.

References fGeoHandler, and fTrdPoints.

Member Function Documentation

◆ CheckIfSensitive()

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

Definition at line 315 of file CbmTrd.cxx.

◆ ClassDef()

CbmTrd::ClassDef ( CbmTrd  ,
10   
)
private

◆ ConstructGeometry()

void CbmTrd::ConstructGeometry ( )
virtual

Constructs the TRD geometry.

Definition at line 292 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 275 of file CbmTrd.cxx.

References fPosIndex, and i.

◆ 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 227 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 243 of file CbmTrd.cxx.

References fTrdPoints.

◆ Initialize()

void CbmTrd::Initialize ( )
privatevirtual

Definition at line 85 of file CbmTrd.cxx.

References fGeoHandler, and CbmTrdGeoHandler::Init().

◆ operator=()

CbmTrd CbmTrd::operator= ( const CbmTrd )
delete

◆ Print()

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

Screen output of hit collection.

Definition at line 253 of file CbmTrd.cxx.

References fTrdPoints, and i.

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 177 of file CbmTrd.cxx.

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

◆ Register()

void CbmTrd::Register ( )
virtual

Registers the hit collection in the ROOT manager.

Definition at line 236 of file CbmTrd.cxx.

References fTrdPoints.

◆ Reset()

void CbmTrd::Reset ( )
virtual

Clears the hit collection.

Definition at line 267 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 137 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 97 of file CbmTrd.cxx.

References fUseGlobalPhysicsProcesses.

◆ SetTransformationMatrix()

void CbmTrd::SetTransformationMatrix ( TGeoMatrix *  mat)
inline

Definition at line 101 of file CbmTrd.h.

References fCombiTrans.

◆ UseGlobalPhysicsProcesses()

void CbmTrd::UseGlobalPhysicsProcesses ( Bool_t  use)
inline

Definition at line 97 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 121 of file CbmTrd.h.

Referenced by ConstructRootGeometry(), and SetTransformationMatrix().

◆ fELoss

Double32_t CbmTrd::fELoss
private

length

Definition at line 112 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fGeoHandler

CbmTrdGeoHandler* CbmTrd::fGeoHandler
private

MC point collection.

Definition at line 116 of file CbmTrd.h.

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

◆ fLength

Double32_t CbmTrd::fLength
private

time

Definition at line 111 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomIn

TLorentzVector CbmTrd::fMomIn
private

position at entrance

Definition at line 107 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomOut

TLorentzVector CbmTrd::fMomOut
private

position at exit

Definition at line 109 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 106 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPosIndex

Int_t CbmTrd::fPosIndex
private

energy loss

Definition at line 113 of file CbmTrd.h.

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

◆ fPosOut

TLorentzVector CbmTrd::fPosOut
private

momentum at entrance

Definition at line 108 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTime

Double32_t CbmTrd::fTime
private

momentum at exit

Definition at line 110 of file CbmTrd.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTrdPoints

TClonesArray* CbmTrd::fTrdPoints
private

position index

Definition at line 115 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 119 of file CbmTrd.h.

Referenced by SetSpecialPhysicsCuts(), and UseGlobalPhysicsProcesses().


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