BmnRoot
Loading...
Searching...
No Matches
CbmSts Class Reference

#include <CbmSts.h>

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

Public Member Functions

 CbmSts ()
 
 CbmSts (const char *name, Bool_t active)
 
virtual ~CbmSts ()
 
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 ConstructGDMLGeometry (TGeoMatrix *)
 
virtual Bool_t CheckIfSensitive (std::string name)
 
 CbmSts ()
 
 CbmSts (const char *name, Bool_t active)
 
virtual ~CbmSts ()
 
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 ConstructGDMLGeometry (TGeoMatrix *)
 
virtual Bool_t CheckIfSensitive (std::string name)
 

Detailed Description

CbmSts.h

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

Defines the active detector STS. Constructs the geometry and registeres MCPoints.

Definition at line 22 of file CbmSts.h.

Constructor & Destructor Documentation

◆ CbmSts() [1/4]

CbmSts::CbmSts ( )

Default constructor

Definition at line 39 of file CbmSts.cxx.

◆ CbmSts() [2/4]

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

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

Definition at line 65 of file CbmSts.cxx.

◆ ~CbmSts() [1/2]

CbmSts::~CbmSts ( )
virtual

Destructor

Definition at line 88 of file CbmSts.cxx.

◆ CbmSts() [3/4]

CbmSts::CbmSts ( )

Default constructor

◆ CbmSts() [4/4]

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

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

◆ ~CbmSts() [2/2]

virtual CbmSts::~CbmSts ( )
virtual

Destructor

Member Function Documentation

◆ BeginEvent() [1/2]

void CbmSts::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 187 of file CbmSts.cxx.

◆ BeginEvent() [2/2]

virtual void CbmSts::BeginEvent ( )
virtual

Virtual method BeginEvent

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

◆ CheckIfSensitive() [1/2]

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

Check whether a volume is sensitive. The decision is based on the volume name. Only used in case of ROOT geometry.

Since
11.06.2012
Parameters
(name)Volume name @value kTRUE if volume is sensitive, else kFALSE

Definition at line 405 of file CbmSts.cxx.

◆ CheckIfSensitive() [2/2]

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

Check whether a volume is sensitive. The decision is based on the volume name. Only used in case of ROOT geometry.

Since
11.06.2012
Parameters
(name)Volume name @value kTRUE if volume is sensitive, else kFALSE

◆ ConstructAsciiGeometry() [1/2]

void CbmSts::ConstructAsciiGeometry ( )
virtual

Construct the geometry from an ASCII geometry file

Definition at line 272 of file CbmSts.cxx.

References CbmGeoStsPar::GetGeoPassiveNodes(), and CbmGeoStsPar::GetGeoSensitiveNodes().

Referenced by ConstructGeometry().

◆ ConstructAsciiGeometry() [2/2]

virtual void CbmSts::ConstructAsciiGeometry ( )
virtual

Construct the geometry from an ASCII geometry file

◆ ConstructGDMLGeometry() [1/2]

void CbmSts::ConstructGDMLGeometry ( TGeoMatrix *  )
virtual

Construct the geometry from a GDML geometry file

To avoid having different names of the default matrices because we could have get the volume from another TGeoManager, we reset the default matrix name

Now we can add the node to the existing cave

Definition at line 311 of file CbmSts.cxx.

Referenced by ConstructGeometry().

◆ ConstructGDMLGeometry() [2/2]

virtual void CbmSts::ConstructGDMLGeometry ( TGeoMatrix *  )
virtual

Construct the geometry from a GDML geometry file

◆ ConstructGeometry() [1/2]

void CbmSts::ConstructGeometry ( )
virtual

Construct the STS geometry. Depending on the geometry file extension, the base class method ConstructRootGeometry is called (.root), or the ASCII geometry file is read by the FairGeoLoader (.geo).

Since
11.06.2012

Definition at line 254 of file CbmSts.cxx.

References ConstructAsciiGeometry(), and ConstructGDMLGeometry().

◆ ConstructGeometry() [2/2]

virtual void CbmSts::ConstructGeometry ( )
virtual

Construct the STS geometry. Depending on the geometry file extension, the base class method ConstructRootGeometry is called (.root), or the ASCII geometry file is read by the FairGeoLoader (.geo).

Since
11.06.2012

◆ CopyClones() [1/2]

void CbmSts::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 236 of file CbmSts.cxx.

References i, and CbmStsPoint::SetTrackID().

◆ CopyClones() [2/2]

virtual void CbmSts::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

◆ EndOfEvent() [1/2]

void CbmSts::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 189 of file CbmSts.cxx.

References Print().

◆ EndOfEvent() [2/2]

virtual void CbmSts::EndOfEvent ( )
virtual

Virtual method EndOfEvent

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

◆ GetCollection() [1/2]

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

Accessor to the hit collection

Definition at line 209 of file CbmSts.cxx.

◆ GetCollection() [2/2]

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

Accessor to the hit collection

◆ Print() [1/2]

void CbmSts::Print ( Option_t *  ) const
virtual

Virtual method Print

Screen output of hit collection.

Definition at line 219 of file CbmSts.cxx.

Referenced by EndOfEvent().

◆ Print() [2/2]

virtual void CbmSts::Print ( Option_t *  ) const
virtual

Virtual method Print

Screen output of hit collection.

◆ ProcessHits() [1/2]

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

Virtual method ProcessHits

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

Parameters
volPointer to the active volume

Definition at line 98 of file CbmSts.cxx.

References CbmStack::AddPoint(), and kGEM.

◆ ProcessHits() [2/2]

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

Virtual method ProcessHits

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

Parameters
volPointer to the active volume

◆ Register() [1/2]

void CbmSts::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

Definition at line 202 of file CbmSts.cxx.

◆ Register() [2/2]

virtual void CbmSts::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

◆ Reset() [1/2]

void CbmSts::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

Definition at line 227 of file CbmSts.cxx.

◆ Reset() [2/2]

virtual void CbmSts::Reset ( )
virtual

Virtual method Reset

Clears the hit collection


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