FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairFastSimExample2 Class Reference

#include <FairFastSimExample2.h>

Inheritance diagram for FairFastSimExample2:
FairFastSimDetector FairDetector FairModule

Public Member Functions

 FairFastSimExample2 (const char *Name)
 
 FairFastSimExample2 ()
 
virtual ~FairFastSimExample2 ()
 
virtual void Initialize ()
 
virtual void Register ()
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 
virtual void Reset ()
 
void ConstructGeometry ()
 
FairTutorialDet1PointAddHit (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
 
virtual void EndOfEvent ()
 
virtual Bool_t IsSensitive (const std::string &name)
 
virtual FairModuleCloneModule () const
 
- Public Member Functions inherited from FairFastSimDetector
 FairFastSimDetector ()
 
 FairFastSimDetector (const char *name, Int_t DetId=0)
 
virtual ~FairFastSimDetector ()
 
virtual Bool_t ProcessHits (FairVolume *vol=0) final
 
- 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 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 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 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)
 

Protected Member Functions

virtual void FastSimProcessParticle ()
 
- Protected Member Functions inherited from FairFastSimDetector
 FairFastSimDetector (const FairFastSimDetector &)
 
FairFastSimDetectoroperator= (const FairFastSimDetector &)
 
 ClassDef (FairFastSimDetector, 1)
 
- 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...
 

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
 
- Protected Attributes inherited from FairFastSimDetector
TGeoMedium * fFastSimMedium
 
- 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 21 of file FairFastSimExample2.h.

Constructor & Destructor Documentation

FairFastSimExample2::FairFastSimExample2 ( const char *  Name)

Name : Detector Name

Definition at line 36 of file FairFastSimExample2.cxx.

FairFastSimExample2::FairFastSimExample2 ( )

default constructor

Definition at line 24 of file FairFastSimExample2.cxx.

FairFastSimExample2::~FairFastSimExample2 ( )
virtual

destructor

Definition at line 60 of file FairFastSimExample2.cxx.

Member Function Documentation

FairTutorialDet1Point * FairFastSimExample2::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 FairTutorialDet1Point to the clones array

Definition at line 144 of file FairFastSimExample2.cxx.

FairModule * FairFastSimExample2::CloneModule ( ) const
virtual

Clone this object (used in MT mode only)

Reimplemented from FairModule.

Definition at line 159 of file FairFastSimExample2.cxx.

void FairFastSimExample2::ConstructGeometry ( )
virtual

Create the detector geometry

Reimplemented from FairFastSimDetector.

Definition at line 121 of file FairFastSimExample2.cxx.

void FairFastSimExample2::EndOfEvent ( )
virtual

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

Reimplemented from FairFastSimDetector.

Definition at line 98 of file FairFastSimExample2.cxx.

void FairFastSimExample2::FastSimProcessParticle ( )
protectedvirtual

Implements FairFastSimDetector.

Definition at line 70 of file FairFastSimExample2.cxx.

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

Gets the produced collections

Implements FairFastSimDetector.

Definition at line 110 of file FairFastSimExample2.cxx.

void FairFastSimExample2::Initialize ( )
virtual

Initialization of the detector is done here

Implements FairFastSimDetector.

Definition at line 68 of file FairFastSimExample2.cxx.

Bool_t FairFastSimExample2::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 157 of file FairFastSimExample2.cxx.

void FairFastSimExample2::Register ( )
virtual

Registers the produced collections in FAIRRootManager.

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

Implements FairFastSimDetector.

Definition at line 100 of file FairFastSimExample2.cxx.

void FairFastSimExample2::Reset ( )
virtual

has to be called after each event to reset the containers

Implements FairFastSimDetector.

Definition at line 119 of file FairFastSimExample2.cxx.


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