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

#include <BmnSiMD.h>

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

Public Member Functions

 BmnSiMD ()
 
 BmnSiMD (const char *name, Bool_t active)
 
virtual ~BmnSiMD ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void EndOfEvent ()
 
virtual void BeginEvent ()
 
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 Bool_t CheckIfSensitive (std::string name)
 
BmnSiMDPointAddHit (Int_t trackID, Int_t detID, Int_t copyNo, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Bool_t isPrimary, Double_t charge, Int_t pdgId, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)
 
 BmnSiMD ()
 
 BmnSiMD (const char *name, Bool_t active)
 
virtual ~BmnSiMD ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void EndOfEvent ()
 
virtual void BeginEvent ()
 
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 Bool_t CheckIfSensitive (std::string name)
 
BmnSiMDPointAddHit (Int_t trackID, Int_t detID, Int_t copyNo, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Bool_t isPrimary, Double_t charge, Int_t pdgId, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)
 

Detailed Description

Definition at line 25 of file BmnSiMD.h.

Constructor & Destructor Documentation

◆ BmnSiMD() [1/4]

BmnSiMD::BmnSiMD ( )

Default constructor

Definition at line 27 of file BmnSiMD.cxx.

◆ BmnSiMD() [2/4]

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

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

Definition at line 38 of file BmnSiMD.cxx.

◆ ~BmnSiMD() [1/2]

BmnSiMD::~BmnSiMD ( )
virtual

Destructor

Definition at line 50 of file BmnSiMD.cxx.

◆ BmnSiMD() [3/4]

BmnSiMD::BmnSiMD ( )

Default constructor

◆ BmnSiMD() [4/4]

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

Standard constructor.

Parameters
namedetetcor name
activesensitivity flag

◆ ~BmnSiMD() [2/2]

virtual BmnSiMD::~BmnSiMD ( )
virtual

Destructor

Member Function Documentation

◆ AddHit() [1/2]

BmnSiMDPoint * BmnSiMD::AddHit ( Int_t  trackID,
Int_t  detID,
Int_t  copyNo,
TVector3  posIn,
TVector3  posOut,
TVector3  momIn,
TVector3  momOut,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Bool_t  isPrimary,
Double_t  charge,
Int_t  pdgId,
Double_t  timeIn,
Double_t  timeOut,
Double_t  lengthtrack 
)

Definition at line 361 of file BmnSiMD.cxx.

Referenced by ProcessHits().

◆ AddHit() [2/2]

BmnSiMDPoint * BmnSiMD::AddHit ( Int_t  trackID,
Int_t  detID,
Int_t  copyNo,
TVector3  posIn,
TVector3  posOut,
TVector3  momIn,
TVector3  momOut,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Bool_t  isPrimary,
Double_t  charge,
Int_t  pdgId,
Double_t  timeIn,
Double_t  timeOut,
Double_t  lengthtrack 
)

◆ BeginEvent() [1/2]

void BmnSiMD::BeginEvent ( )
virtual

Definition at line 68 of file BmnSiMD.cxx.

◆ BeginEvent() [2/2]

virtual void BmnSiMD::BeginEvent ( )
virtual

◆ CheckIfSensitive() [1/2]

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

Definition at line 351 of file BmnSiMD.cxx.

◆ CheckIfSensitive() [2/2]

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

◆ ConstructAsciiGeometry() [1/2]

void BmnSiMD::ConstructAsciiGeometry ( )
virtual

◆ ConstructAsciiGeometry() [2/2]

virtual void BmnSiMD::ConstructAsciiGeometry ( )
virtual

◆ ConstructGeometry() [1/2]

void BmnSiMD::ConstructGeometry ( )
virtual

Virtual method Construct geometry

Definition at line 298 of file BmnSiMD.cxx.

References ConstructAsciiGeometry().

◆ ConstructGeometry() [2/2]

virtual void BmnSiMD::ConstructGeometry ( )
virtual

Virtual method Construct geometry

◆ CopyClones() [1/2]

void BmnSiMD::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 281 of file BmnSiMD.cxx.

References i.

◆ CopyClones() [2/2]

virtual void BmnSiMD::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 BmnSiMD::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 244 of file BmnSiMD.cxx.

References Print(), and Reset().

◆ EndOfEvent() [2/2]

virtual void BmnSiMD::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 * BmnSiMD::GetCollection ( Int_t  iColl) const
virtual

Accessor to the hit collection

Definition at line 255 of file BmnSiMD.cxx.

◆ GetCollection() [2/2]

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

Accessor to the hit collection

◆ Initialize() [1/2]

void BmnSiMD::Initialize ( )
virtual

Virtual method Initialize Initialises detector. Stores volume IDs for MUO detector and mirror.

Definition at line 60 of file BmnSiMD.cxx.

◆ Initialize() [2/2]

virtual void BmnSiMD::Initialize ( )
virtual

Virtual method Initialize Initialises detector. Stores volume IDs for MUO detector and mirror.

◆ Print() [1/2]

void BmnSiMD::Print ( Option_t *  ) const
virtual

Virtual method Print

Screen output of hit collection.

Definition at line 262 of file BmnSiMD.cxx.

References i.

Referenced by EndOfEvent().

◆ Print() [2/2]

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

Virtual method Print

Screen output of hit collection.

◆ ProcessHits() [1/2]

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

Virtual method ProcessHits

Defines the action to be taken when a step is inside the active volume. Creates BmnBdPoints and BmnBdMirrorPoints and adds them to the collections.

Parameters
volPointer to the active volume

Definition at line 73 of file BmnSiMD.cxx.

References AddHit(), and kSiMD.

◆ ProcessHits() [2/2]

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

Virtual method ProcessHits

Defines the action to be taken when a step is inside the active volume. Creates BmnBdPoints and BmnBdMirrorPoints and adds them to the collections.

Parameters
volPointer to the active volume

◆ Register() [1/2]

void BmnSiMD::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

Definition at line 250 of file BmnSiMD.cxx.

◆ Register() [2/2]

virtual void BmnSiMD::Register ( )
virtual

Virtual method Register

Registers the hit collection in the ROOT manager.

◆ Reset() [1/2]

void BmnSiMD::Reset ( )
virtual

Virtual method Reset

Clears the hit collection

Definition at line 273 of file BmnSiMD.cxx.

Referenced by EndOfEvent().

◆ Reset() [2/2]

virtual void BmnSiMD::Reset ( )
virtual

Virtual method Reset

Clears the hit collection


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