FairRoot
NewDetector Class Reference

#include <NewDetector.h>

Inheritance diagram for NewDetector:
FairDetector FairDetector FairDetector FairDetector FairModule FairModule FairModule FairModule

Public Member Functions

 NewDetector (const char *Name, Bool_t Active)
 
 NewDetector ()
 
virtual ~NewDetector ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *v=0)
 
virtual void Register ()
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 
virtual void Reset ()
 
void ConstructGeometry ()
 
NewDetectorPointAddHit (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
 
virtual void SetSpecialPhysicsCuts ()
 
virtual void EndOfEvent ()
 
virtual void FinishPrimary ()
 
virtual void FinishRun ()
 
virtual void BeginPrimary ()
 
virtual void PostTrack ()
 
virtual void PreTrack ()
 
virtual void BeginEvent ()
 
virtual FairModuleCloneModule () const
 
virtual Bool_t IsSensitive (const std::string &name)
 
 NewDetector (const char *Name, bool Active)
 
 NewDetector ()
 
virtual ~NewDetector ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *v=0)
 
virtual void Register ()
 
virtual void Reset ()
 
void ConstructGeometry ()
 
NewDetectorPointAddHit (int trackID, int detID, TVector3 pos, TVector3 mom, double time, double length, double eLoss)
 
virtual void SetSpecialPhysicsCuts ()
 
virtual void EndOfEvent ()
 
virtual void FinishPrimary ()
 
virtual void FinishRun ()
 
virtual void BeginPrimary ()
 
virtual void PostTrack ()
 
virtual void PreTrack ()
 
virtual void BeginEvent ()
 
virtual FairModuleCloneModule () const
 
virtual Bool_t IsSensitive (const std::string &name)
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 
 NewDetector (const char *Name, Bool_t Active)
 
 NewDetector ()
 
virtual ~NewDetector ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *v=0)
 
virtual void Register ()
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 
virtual void Reset ()
 
void ConstructGeometry ()
 
NewDetectorPointAddHit (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
 
virtual void SetSpecialPhysicsCuts ()
 
virtual void EndOfEvent ()
 
virtual void FinishPrimary ()
 
virtual void FinishRun ()
 
virtual void BeginPrimary ()
 
virtual void PostTrack ()
 
virtual void PreTrack ()
 
virtual void BeginEvent ()
 
virtual FairModuleCloneModule () const
 
virtual Bool_t IsSensitive (const std::string &name)
 
 NewDetector (const char *Name, bool Active)
 
 NewDetector ()
 
virtual ~NewDetector ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *v=0)
 
virtual void Register ()
 
virtual void Reset ()
 
void ConstructGeometry ()
 
NewDetectorPointAddHit (int trackID, int detID, TVector3 pos, TVector3 mom, double time, double length, double eLoss)
 
virtual void SetSpecialPhysicsCuts ()
 
virtual void EndOfEvent ()
 
virtual void FinishPrimary ()
 
virtual void FinishRun ()
 
virtual void BeginPrimary ()
 
virtual void PostTrack ()
 
virtual void PreTrack ()
 
virtual void BeginEvent ()
 
virtual FairModuleCloneModule () const
 
virtual Bool_t IsSensitive (const std::string &name)
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 
- Public Member Functions inherited from FairDetector
 FairDetector (const char *Name, Bool_t Active, Int_t DetId=0)
 
 FairDetector ()
 
virtual ~FairDetector ()
 
virtual void CopyClones (TClonesArray *, TClonesArray *, Int_t)
 
virtual void FinishEvent ()
 
void SaveGeoParams ()
 
Int_t GetDetId ()
 
- Public Member Functions inherited from FairModule
 FairModule ()
 
 FairModule (const char *Name, const char *title, Bool_t Active=kFALSE)
 
virtual ~FairModule ()
 
virtual void Print (Option_t *) const
 
virtual void SetGeometryFileName (TString fname, TString geoVer="0")
 
virtual TString GetGeometryFileName ()
 
virtual TString GetGeometryFileVer ()
 
virtual void ConstructOpGeometry ()
 
virtual void ConstructRootGeometry (TGeoMatrix *shiftM=nullptr)
 
