EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairDetector Class Referenceabstract

#include <EicRoot/blob/master/base/FairDetector.h>

+ Inheritance diagram for FairDetector:
+ Collaboration diagram for FairDetector:

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 *cl1, TClonesArray *cl2, Int_t offset)
 
virtual void FinishPrimary ()
 
virtual void FinishRun ()
 
virtual void BeginPrimary ()
 
virtual void PostTrack ()
 
virtual void PreTrack ()
 
virtual void BeginEvent ()
 
virtual void FinishEvent ()
 
virtual void SetSpecialPhysicsCuts ()
 
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 *option="") const
 
virtual void SetGeometryFileName (TString fname, TString geoVer="0")
 
virtual TString GetGeometryFileName ()
 
virtual TString GetGeometryFileVer ()
 
virtual void ConstructGeometry ()
 
virtual void ConstructOpGeometry ()
 
virtual void ConstructRootGeometry ()
 
virtual void ConstructASCIIGeometry ()
 
virtual Bool_t CheckIfSensitive (std::string name)
 
virtual void ExpandNode (TGeoNode *Node)
 
virtual Int_t getVolId (const TString &vname) 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 ()
 
TList * GetListOfGeoPar ()
 
FairVolumegetFairVolume (FairGeoNode *fNode)
 
void AddSensitiveVolume (TGeoVolume *v)
 
void ImportRootMaterials ()
 

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 kGeoSaved
 list of Detector Geometry parameters
 
FairLoggerfLogger
 flag for initialisation
 
Bool_t fRootMaterialImportFlag
 

Private Member Functions

 FairDetector (const FairDetector &M)
 
FairDetectoroperator= (const FairDetector &)
 

Additional Inherited Members

- Public Attributes inherited from FairModule
TString fMotherVolumeName
 
- Static Public Attributes inherited from FairModule
static FairVolumeListvList =0
 
static Int_t fNbOfVolumes =0
 
static TRefArray * svList =0
 
static 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 17 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 17 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 23 of file FairDetector.cxx.

View newest version in sPHENIX GitHub at line 23 of file FairDetector.cxx

References FairModule::flGeoPar, and FairModule::kGeoSaved.

FairDetector::FairDetector ( )

default constructor

Definition at line 46 of file FairDetector.cxx.

View newest version in sPHENIX GitHub at line 46 of file FairDetector.cxx

FairDetector::~FairDetector ( )
virtual

destructor

Definition at line 38 of file FairDetector.cxx.

View newest version in sPHENIX GitHub at line 38 of file FairDetector.cxx

References FairModule::flGeoPar.

FairDetector::FairDetector ( const FairDetector M)
private

Member Function Documentation

virtual void FairDetector::BeginEvent ( )
inlinevirtual

Reimplemented in EicDetector.

Definition at line 83 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 83 of file FairDetector.h

Referenced by FairMCApplication::BeginEvent().

+ Here is the caller graph for this function:

virtual void FairDetector::BeginPrimary ( )
inlinevirtual

Definition at line 74 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 74 of file FairDetector.h

Referenced by FairMCApplication::BeginPrimary().

+ Here is the caller graph for this function:

virtual void FairDetector::CopyClones ( TClonesArray *  cl1,
TClonesArray *  cl2,
Int_t  offset 
)
inlinevirtual

Reimplemented in CbmRich.

Definition at line 64 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 64 of file FairDetector.h

virtual void FairDetector::EndOfEvent ( )
inlinevirtual

this is called at the end of an event

Reimplemented in EicDetector, and CbmRich.

Definition at line 48 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 48 of file FairDetector.h

Referenced by FairMCApplication::FinishEvent().

+ Here is the caller graph for this function:

virtual void FairDetector::FinishEvent ( )
inlinevirtual

Definition at line 86 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 86 of file FairDetector.h

Referenced by FairMCApplication::FinishEvent().

+ Here is the caller graph for this function:

virtual void FairDetector::FinishPrimary ( )
inlinevirtual

Definition at line 68 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 68 of file FairDetector.h

Referenced by FairMCApplication::FinishPrimary().

+ Here is the caller graph for this function:

virtual void FairDetector::FinishRun ( )
inlinevirtual

Reimplemented in EicDetector.

Definition at line 71 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 71 of file FairDetector.h

Referenced by FairMCApplication::FinishRun().

+ Here is the caller graph for this function:

virtual TClonesArray* FairDetector::GetCollection ( Int_t  iColl) const
pure virtual

Gets the produced collections

Implemented in EicDetector, and CbmRich.

Referenced by CbmStack::UpdateTrackIndex(), and PndStack::UpdateTrackIndex().

+ Here is the caller graph for this function:

Int_t FairDetector::GetDetId ( )
inline

Definition at line 93 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 93 of file FairDetector.h

References fDetId.

void FairDetector::Initialize ( )
virtual

Initialization of the detector is done here

Reimplemented in EicDetector, and CbmRich.

Definition at line 53 of file FairDetector.cxx.

View newest version in sPHENIX GitHub at line 53 of file FairDetector.cxx

References FairVolume::getGeoNode(), FairVolume::getModId(), FairModule::GetModId(), pos(), FairVolume::setMCid(), FairGeoVolume::setMCid(), and FairModule::svList.

Referenced by FairMCApplication::InitGeometry(), CbmRich::Initialize(), and EicDetector::Initialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FairDetector& FairDetector::operator= ( const FairDetector )
inlineprivate

Definition at line 99 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 99 of file FairDetector.h

virtual void FairDetector::PostTrack ( )
inlinevirtual

Definition at line 77 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 77 of file FairDetector.h

Referenced by FairMCApplication::PostTrack().

+ Here is the caller graph for this function:

virtual void FairDetector::PreTrack ( )
inlinevirtual

Definition at line 80 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 80 of file FairDetector.h

Referenced by FairMCApplication::PreTrack().

+ Here is the caller graph for this function:

virtual Bool_t FairDetector::ProcessHits ( FairVolume v = 0)
pure virtual

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

Implemented in EicDetector, and CbmRich.

Referenced by FairMCApplication::Stepping().

+ Here is the caller graph for this function:

virtual void FairDetector::Register ( )
pure virtual

Registers the produced collections in FAIRRootManager.

Implemented in EicDetector, and CbmRich.

Referenced by FairMCApplication::InitGeometry().

+ Here is the caller graph for this function:

virtual void FairDetector::Reset ( )
pure virtual

has to be called after each event to reset the containers

Implemented in CbmRich, and EicDetector.

void FairDetector::SaveGeoParams ( )

Definition at line 79 of file FairDetector.cxx.

View newest version in sPHENIX GitHub at line 79 of file FairDetector.cxx

References FairModule::flGeoPar, fLogger, FairLogger::Info(), FairModule::kGeoSaved, and MESSAGE_ORIGIN.

+ Here is the call graph for this function:

virtual void FairDetector::SetSpecialPhysicsCuts ( )
inlinevirtual

Definition at line 89 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 89 of file FairDetector.h

Referenced by FairMCApplication::InitGeometry().

+ Here is the caller graph for this function:

Member Data Documentation

Int_t FairDetector::fDetId
protected

Definition at line 106 of file FairDetector.h.

View newest version in sPHENIX GitHub at line 106 of file FairDetector.h

Referenced by GetDetId().

FairLogger* FairDetector::fLogger
protected

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