er  dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ERmuSi Class Reference
Inheritance diagram for ERmuSi:
Inheritance graph
[legend]
Collaboration diagram for ERmuSi:
Collaboration graph
[legend]

Public Member Functions

 ERmuSi ()
 
 ERmuSi (const char *name, Bool_t active, Int_t verbose)
 
virtual ~ERmuSi ()
 
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 *option="") const
 
virtual void Reset ()
 
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 
virtual void ConstructGeometry ()
 
virtual void Initialize ()
 
virtual Bool_t CheckIfSensitive (std::string name)
 
void SetGeomVersion (Int_t vers)
 

Private Member Functions

ERmuSiPointAddPoint (Int_t eventID, Int_t trackID, Int_t mot0trackID, Double_t mass, TVector3 posIn, TVector3 pos_out, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss, Int_t station)
 geometry version More...
 
void ResetParameters ()
 
 ClassDef (ERmuSi, 1)
 

Private Attributes

TClonesArray * fERmuSiPoints
 
Int_t fVersion
 The point collection.
 

Detailed Description

Definition at line 22 of file ERmuSi.h.

Constructor & Destructor Documentation

ERmuSi::ERmuSi ( )

Default constructor

Definition at line 14 of file ERmuSi.cxx.

ERmuSi::ERmuSi ( const char *  name,
Bool_t  active,
Int_t  verbose 
)

Standard constructor.

Parameters
nameERmuSi ERmuSi name
activesensitivity flag
verboseVerbosity level. 1 - only standart logs, 2 - Print points after each event, 3 - GEANT Step information

Definition at line 27 of file ERmuSi.cxx.

ERmuSi::~ERmuSi ( )
virtual

Destructor

Definition at line 37 of file ERmuSi.cxx.

Member Function Documentation

ERmuSiPoint * ERmuSi::AddPoint ( Int_t  eventID,
Int_t  trackID,
Int_t  mot0trackID,
Double_t  mass,
TVector3  posIn,
TVector3  pos_out,
TVector3  momIn,
TVector3  momOut,
Double_t  time,
Double_t  length,
Double_t  eLoss,
Int_t  station 
)
private

geometry version

Private method AddPoint

Adds a NeuRadPoint to the Point Collection

Definition at line 168 of file ERmuSi.cxx.

void ERmuSi::BeginEvent ( )
virtual

Virtual method BeginEvent

Definition at line 98 of file ERmuSi.cxx.

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

Virtaul method CheckIfSensitive Check whether a volume is sensitive.

Parameters

Definition at line 198 of file ERmuSi.cxx.

void ERmuSi::ConstructGeometry ( void  )
virtual

Virtaul method Construct geometry

Constructs the ERmuSi geometry

Definition at line 185 of file ERmuSi.cxx.

void ERmuSi::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 151 of file ERmuSi.cxx.

void ERmuSi::EndOfEvent ( )
virtual

Virtual method EndOfEvent

If verbosity level is set, print point collection at the end of the event.

Definition at line 102 of file ERmuSi.cxx.

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

Accessor to the point collection

Definition at line 120 of file ERmuSi.cxx.

void ERmuSi::Initialize ( )
virtual

Virtaul method Initialize

Initialize ERmuSi data

Definition at line 44 of file ERmuSi.cxx.

void ERmuSi::Print ( Option_t *  option = "") const
virtual

Virtual method Print

Screen output of hit collection.

Definition at line 131 of file ERmuSi.cxx.

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

Virtual method ProcessHits

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

Parameters
volPointer to the active volume

event index

track index

0th mother track index

mass

position

momentum

time

length

energy loss

Definition at line 50 of file ERmuSi.cxx.

void ERmuSi::Register ( )
virtual

Virtual method Register

Registers the point collection in the ROOT manager.

Definition at line 111 of file ERmuSi.cxx.

void ERmuSi::Reset ( )
virtual

Virtual method Reset

Clears the point collection

Definition at line 143 of file ERmuSi.cxx.

void ERmuSi::ResetParameters ( )
private

Private method ResetParameters

Resets the private members for the track parameters

Definition at line 209 of file ERmuSi.cxx.

void ERmuSi::SetGeomVersion ( Int_t  vers)
inline

Virtaul method SetGeomVersion

Definition at line 124 of file ERmuSi.h.


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