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

#include <CbmMvd.h>

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

Public Member Functions

 CbmMvd ()
 
 CbmMvd (const char *name, Bool_t active)
 
virtual ~CbmMvd ()
 
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 ConstructAsciiGeometry ()
 
virtual void ConstructRootGeometry ()
 
virtual Bool_t IsSensitive (const std::string &name)
 
virtual Bool_t CheckIfSensitive (std::string name)
 
virtual std::map< Int_t, Int_tGetMap ()
 

Private Member Functions

CbmMvdPointAddHit (Int_t trackID, Int_t pdg, Int_t sensorNr, TVector3 posIn, TVector3 pos_out, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss)
 
void ResetParameters ()
 
 CbmMvd (const CbmMvd &)
 
CbmMvdoperator= (const CbmMvd &)
 
 ClassDef (CbmMvd, 1)
 

Private Attributes

Int_t fTrackID
 
Int_t fPdg
 track index
 
Int_t fVolumeID
 track particle type
 
TLorentzVector fPosIn
 volume id
 
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 * fCollection
 
Bool_t kGeoSaved
 The hit collection.
 
TList * fGeoPar
 
std::map< Int_t, Int_tfStationMap
 List of geometry parameters.
 
Int_t fGeoFlag
 Map from MC volume ID to station number.
 
CbmMvdGeoHandlerfmvdHandler
 

Detailed Description

Definition at line 41 of file CbmMvd.h.

Constructor & Destructor Documentation

◆ CbmMvd() [1/3]

CbmMvd::CbmMvd ( )

◆ CbmMvd() [2/3]

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

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

Definition at line 59 of file CbmMvd.cxx.

References fCollection, fELoss, fGeoFlag, fGeoPar, fLength, fMomIn, fMomOut, fmvdHandler, fPdg, fPosIn, fPosIndex, fPosOut, fStationMap, fTime, fTrackID, fVolumeID, kGeoSaved, kMvd, and ToIntegralType().

◆ ~CbmMvd()

CbmMvd::~CbmMvd ( )
virtual

Destructor

Definition at line 87 of file CbmMvd.cxx.

References fCollection, and fGeoPar.

◆ CbmMvd() [3/3]

CbmMvd::CbmMvd ( const CbmMvd & )
private

References CbmMvd().

Member Function Documentation

◆ AddHit()

CbmMvdPoint * CbmMvd::AddHit ( Int_t trackID,
Int_t pdg,
Int_t sensorNr,
TVector3 posIn,
TVector3 pos_out,
TVector3 momIn,
TVector3 momOut,
Double_t time,
Double_t length,
Double_t eLoss )
private

Private method AddHit

Adds a MvdPoint to the HitCollection

Definition at line 265 of file CbmMvd.cxx.

References fCollection, and size().

Referenced by ProcessHits().

◆ BeginEvent()

void CbmMvd::BeginEvent ( )
virtual

Virtual method BeginEvent

Definition at line 151 of file CbmMvd.cxx.

◆ CheckIfSensitive()

Bool_t CbmMvd::CheckIfSensitive ( std::string name)
virtual

Definition at line 294 of file CbmMvd.cxx.

References IsSensitive().

◆ ClassDef()

CbmMvd::ClassDef ( CbmMvd ,
1  )
private

References CbmMvd().

◆ ConstructAsciiGeometry()

void CbmMvd::ConstructAsciiGeometry ( )
virtual

Definition at line 241 of file CbmMvd.cxx.

◆ ConstructGeometry()

void CbmMvd::ConstructGeometry ( )
virtual

Virtual method Construct geometry

Constructs the MVD geometry

Definition at line 219 of file CbmMvd.cxx.

References ConstructRootGeometry(), and fGeoFlag.

◆ ConstructRootGeometry()

void CbmMvd::ConstructRootGeometry ( )
virtual

Definition at line 246 of file CbmMvd.cxx.

References fGeoFlag, fmvdHandler, and fStationMap.

Referenced by ConstructGeometry().

◆ CopyClones()

void CbmMvd::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 201 of file CbmMvd.cxx.

