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

#include <CbmMuch.h>

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

Public Member Functions

 CbmMuch ()
 
 CbmMuch (const char *name, Bool_t active)
 
virtual ~CbmMuch ()
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void BeginEvent ()
 
virtual void EndOfEvent ()
 
virtual void Register ()
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 
virtual void Print (Option_t *) const
 
virtual void Reset ()
 
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 
virtual void ConstructGeometry ()
 
virtual void ConstructRootGeometry (TGeoMatrix *shift=NULL)
 
Bool_t CheckIfSensitive (std::string name)
 
virtual Bool_t IsSensitive (const std::string &name)
 

Private Member Functions

CbmMuchPointAddHit (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss)
 
void ResetParameters ()
 
Int_t GetDetId (FairVolume *vol)
 
Int_t Intersect (Float_t x, Float_t y, Float_t lx, Float_t ly, Float_t r)
 
 CbmMuch (const CbmMuch &)
 
CbmMuchoperator= (const CbmMuch &)
 
 ClassDef (CbmMuch, 1)
 

Private Attributes

Int_t fTrackID
 
Int_t fVolumeID
 track index
 
Int_t fFlagID
 volume id
 
TLorentzVector fPosIn
 
TLorentzVector fPosOut
 
TLorentzVector fMomIn
 position
 
TLorentzVector fMomOut
 
Double32_t fTime
 momentum
 
Double32_t fLength
 time
 
Double32_t fELoss
 length
 
Int_t fPosIndex
 energy loss
 
TClonesArray * fMuchCollection
 
Bool_t kGeoSaved
 The hit collection.
 
TList * flGeoPar
 
CbmGeoMuchParfPar
 
TString fVolumeName
 parameter container
 
TGeoCombiTrans * fCombiTrans
 

Detailed Description

Definition at line 33 of file CbmMuch.h.

Constructor & Destructor Documentation

◆ CbmMuch() [1/3]

CbmMuch::CbmMuch ( )

Default constructor

◆ CbmMuch() [2/3]

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

Standard constructor.

Parameters
namedetector name
activesensitivity flag

Definition at line 92 of file CbmMuch.cxx.

References flGeoPar, and ResetParameters().

◆ ~CbmMuch()

CbmMuch::~CbmMuch ( )
virtual

Destructor

Definition at line 120 of file CbmMuch.cxx.

References flGeoPar, and fMuchCollection.

◆ CbmMuch() [3/3]

CbmMuch::CbmMuch ( const CbmMuch & )
private

Member Function Documentation

◆ AddHit()

CbmMuchPoint * CbmMuch::AddHit ( Int_t trackID,
Int_t detID,
TVector3 posIn,
TVector3 posOut,
TVector3 momIn,
TVector3 momOut,
Double_t time,
Double_t length,
Double_t eLoss )
private

Definition at line 274 of file CbmMuch.cxx.

References fMuchCollection, and size().

Referenced by ProcessHits().

◆ BeginEvent()

void CbmMuch::BeginEvent ( )
virtual

Virtual method BeginEvent

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

Definition at line 216 of file CbmMuch.cxx.

◆ CheckIfSensitive()

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

Definition at line 402 of file CbmMuch.cxx.

References IsSensitive().

◆ ClassDef()

CbmMuch::ClassDef ( CbmMuch ,
1  )
private

◆ ConstructGeometry()

void CbmMuch::ConstructGeometry ( )
virtual

Definition at line 288 of file CbmMuch.cxx.

References ConstructRootGeometry(), and fFlagID.

◆ ConstructRootGeometry()

◆ CopyClones()

void CbmMuch::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

Definition at line 255 of file CbmMuch.cxx.

References fPosIndex.

◆ EndOfEvent()

void CbmMuch::EndOfEvent ( )
virtual

Virtual method EndOfEvent

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

Definition at line 220 of file CbmMuch.cxx.

References fMuchCollection, Print(), and ResetParameters().

◆ GetCollection()

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

Accessor to the hit collection

Definition at line 231 of file CbmMuch.cxx.

References fMuchCollection.

◆ GetDetId()

Int_t CbmMuch::GetDetId ( FairVolume * vol)
private

