CbmRoot
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)
 

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 More...
 
Int_t fFlagID
 volume id More...
 
TLorentzVector fPosIn
 
TLorentzVector fPosOut
 
TLorentzVector fMomIn
 position More...
 
TLorentzVector fMomOut
 
Double32_t fTime
 momentum More...
 
Double32_t fLength
 time More...
 
Double32_t fELoss
 length More...
 
Int_t fPosIndex
 energy loss More...
 
TClonesArray * fMuchCollection
 
Bool_t kGeoSaved
 The hit collection. More...
 
TList * flGeoPar
 
CbmGeoMuchParfPar
 
TString fVolumeName
 parameter container More...
 
TGeoCombiTrans * fCombiTrans
 

Detailed Description

Definition at line 27 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 91 of file CbmMuch.cxx.

References flGeoPar, and ResetParameters().

◆ ~CbmMuch()

CbmMuch::~CbmMuch ( )
virtual

Destructor

Definition at line 118 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 277 of file CbmMuch.cxx.

References fMuchCollection.

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 220 of file CbmMuch.cxx.

◆ CheckIfSensitive()

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

Definition at line 402 of file CbmMuch.cxx.

◆ ClassDef()

CbmMuch::ClassDef ( CbmMuch  ,
 
)
private

◆ ConstructGeometry()

void CbmMuch::ConstructGeometry ( )
virtual

Definition at line 300 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 259 of file CbmMuch.cxx.

References fPosIndex, and i.

◆ 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 224 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 237 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

◆ 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 247 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 131 of file CbmMuch.cxx.

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

◆ Register()

void CbmMuch::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

Definition at line 231 of file CbmMuch.cxx.

References fMuchCollection.

◆ Reset()

void CbmMuch::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

Definition at line 253 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 128 of file CbmMuch.h.

◆ fELoss

Double32_t CbmMuch::fELoss
private

length

Definition at line 120 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fFlagID

Int_t CbmMuch::fFlagID
private

volume id

Definition at line 115 of file CbmMuch.h.

Referenced by ConstructGeometry(), and ConstructRootGeometry().

◆ fLength

Double32_t CbmMuch::fLength
private

time

Definition at line 119 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ flGeoPar

TList* CbmMuch::flGeoPar
private

Definition at line 125 of file CbmMuch.h.

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

◆ fMomIn

TLorentzVector CbmMuch::fMomIn
private

position

Definition at line 117 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMomOut

TLorentzVector CbmMuch::fMomOut
private

Definition at line 117 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fMuchCollection

TClonesArray* CbmMuch::fMuchCollection
private

Definition at line 123 of file CbmMuch.h.

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

◆ fPar

CbmGeoMuchPar* CbmMuch::fPar
private

Definition at line 126 of file CbmMuch.h.

Referenced by ConstructRootGeometry(), and ProcessHits().

◆ fPosIn

TLorentzVector CbmMuch::fPosIn
private

Definition at line 116 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fPosIndex

Int_t CbmMuch::fPosIndex
private

energy loss

Definition at line 122 of file CbmMuch.h.

Referenced by CopyClones(), and ResetParameters().

◆ fPosOut

TLorentzVector CbmMuch::fPosOut
private

Definition at line 116 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fTime

Double32_t CbmMuch::fTime
private

momentum

Definition at line 118 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 113 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fVolumeID

Int_t CbmMuch::fVolumeID
private

track index

Definition at line 114 of file CbmMuch.h.

Referenced by ProcessHits(), and ResetParameters().

◆ fVolumeName

TString CbmMuch::fVolumeName
private

parameter container

Definition at line 127 of file CbmMuch.h.

Referenced by ConstructRootGeometry().

◆ kGeoSaved

Bool_t CbmMuch::kGeoSaved
private

The hit collection.

Definition at line 124 of file CbmMuch.h.


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