References fPosIndex.

◆ EndOfEvent()

void CbmMvd::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 156 of file CbmMvd.cxx.

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

◆ GetCollection()

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

Accessor to the hit collection

Definition at line 172 of file CbmMvd.cxx.

References fCollection.

◆ GetMap()

virtual std::map< Int_t, Int_t > CbmMvd::GetMap ( )
inlinevirtual

Definition at line 130 of file CbmMvd.h.

References fStationMap.

◆ IsSensitive()

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

Definition at line 277 of file CbmMvd.cxx.

Referenced by CheckIfSensitive().

◆ operator=()

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

References CbmMvd().

◆ Print()

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

Virtual method Print

Screen output of hit collection.

Definition at line 182 of file CbmMvd.cxx.

References fCollection.

Referenced by EndOfEvent().

◆ ProcessHits()

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

Virtual method ProcessHits

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

Parameters
volPointer to the active volume

Definition at line 102 of file CbmMvd.cxx.

References AddHit(), CbmStack::AddPoint(), fELoss, fLength, fMomIn, fMomOut, fmvdHandler, fPdg, fPosIn, fPosOut, fStationMap, fTime, fTrackID, fVolumeID, kMvd, and ResetParameters().

◆ Register()

void CbmMvd::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

Definition at line 167 of file CbmMvd.cxx.

References fCollection.

◆ Reset()

void CbmMvd::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

Definition at line 191 of file CbmMvd.cxx.

References fCollection, and ResetParameters().

◆ ResetParameters()

void CbmMvd::ResetParameters ( )
inlineprivate

Private method ResetParameters

Resets the private members for the track parameters

Definition at line 176 of file CbmMvd.h.

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

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

Member Data Documentation

◆ fCollection

TClonesArray* CbmMvd::fCollection
private

Definition at line 145 of file CbmMvd.h.

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

◆ fELoss

Double32_t CbmMvd::fELoss
private

length

Definition at line 142 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ fGeoFlag

Int_t CbmMvd::fGeoFlag
private

Map from MC volume ID to station number.

Definition at line 149 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ConstructGeometry(), and ConstructRootGeometry().

◆ fGeoPar

TList* CbmMvd::fGeoPar
private

Definition at line 147 of file CbmMvd.h.

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

◆ fLength

Double32_t CbmMvd::fLength
private

time

Definition at line 141 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ fMomIn

TLorentzVector CbmMvd::fMomIn
private

position

Definition at line 139 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ fMomOut

TLorentzVector CbmMvd::fMomOut
private

Definition at line 139 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ fmvdHandler

CbmMvdGeoHandler* CbmMvd::fmvdHandler
private

Definition at line 151 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ConstructRootGeometry(), and ProcessHits().

◆ fPdg

Int_t CbmMvd::fPdg
private

track index

Definition at line 136 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), and ProcessHits().

◆ fPosIn

TLorentzVector CbmMvd::fPosIn
private

volume id

Definition at line 138 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ fPosIndex

Int_t CbmMvd::fPosIndex
private

energy loss

Definition at line 144 of file CbmMvd.h.

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

◆ fPosOut

TLorentzVector CbmMvd::fPosOut
private

Definition at line 138 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ fStationMap

std::map<Int_t, Int_t> CbmMvd::fStationMap
private

List of geometry parameters.

Definition at line 148 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ConstructRootGeometry(), GetMap(), and ProcessHits().

◆ fTime

Double32_t CbmMvd::fTime
private

momentum

Definition at line 140 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ fTrackID

Int_t CbmMvd::fTrackID
private

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

Definition at line 135 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ fVolumeID

Int_t CbmMvd::fVolumeID
private

track particle type

Definition at line 137 of file CbmMvd.h.

Referenced by CbmMvd(), CbmMvd(), ProcessHits(), and ResetParameters().

◆ kGeoSaved

Bool_t CbmMvd::kGeoSaved
private

The hit collection.

Definition at line 146 of file CbmMvd.h.

Referenced by CbmMvd(), and CbmMvd().


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