FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairDetector Class Referenceabstract

#include <FairDetector.h>

Inheritance diagram for FairDetector:
FairModule FairFastSimDetector FairRutherford FairTestDetector FairTutorialDet1 FairTutorialDet2 FairTutorialDet4 FairTutPropDet NewDetector NewDetector NewDetector NewDetector Pixel

Public Member Functions

 FairDetector (const char *Name, Bool_t Active, Int_t DetId=0)
 
 FairDetector ()
 
virtual ~FairDetector ()
 
virtual void Initialize ()
 
virtual Bool_t ProcessHits (FairVolume *v=0)=0
 
virtual void EndOfEvent ()
 
virtual void Register ()=0
 
virtual TClonesArray * GetCollection (Int_t iColl) const =0
 
virtual void Reset ()=0
 
virtual void CopyClones (TClonesArray *, TClonesArray *, Int_t)
 
virtual void FinishPrimary ()
 
virtual void FinishRun ()
 
virtual void BeginPrimary ()
 
virtual void PostTrack ()
 
virtual void PreTrack ()
 
virtual void BeginEvent ()
 
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 ConstructGeometry ()
 
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 SetSpecialPhysicsCuts ()
 
virtual FairModuleCloneModule () const
 
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 IsSensitive (const std::string &name)
 
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)
 

Protected Member Functions

 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

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...
 

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
FairVolumeList
vList = 0
 
static thread_local Int_t fNbOfVolumes = 0
 
static thread_local TRefArray * svList = 0
 
static thread_local TArrayI * volNumber = 0
 

Detailed Description

Base class for constructing detecors

Author
M. Al-Turany, Denis Bertini
Version
0.1
Since
12.01.04

Definition at line 25 of file FairDetector.h.

Constructor & Destructor Documentation

FairDetector::FairDetector ( const char *  Name,
Bool_t  Active,
Int_t  DetId = 0 
)

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

Definition at line 30 of file FairDetector.cxx.

FairDetector::FairDetector ( )

default constructor

Definition at line 66 of file FairDetector.cxx.

FairDetector::~FairDetector ( )
virtual

destructor

Definition at line 48 of file FairDetector.cxx.

FairDetector::FairDetector ( const FairDetector rhs)
protected

Copy constructor

Definition at line 42 of file FairDetector.cxx.

Member Function Documentation

virtual void FairDetector::BeginEvent ( )
inlinevirtual

User actions at beginning of event

Reimplemented in FairTutorialDet4, FairTestDetector, FairTutorialDet1, FairTutorialDet2, FairRutherford, Pixel, FairTutPropDet, NewDetector, NewDetector, NewDetector, and NewDetector.

Definition at line 93 of file FairDetector.h.

virtual void FairDetector::BeginPrimary ( )
inlinevirtual

User actions at beginning of a primary track

Reimplemented in FairTutorialDet4, FairTestDetector, FairTutorialDet1, FairTutorialDet2, FairRutherford, Pixel, FairTutPropDet, NewDetector, NewDetector, NewDetector, and NewDetector.

Definition at line 81 of file FairDetector.h.

FairDetector::ClassDef ( FairDetector  ,
 
)
protected
virtual void FairDetector::CopyClones ( TClonesArray *  ,
TClonesArray *  ,
Int_t   
)
inlinevirtual

Definition at line 69 of file FairDetector.h.

void FairDetector::DefineSensitiveVolumes ( )
protected

Definition at line 73 of file FairDetector.cxx.

virtual void FairDetector::EndOfEvent ( )
inlinevirtual

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

Reimplemented in FairTutorialDet4, FairTestDetector, FairTutorialDet1, FairTutorialDet2, FairRutherford, Pixel, FairTutPropDet, NewDetector, NewDetector, NewDetector, NewDetector, FairFastSimExample, FairFastSimExample2, and FairFastSimDetector.

Definition at line 54 of file FairDetector.h.

virtual void FairDetector::FinishEvent ( )
inlinevirtual

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

Definition at line 97 of file FairDetector.h.

virtual void FairDetector::FinishPrimary ( )
inlinevirtual

User actions after finishing of a primary track

Reimplemented in FairTutorialDet4, FairTestDetector, FairTutorialDet1, FairTutorialDet2, FairRutherford, Pixel, FairTutPropDet, NewDetector, NewDetector, NewDetector, and NewDetector.

Definition at line 73 of file FairDetector.h.

virtual void FairDetector::FinishRun ( )
inlinevirtual
virtual TClonesArray* FairDetector::GetCollection ( Int_t  iColl) const
pure virtual
Int_t FairDetector::GetDetId ( )
inline

Definition at line 100 of file FairDetector.h.

void FairDetector::Initialize ( )
virtual
FairDetector & FairDetector::operator= ( const FairDetector rhs)
protected

Assignment operator

Definition at line 50 of file FairDetector.cxx.

virtual void FairDetector::PostTrack ( )
inlinevirtual

User actions after finishing of each track

Reimplemented in FairTutorialDet4, FairTestDetector, FairTutorialDet1, FairTutorialDet2, FairRutherford, Pixel, FairTutPropDet, NewDetector, NewDetector, NewDetector, and NewDetector.

Definition at line 85 of file FairDetector.h.

virtual void FairDetector::PreTrack ( )
inlinevirtual

User actions at beginning of each track

Reimplemented in FairTutorialDet4, FairTestDetector, FairTutorialDet1, FairTutorialDet2, FairRutherford, Pixel, FairTutPropDet, NewDetector, NewDetector, NewDetector, and NewDetector.

Definition at line 89 of file FairDetector.h.

virtual Bool_t FairDetector::ProcessHits ( FairVolume v = 0)
pure virtual
virtual void FairDetector::Register ( )
pure virtual
virtual void FairDetector::Reset ( )
pure virtual
void FairDetector::SaveGeoParams ( )

Definition at line 127 of file FairDetector.cxx.

Member Data Documentation

Int_t FairDetector::fDetId
protected

Definition at line 110 of file FairDetector.h.

FairLogger* FairDetector::fLogger
protected

Definition at line 111 of file FairDetector.h.


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