virtual void ConstructASCIIGeometry ()
 
virtual void ModifyGeometry () __attribute__((deprecated("Use FairAlignmentHandler instead
 
virtual void see Tutorial4 for examples LOG (warn)<< "This function is deprecated. Use FairAlignmentHandler instead
 
virtual void RegisterAlignmentMatrices ()
 
virtual void ConstructGDMLGeometry (__attribute__((unused)) TGeoMatrix *posrot)
 
virtual void BeginWorkerRun () const
 
virtual void FinishWorkerRun () const
 
template<class T , class U >
void ConstructASCIIGeometry (T *dataType1, TString containerName="", U *datatype2=nullptr)
 
virtual Bool_t CheckIfSensitive (__attribute__((unused)) std::string name) __attribute__((deprecated("The method CheckIfSensitive is deprecated. Implement IsSensitive in the detector classes.")))
 
virtual void ExpandNode (TGeoNode *Node)
 
virtual void ExpandNodeForGDML (__attribute__((unused)) TGeoNode *curNode)
 
virtual Int_t getVolId (const TString &) const
 
Int_t GetModId ()
 
void SetVerboseLevel (Int_t level)
 
Bool_t IsActive ()
 
void SetModId (Int_t id)
 
void SetMotherVolume (TString volName)
 
void ProcessNodes (TList *aList)
 
virtual void SetParContainers ()
 
virtual void InitParContainers ()
 
TList * GetListOfGeoPar ()
 
FairVolumegetFairVolume (FairGeoNode *fNode)
 
void AddSensitiveVolume (TGeoVolume *v)
 

Additional Inherited Members

- Public Attributes inherited from FairModule
virtual void see Tutorial4 for examples see Tutorial4 for examples
 
TString fMotherVolumeName
 
- Static Public Attributes inherited from FairModule
static thread_local FairVolumeListvList = 0
 
static thread_local Int_t fNbOfVolumes = 0
 
static thread_local TRefArray * svList = 0
 
static thread_local TArrayI * volNumber = 0
 
- Protected Member Functions inherited from FairDetector
 FairDetector (const FairDetector &)
 
FairDetectoroperator= (const FairDetector &)
 
void DefineSensitiveVolumes ()
 
 ClassDef (FairDetector, 1)
 /// FairLogger More...
 
- Protected Member Functions inherited from FairModule
 FairModule (const FairModule &)
 
FairModuleoperator= (const FairModule &)
 
 ClassDef (FairModule, 4)
 cahed pointer to MC (available only after initialization) More...
 
- Protected Attributes inherited from FairDetector
Int_t fDetId
 
FairLoggerfLogger
 
- Protected Attributes inherited from FairModule
TString fgeoVer
 
TString fgeoName
 
Int_t fModId
 
Bool_t fActive
 
Int_t fNbOfSensitiveVol
 
Int_t fVerboseLevel
 
TList * flGeoPar
 
Bool_t fGeoSaved
 list of Detector Geometry parameters More...
 
TVirtualMC * fMC
 flag for initialisation More...
 

Detailed Description

Definition at line 20 of file NewDetector.h.

Constructor & Destructor Documentation

NewDetector::NewDetector ( const char *  Name,
Bool_t  Active 
)

Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors

Definition at line 48 of file NewDetector.cxx.

NewDetector::NewDetector ( )

default constructor

Definition at line 36 of file NewDetector.cxx.

NewDetector::~NewDetector ( )
virtual

destructor

Definition at line 72 of file NewDetector.cxx.

NewDetector::NewDetector ( const char *  Name,
bool  Active 
)

Name : Detector Name Active: true for active detectors (ProcessHits() will be called) false for inactive detectors

NewDetector::NewDetector ( )

default constructor

virtual NewDetector::~NewDetector ( )
virtual

destructor

NewDetector::NewDetector ( const char *  Name,
Bool_t  Active 
)

Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors

NewDetector::NewDetector ( )

default constructor

virtual NewDetector::~NewDetector ( )
virtual

destructor

NewDetector::NewDetector ( const char *  Name,
bool  Active 
)

Name : Detector Name Active: true for active detectors (ProcessHits() will be called) false for inactive detectors

NewDetector::NewDetector ( )

default constructor

virtual NewDetector::~NewDetector ( )
virtual

destructor

Member Function Documentation

NewDetectorPoint* NewDetector::AddHit ( int  trackID,
int  detID,
TVector3  pos,
TVector3  mom,
double  time,
double  length,
double  eLoss 
)

This method is an example of how to add your own point of type NewDetectorPoint to the clones array

NewDetectorPoint* NewDetector::AddHit ( int  trackID,
int  detID,
TVector3  pos,
TVector3  mom,
double  time,
double  length,
double  eLoss 
)

This method is an example of how to add your own point of type NewDetectorPoint to the clones array

NewDetectorPoint * NewDetector::AddHit ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  time,
Double_t  length,
Double_t  eLoss 
)

This method is an example of how to add your own point of type NewDetectorPoint to the clones array

Definition at line 224 of file NewDetector.cxx.

NewDetectorPoint* NewDetector::AddHit ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  time,
Double_t  length,
Double_t  eLoss 
)

This method is an example of how to add your own point of type NewDetectorPoint to the clones array

virtual void NewDetector::BeginEvent ( )
inlinevirtual

User actions at beginning of event

Reimplemented from FairDetector.

Definition at line 70 of file NewDetector.h.

virtual void NewDetector::BeginEvent ( )
inlinevirtual

User actions at beginning of event

Reimplemented from FairDetector.

Definition at line 70 of file NewDetector.h.

virtual void NewDetector::BeginEvent ( )
inlinevirtual

User actions at beginning of event

Reimplemented from FairDetector.

Definition at line 73 of file NewDetector.h.

virtual void NewDetector::BeginEvent ( )
inlinevirtual

User actions at beginning of event

Reimplemented from FairDetector.

Definition at line 73 of file NewDetector.h.

virtual void NewDetector::BeginPrimary ( )
inlinevirtual

User actions at beginning of a primary track

Reimplemented from FairDetector.

Definition at line 67 of file NewDetector.h.

virtual void NewDetector::BeginPrimary ( )
inlinevirtual

User actions at beginning of a primary track

Reimplemented from FairDetector.

Definition at line 67 of file NewDetector.h.

virtual void NewDetector::BeginPrimary ( )
inlinevirtual

User actions at beginning of a primary track

Reimplemented from FairDetector.

Definition at line 70 of file NewDetector.h.

virtual void NewDetector::BeginPrimary ( )
inlinevirtual

User actions at beginning of a primary track

Reimplemented from FairDetector.

Definition at line 70 of file NewDetector.h.

virtual FairModule* NewDetector::CloneModule ( ) const
virtual

Clone this object (used in MT mode only)

Reimplemented from FairModule.

virtual FairModule* NewDetector::CloneModule ( ) const
virtual

Clone this object (used in MT mode only)

Reimplemented from FairModule.

FairModule * NewDetector::CloneModule ( ) const
virtual

Clone this object (used in MT mode only)

Reimplemented from FairModule.

Definition at line 237 of file NewDetector.cxx.

virtual FairModule* NewDetector::CloneModule ( ) const
virtual

Clone this object (used in MT mode only)

Reimplemented from FairModule.

void NewDetector::ConstructGeometry ( )
virtual

Create the detector geometry

Reimplemented from FairModule.

void NewDetector::ConstructGeometry ( )
virtual

Create the detector geometry

Reimplemented from FairModule.

void NewDetector::ConstructGeometry ( )
virtual

Create the detector geometry

Reimplemented from FairModule.

void NewDetector::ConstructGeometry ( )
virtual

Create the detector geometry

Reimplemented from FairModule.

Definition at line 169 of file NewDetector.cxx.

virtual void NewDetector::EndOfEvent ( )
virtual

this is called at the end of an event after the call to tree fill in the FairRootManager

Reimplemented from FairDetector.

virtual void NewDetector::EndOfEvent ( )
virtual

this is called at the end of an event after the call to tree fill in the FairRootManager

Reimplemented from FairDetector.

void NewDetector::EndOfEvent ( )
virtual

this is called at the end of an event after the call to tree fill in the FairRootManager

Reimplemented from FairDetector.

Definition at line 134 of file NewDetector.cxx.

virtual void NewDetector::EndOfEvent ( )
virtual

this is called at the end of an event after the call to tree fill in the FairRootManager

Reimplemented from FairDetector.

virtual void NewDetector::FinishPrimary ( )
inlinevirtual

User actions after finishing of a primary track

Reimplemented from FairDetector.

Definition at line 65 of file NewDetector.h.

virtual void NewDetector::FinishPrimary ( )
inlinevirtual

User actions after finishing of a primary track

Reimplemented from FairDetector.

Definition at line 65 of file NewDetector.h.

virtual void NewDetector::FinishPrimary ( )
inlinevirtual

User actions after finishing of a primary track

Reimplemented from FairDetector.

Definition at line 68 of file NewDetector.h.

virtual void NewDetector::FinishPrimary ( )
inlinevirtual

User actions after finishing of a primary track

Reimplemented from FairDetector.

Definition at line 68 of file NewDetector.h.

virtual void NewDetector::FinishRun ( )
inlinevirtual

Finish MC Run

Reimplemented from FairDetector.

Definition at line 66 of file NewDetector.h.

virtual void NewDetector::FinishRun ( )
inlinevirtual

Finish MC Run

Reimplemented from FairDetector.

Definition at line 66 of file NewDetector.h.

virtual void NewDetector::FinishRun ( )
inlinevirtual

Finish MC Run

Reimplemented from FairDetector.

Definition at line 69 of file NewDetector.h.

virtual void NewDetector::FinishRun ( )
inlinevirtual

Finish MC Run

Reimplemented from FairDetector.

Definition at line 69 of file NewDetector.h.

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

Gets the produced collections

Implements FairDetector.

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

Gets the produced collections

Implements FairDetector.

Definition at line 158 of file NewDetector.cxx.

virtual TClonesArray* NewDetector::GetCollection ( Int_t  iColl) const
inlinevirtual

Gets the produced collections

Implements FairDetector.

Definition at line 76 of file NewDetector.h.

virtual TClonesArray* NewDetector::GetCollection ( Int_t  iColl) const
inlinevirtual

Gets the produced collections

Implements FairDetector.

Definition at line 76 of file NewDetector.h.

void NewDetector::Initialize ( )
virtual

Initialization of the detector is done here

WORKAROUND needed for Geant4 in MT mode Call AddSensitiveVolume for sensitive volumes in order to fill thread-local FairModule::svList.

Reimplemented from FairDetector.

Definition at line 80 of file NewDetector.cxx.

virtual void NewDetector::Initialize ( )
virtual

Initialization of the detector is done here

Reimplemented from FairDetector.

virtual void NewDetector::Initialize ( )
virtual

Initialization of the detector is done here

Reimplemented from FairDetector.

virtual void NewDetector::Initialize ( )
virtual

Initialization of the detector is done here

Reimplemented from FairDetector.

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

Set the sensitivity flag for volumes, called from ConstructASCIIRootGeometry(), and has to be implimented for detectors which use ConstructASCIIRootGeometry() to build the geometry

Reimplemented from FairModule.

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

Set the sensitivity flag for volumes, called from ConstructASCIIRootGeometry(), and has to be implimented for detectors which use ConstructASCIIRootGeometry() to build the geometry

Reimplemented from FairModule.

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

Set the sensitivity flag for volumes, called from ConstructASCIIRootGeometry(), and has to be implimented for detectors which use ConstructASCIIRootGeometry() to build the geometry

Reimplemented from FairModule.

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

Set the sensitivity flag for volumes, called from ConstructASCIIRootGeometry(), and has to be implimented for detectors which use ConstructASCIIRootGeometry() to build the geometry

Reimplemented from FairModule.

Definition at line 252 of file NewDetector.cxx.

virtual void NewDetector::PostTrack ( )
inlinevirtual

User actions after finishing of each track

Reimplemented from FairDetector.

Definition at line 68 of file NewDetector.h.

virtual void NewDetector::PostTrack ( )
inlinevirtual

User actions after finishing of each track

Reimplemented from FairDetector.

Definition at line 68 of file NewDetector.h.

virtual void NewDetector::PostTrack ( )
inlinevirtual

User actions after finishing of each track

Reimplemented from FairDetector.

Definition at line 71 of file NewDetector.h.

virtual void NewDetector::PostTrack ( )
inlinevirtual

User actions after finishing of each track

Reimplemented from FairDetector.

Definition at line 71 of file NewDetector.h.

virtual void NewDetector::PreTrack ( )
inlinevirtual

User actions at beginning of each track

Reimplemented from FairDetector.

Definition at line 69 of file NewDetector.h.

virtual void NewDetector::PreTrack ( )
inlinevirtual

User actions at beginning of each track

Reimplemented from FairDetector.

Definition at line 69 of file NewDetector.h.

virtual void NewDetector::PreTrack ( )
inlinevirtual

User actions at beginning of each track

Reimplemented from FairDetector.

Definition at line 72 of file NewDetector.h.

virtual void NewDetector::PreTrack ( )
inlinevirtual

User actions at beginning of each track

Reimplemented from FairDetector.

Definition at line 72 of file NewDetector.h.

virtual Bool_t NewDetector::ProcessHits ( FairVolume v = 0)
virtual

this method is called for each step during simulation (see FairMCApplication::Stepping())

Implements FairDetector.

Bool_t NewDetector::ProcessHits ( FairVolume v = 0)
virtual

this method is called for each step during simulation (see FairMCApplication::Stepping())

This method is called from the MC stepping

Implements FairDetector.

Definition at line 94 of file NewDetector.cxx.

virtual Bool_t NewDetector::ProcessHits ( FairVolume v = 0)
virtual

this method is called for each step during simulation (see FairMCApplication::Stepping())

Implements FairDetector.

virtual Bool_t NewDetector::ProcessHits ( FairVolume v = 0)
virtual

this method is called for each step during simulation (see FairMCApplication::Stepping())

Implements FairDetector.

virtual void NewDetector::Register ( )
virtual

Registers the produced collections in FAIRRootManager.

Implements FairDetector.

virtual void NewDetector::Register ( )
virtual

Registers the produced collections in FAIRRootManager.

Implements FairDetector.

virtual void NewDetector::Register ( )
virtual

Registers the produced collections in FAIRRootManager.

Implements FairDetector.

void NewDetector::Register ( )
virtual

Registers the produced collections in FAIRRootManager.

This will create a branch in the output tree called NewDetectorPoint, setting the last parameter to kFALSE means: this collection will not be written to the file, it will exist only during the simulation.

Implements FairDetector.

Definition at line 142 of file NewDetector.cxx.

virtual void NewDetector::Reset ( )
virtual

has to be called after each event to reset the containers

Implements FairDetector.

virtual void NewDetector::Reset ( )
virtual

has to be called after each event to reset the containers

Implements FairDetector.

virtual void NewDetector::Reset ( )
virtual

has to be called after each event to reset the containers

Implements FairDetector.

void NewDetector::Reset ( )
virtual

has to be called after each event to reset the containers

Implements FairDetector.

Definition at line 167 of file NewDetector.cxx.

virtual void NewDetector::SetSpecialPhysicsCuts ( )
inlinevirtual

The following methods can be implemented if you need to make any optional action in your detector during the transport.

Reimplemented from FairModule.

Definition at line 63 of file NewDetector.h.

virtual void NewDetector::SetSpecialPhysicsCuts ( )
inlinevirtual

The following methods can be implemented if you need to make any optional action in your detector during the transport.

Reimplemented from FairModule.

Definition at line 63 of file NewDetector.h.

virtual void NewDetector::SetSpecialPhysicsCuts ( )
inlinevirtual

The following methods can be implemented if you need to make any optional action in your detector during the transport.

Reimplemented from FairModule.

Definition at line 66 of file NewDetector.h.

virtual void NewDetector::SetSpecialPhysicsCuts ( )
inlinevirtual

The following methods can be implemented if you need to make any optional action in your detector during the transport.

Reimplemented from FairModule.

Definition at line 66 of file NewDetector.h.


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