◆ Intersect()

Int_t CbmMuch::Intersect ( Float_t x,
Float_t y,
Float_t lx,
Float_t ly,
Float_t r )
private

◆ IsSensitive()

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

Definition at line 390 of file CbmMuch.cxx.

Referenced by CheckIfSensitive().

◆ operator=()

CbmMuch & CbmMuch::operator= ( const CbmMuch & )
private

◆ Print()

void CbmMuch::Print ( Option_t * ) const
virtual

Virtual method Print

Screen output of hit collection.

Definition at line 241 of file CbmMuch.cxx.

References fMuchCollection.

Referenced by EndOfEvent().

◆ ProcessHits()

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

Virtual method ProcessHits

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

Parameters
volPointer to the active volume

Definition at line 134 of file CbmMuch.cxx.

References AddHit(), CbmStack::AddPoint(), fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fTime, fTrackID, fVolumeID, GetDetId(), CbmMuchAddress::GetLayerIndex(), CbmMuchAddress::GetLayerSideIndex(), CbmMuchAddress::GetModuleIndex(), CbmMuchAddress::GetStationIndex(), CbmMuchAddress::GetSystemIndex(), kMuch, and ResetParameters().

◆ Register()

void CbmMuch::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

Definition at line 228 of file CbmMuch.cxx.

References fMuchCollection.

◆ Reset()

void CbmMuch::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

Definition at line 248 of file CbmMuch.cxx.

References fMuchCollection, and ResetParameters().

◆ ResetParameters()

void CbmMuch::ResetParameters ( )
inlineprivate

Private method ResetParameters

Resets the private members for the track parameters

Definition at line 158 of file CbmMuch.h.

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

Referenced by CbmMuch(), EndOfEvent(), ProcessHits(), and Reset().

Member Data Documentation

◆ fCombiTrans

TGeoCombiTrans* CbmMuch::fCombiTrans
private

Definition at line 135 of file CbmMuch.h.

◆ fELoss

Double32_t CbmMuch::fELoss
private

length

Definition at line 127 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fFlagID

Int_t CbmMuch::fFlagID
private

volume id

Definition at line 122 of file CbmMuch.h.

Referenced by ConstructGeometry(), and ConstructRootGeometry().

◆ fLength

Double32_t CbmMuch::fLength
private

time

Definition at line 126 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ flGeoPar

TList* CbmMuch::flGeoPar
private

Definition at line 132 of file CbmMuch.h.

Referenced by CbmMuch(), and ~CbmMuch().

◆ fMomIn

TLorentzVector CbmMuch::fMomIn
private

position

Definition at line 124 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomOut

TLorentzVector CbmMuch::fMomOut
private

Definition at line 124 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMuchCollection

TClonesArray* CbmMuch::fMuchCollection
private

Definition at line 130 of file CbmMuch.h.

Referenced by AddHit(), EndOfEvent(), GetCollection(), Print(), Register(), Reset(), and ~CbmMuch().

◆ fPar

CbmGeoMuchPar* CbmMuch::fPar
private

Definition at line 133 of file CbmMuch.h.

Referenced by ConstructRootGeometry().

◆ fPosIn

TLorentzVector CbmMuch::fPosIn
private

Definition at line 123 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPosIndex

Int_t CbmMuch::fPosIndex
private

energy loss

Definition at line 129 of file CbmMuch.h.

Referenced by CopyClones(), and ResetParameters().

◆ fPosOut

TLorentzVector CbmMuch::fPosOut
private

Definition at line 123 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTime

Double32_t CbmMuch::fTime
private

momentum

Definition at line 125 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTrackID

Int_t CbmMuch::fTrackID
private

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

Definition at line 120 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fVolumeID

Int_t CbmMuch::fVolumeID
private

track index

Definition at line 121 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fVolumeName

TString CbmMuch::fVolumeName
private

parameter container

Definition at line 134 of file CbmMuch.h.

Referenced by ConstructRootGeometry().

◆ kGeoSaved

Bool_t CbmMuch::kGeoSaved
private

The hit collection.

Definition at line 131 of file CbmMuch.h.


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