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

#include <EicToyModel/blob/master/fun4all_with_eicroot/sandbox/EicRootVstSubsystem.h>

+ Inheritance diagram for EicRootVstSubsystem:
+ Collaboration diagram for EicRootVstSubsystem:

Public Member Functions

 EicRootVstSubsystem (const std::string &name)
 
 ~EicRootVstSubsystem ()
 
void PlaceG4Volume (G4LogicalVolume *mother, bool check=false, void *pRot=0, void *tlate=0)
 
const std::map
< G4VPhysicalVolume
*, unsigned > & 
GetG4SensitiveVolumes (void) const
 
- Public Member Functions inherited from EicRootSubsystem
 EicRootSubsystem (const std::string &name)
 
 ~EicRootSubsystem ()
 
int InitRunSubsystem (PHCompositeNode *) override
 
int process_event (PHCompositeNode *) override
 
PHG4DetectorGetDetector () const override
 return pointer to created detector object
 
PHG4SteppingActionGetSteppingAction () const override
 return pointer to this subsystem stepping action
 
void Print (const std::string &what="ALL") const override
 
const std::string & GetG4HitName (void) const
 
- Public Member Functions inherited from PHG4DetectorSubsystem
 ~PHG4DetectorSubsystem () override
 
int Init (PHCompositeNode *) final
 
int InitRun (PHCompositeNode *) final
 
virtual int InitSubsystem (PHCompositeNode *)
 
void OverlapCheck (const bool chk=true)
 
bool CheckOverlap () const
 
PHParametersGetParams () const
 
void set_double_param (const std::string &name, const double dval)
 
double get_double_param (const std::string &name) const
 
void set_int_param (const std::string &name, const int ival)
 
int get_int_param (const std::string &name) const
 
void set_string_param (const std::string &name, const std::string &sval)
 
std::string get_string_param (const std::string &name) const
 
void UseDB (const int i=1)
 
int ReadDB () const
 
FILE_TYPE get_filetype () const
 
void UseCalibFiles (const FILE_TYPE ftyp)
 
int SaveParamsToDB ()
 
int ReadParamsFromDB (const std::string &name, const int issuper)
 
int SaveParamsToFile (const FILE_TYPE ftyp)
 
int ReadParamsFromFile (const std::string &name, const FILE_TYPE ftyp, const int issuper)
 
void SetCalibrationFileDir (const std::string &calibdir)
 
void UpdateParametersWithMacro ()
 
void SetActive (const int i=1)
 
void SetAbsorberActive (const int i=1)
 
void SetAbsorberTruth (const int i=1)
 
void BlackHole (const int i=1)
 
void SetSupportActive (const int i=1)
 
void SuperDetector (const std::string &name)
 
const std::string SuperDetector () const
 
int GetLayer () const
 
- Public Member Functions inherited from PHG4Subsystem
 PHG4Subsystem (const std::string &name="Generic Subsystem")
 constructor
 
 ~PHG4Subsystem (void) override
 destructor
 
virtual int process_after_geant (PHCompositeNode *)
 event processing
 
virtual PHG4EventActionGetEventAction (void) const
 return pointer to this subsystem event action
 
virtual PHG4TrackingActionGetTrackingAction (void) const
 return pointer to this subsystem stepping action
 
virtual PHG4DisplayActionGetDisplayAction () const
 return pointer to this subsystem display setting
 
virtual PHG4StackingActionGetStackingAction () const
 
void OverlapCheck (const bool chk=true)
 
bool CheckOverlap () const
 
void SetMotherSubsystem (PHG4Subsystem *subsys)
 
PHG4SubsystemGetMotherSubsystem () const
 
void SetLogicalVolume (G4LogicalVolume *vol)
 
G4LogicalVolume * GetLogicalVolume () const
 
virtual bool CanBeMotherSubsystem () const
 
virtual void AddProcesses (G4ParticleDefinition *)
 
virtual void DefineMaterials ()
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int End (PHCompositeNode *)
 Called at the end of all processing.
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event.
 
void Print (const std::string &="ALL") const override
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module.
 
virtual void Name (const std::string &name)
 Sets the name of this module.
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual int Verbosity () const
 Gets the verbosity of this module.
 
- Public Member Functions inherited from VstGeoParData
 VstGeoParData (int version=-1, int subVersion=0)
 
 ~VstGeoParData ()
 
void AddBarrelLayer (MapsMimosaAssembly *chipAssembly, unsigned staveNum, unsigned chipNum, double radius, double slope, double asimuthalOffset=0.0)
 
unsigned GetNumberOfLayers () const
 
const VstBarrelLayerGetBarrelLayer (unsigned layerID) const
 
int ConstructGeometry (bool root=true, bool gdml=false, bool check=false)
 
 VstGeoParData (int version=-1, int subVersion=0)
 
 ~VstGeoParData ()
 
void AddBarrelLayer (MapsMimosaAssembly *chipAssembly, unsigned staveNum, unsigned chipNum, double radius, double slope, double asimuthalOffset=0.0)
 
unsigned GetNumberOfLayers () const
 
const VstBarrelLayerGetBarrelLayer (unsigned layerID) const
 
int ConstructGeometry (bool root=true, bool gdml=false, bool check=false)
 
- Public Member Functions inherited from MapsGeoParData
 MapsGeoParData (const char *detName=0, int version=-1, int subVersion=0)
 
 ~MapsGeoParData ()
 
void UseTriangularAssemblies (bool yesNo)
 
bool UseTriangularAssemblies () const
 
void WithMountingRings (bool yesNo)
 
bool WithMountingRings () const
 
void WithEnforcementBrackets (bool yesNo)
 
bool WithEnforcementBrackets () const
 
void WithExternalPipes (bool yesNo)
 
bool WithExternalPipes () const
 
void SetCarbonFiberMaterial (const char *material)
 
void SetKaptonMaterial (const char *material)
 
 MapsGeoParData (const char *detName=0, int version=-1, int subVersion=0)
 
 ~MapsGeoParData ()
 
void UseTriangularAssemblies (bool yesNo=true)
 
void WithMountingRings (bool yesNo=true)
 
void WithEnforcementBrackets (bool yesNo=true)
 
void WithExternalPipes (bool yesNo=true)
 
void SetCarbonFiberMaterial (const char *material)
 
void SetKaptonMaterial (const char *material)
 
- Public Member Functions inherited from EicGeoParData
 EicGeoParData (const char *detName=0, int version=-1, int subVersion=0)
 
 ~EicGeoParData ()
 
void ResetVars ()
 
void SetGeometryType (GeometryType gType)
 
GeometryType GetGeometryType () const
 
void SetTestGeometryFlag (bool flag=true)
 
bool IsTestGeometry () const
 
int GetVersion () const
 
int GetSubVersion () const
 
void SetFileName (const char *fileName)
 
void SetFileNameFormat (const char *fileNameFormat)
 
void SetComment (const char *comment)
 
int AttachSourceFile (const char *fileName)
 
void PrintAttachedSourceFile (const char *fileName)
 
EicGeoMapCreateNewMap ()
 
int SetCircularX (unsigned group=0)
 
int SetCircularY (unsigned group=0)
 
int SetCircularZ (unsigned group=0)
 
bool GetCircularX (unsigned group=0) const
 
bool GetCircularY (unsigned group=0) const
 
bool GetCircularZ (unsigned group=0) const
 
bool GetCircular (unsigned group, unsigned what) const
 
int SetMappingTableEntry (EicGeoMap *map, const unsigned geant[], unsigned group, unsigned logical[])
 
int AddLogicalVolumeGroup (unsigned dimX=0, unsigned dimY=0, unsigned dimZ=0)
 
void AddBlackHoleVolume (const char *vName)
 
void AddStepEnforcedVolume (const char *vName)
 
void AddStepEnforcedVolumeLookupEntry (int volumeID, double step)
 
const TGeoMedium * GetMedium (const char *medium)
 
void SetTopVolumeTransformation (TGeoMatrix *transformation)
 
const TGeoMatrix * GetTopVolumeTransformation () const
 
TString GetGeometryFileName (bool root=true) const
 
virtual void Print (const char *option=0) const
 
TGeoVolume * GetTopVolume () const
 
TGeoManager * GetRootGeoManager ()
 
void FinalizeOutput (bool root=true, bool gdml=false, bool check=false)
 
UInt_t GetMapNum () const
 
EicGeoMapGetMapPtrViaMapID (unsigned mapId) const
 
const EicGeoMapGetMapPtrViaHitMultiIndex (ULong64_t multi) const
 
int CalculateMappingTableSignatures ()
 
unsigned GetMaxVolumeLevelNum () const
 
ULogicalIndex_t GeantMultiToLogicalIndex (ULong64_t multi) const
 
unsigned GetDimX (unsigned group=0) const
 
unsigned GetDimY (unsigned group=0) const
 
unsigned GetDimZ (unsigned group=0) const
 
unsigned GetDim (unsigned group, unsigned what) const
 
unsigned GetGroup (ULogicalIndex_t logicalID) const
 
unsigned GetX (ULogicalIndex_t logicalID) const
 
unsigned GetY (ULogicalIndex_t logicalID) const
 
unsigned GetZ (ULogicalIndex_t logicalID) const
 
unsigned GetCoord (unsigned what, ULogicalIndex_t logicalID) const
 
bool IsBlackHoleVolume (const char *vName) const
 
const std::set< TString > & GetBlackHoleVolumes () const
 
double GetEnforcedStep (int volumeID)
 
const std::set< TString > & GetStepEnforcedVolumes () const
 
void InitializeLookupTables ()
 
LogicalVolumeLookupTableEntryGetLookupTableNode (ULogicalIndex_t xy) const
 
LogicalVolumeLookupTableEntryGetLookupTableNode (const TGeoNode *node) const
 
EicNamePatternHub< Color_t > * GetColorTable ()
 
EicNamePatternHub< Char_t > * GetTransparencyTable ()
 
virtual bool AreNeighbours (ULogicalIndex_t l1, ULogicalIndex_t l2, unsigned maxLinearDist=1, unsigned maxChebyshevDist=0) const
 
const EicDetNameGetDetName () const
 
void AddWantedParticle (const char *vName, int pdg)
 
bool IsWantedParticle (const char *vName, int pdg) const
 
 EicGeoParData (const char *detName=0, int version=-1, int subVersion=0)
 
 ~EicGeoParData ()
 
void ResetVars ()
 
void SetGeometryType (GeometryType gType)
 
GeometryType GetGeometryType () const
 
void SetTestGeometryFlag (bool flag=true)
 
bool IsTestGeometry () const
 
int GetVersion () const
 
int GetSubVersion () const
 
void SetFileName (const char *fileName)
 
void SetFileNameFormat (const char *fileNameFormat)
 
void SetTransparency (unsigned value)
 
void SetComment (const char *comment)
 
int AttachSourceFile (const char *fileName)
 
void PrintAttachedSourceFile (const char *fileName)
 
EicGeoMapCreateNewMap ()
 
int SetCircularX (unsigned group=0)
 
int SetCircularY (unsigned group=0)
 
int SetCircularZ (unsigned group=0)
 
bool GetCircularX (unsigned group=0) const
 
bool GetCircularY (unsigned group=0) const
 
bool GetCircularZ (unsigned group=0) const
 
bool GetCircular (unsigned group, unsigned what) const
 
int SetMappingTableEntry (EicGeoMap *map, const unsigned geant[], unsigned group, unsigned logical[])
 
int AddLogicalVolumeGroup (unsigned dimX=0, unsigned dimY=0, unsigned dimZ=0)
 
void AddBlackHoleVolume (const char *vName)
 
void AddStepEnforcedVolume (const char *vName)
 
void AddStepEnforcedVolumeLookupEntry (int volumeID, double step)
 
const TGeoMedium * GetMedium (const char *medium)
 
void SetTopVolumeTransformation (TGeoMatrix *transformation)
 
const TGeoMatrix * GetTopVolumeTransformation () const
 
TString GetGeometryFileName (bool root=true) const
 
virtual void Print (const char *option=0) const
 
TGeoVolume * GetTopVolume () const
 
TGeoManager * GetRootGeoManager ()
 
void FinalizeOutput (bool root=true, bool gdml=false, bool check=false)
 
UInt_t GetMapNum () const
 
EicGeoMapGetMapPtrViaMapID (unsigned mapId) const
 
const EicGeoMapGetMapPtrViaHitMultiIndex (ULong64_t multi) const
 
int CalculateMappingTableSignatures ()
 
unsigned GetMaxVolumeLevelNum () const
 
ULogicalIndex_t GeantMultiToLogicalIndex (ULong64_t multi) const
 
void PlaceG4Volume (G4LogicalVolume *mother, bool check=false, void *pRot=0, void *tlate=0)
 
unsigned GetDimX (unsigned group=0) const
 
unsigned GetDimY (unsigned group=0) const
 
unsigned GetDimZ (unsigned group=0) const
 
unsigned GetDim (unsigned group, unsigned what) const
 
unsigned GetGroup (ULogicalIndex_t logicalID) const
 
unsigned GetX (ULogicalIndex_t logicalID) const
 
unsigned GetY (ULogicalIndex_t logicalID) const
 
unsigned GetZ (ULogicalIndex_t logicalID) const
 
unsigned GetCoord (unsigned what, ULogicalIndex_t logicalID) const
 
bool IsBlackHoleVolume (const char *vName) const
 
const std::set< TString > & GetBlackHoleVolumes () const
 
double GetEnforcedStep (int volumeID)
 
const std::set< TString > & GetStepEnforcedVolumes () const
 
void InitializeLookupTables ()
 
LogicalVolumeLookupTableEntryGetLookupTableNode (ULogicalIndex_t xy) const
 
LogicalVolumeLookupTableEntryGetLookupTableNode (const TGeoNode *node) const
 
EicNamePatternHub< Color_t > * GetColorTable ()
 
EicNamePatternHub< Char_t > * GetTransparencyTable ()
 
virtual bool AreNeighbours (ULogicalIndex_t l1, ULogicalIndex_t l2, unsigned maxLinearDist=1, unsigned maxChebyshevDist=0) const
 
const EicDetNameGetDetName () const
 
void AddWantedParticle (const char *vName, int pdg)
 
bool IsWantedParticle (const char *vName, int pdg) const
 
void SetTGeoGeometryCheckPrecision (double value)
 
void TurnTGeoGeometryCheckOff (void)
 
const std::vector
< G4VPhysicalVolume * > & 
GetG4Volumes (void) const
 
const std::map
< G4VPhysicalVolume
*, unsigned > & 
GetG4SensitiveVolumes (void) const
 
 ClassDef (EicGeoParData, 51)
 

Additional Inherited Members

- Public Types inherited from PHG4DetectorSubsystem
enum  FILE_TYPE { none = 0, xml = 1, root = 2 }
 
- Public Types inherited from EicGeoParData
enum  GeometryType {
  Undefined, NoStructure, SimpleStructure, FullStructure,
  Undefined, NoStructure, SimpleStructure, FullStructure
}
 
enum  IDXYZ {
  IDX =0, IDY, IDZ, IDX =0,
  IDY, IDZ
}
 
enum  GeometryType {
  Undefined, NoStructure, SimpleStructure, FullStructure,
  Undefined, NoStructure, SimpleStructure, FullStructure
}
 
enum  IDXYZ {
  IDX =0, IDY, IDZ, IDX =0,
  IDY, IDZ
}
 
- Static Public Member Functions inherited from EicGeoParData
static int ImportMediaFile (const char *fname)
 
- Public Attributes inherited from VstGeoParData
Double_t mMountingRingRadialOffset
 
- Protected Member Functions inherited from EicRootSubsystem
void SetDefaultParameters () override
 
- Protected Member Functions inherited from MapsGeoParData
TGeoVolume * ConstructMimosaCell (MapsMimosaAssembly *mcell, unsigned id)
 
double GetExpectedStaveLength (unsigned chipNum, MapsMimosaAssembly *mcell)
 
double GetAssemblyContainerWidth (const MapsMimosaAssembly *mcell) const
 
MapsStaveConstructStave (unsigned chipNum, unsigned id, MapsMimosaAssembly *mcell)
 
MapsStaveConstructStaveWithMapping (unsigned chipNum, unsigned id, MapsMimosaAssembly *mcell)
 
 ClassDef (MapsGeoParData, 10)
 
TGeoVolume * ConstructMimosaCell (MapsMimosaAssembly *mcell, unsigned id)
 
double GetExpectedStaveLength (unsigned chipNum, MapsMimosaAssembly *mcell)
 
double GetAssemblyContainerWidth (const MapsMimosaAssembly *mcell) const
 
MapsStaveConstructStave (unsigned chipNum, unsigned id, MapsMimosaAssembly *mcell)
 
MapsStaveConstructStaveWithMapping (unsigned chipNum, unsigned id, MapsMimosaAssembly *mcell)
 
 ClassDef (MapsGeoParData, 10)
 
- Protected Attributes inherited from MapsGeoParData
TString mCarbonFiberMaterial
 
TString mKaptonMaterial
 
char mMimosaCoreName [128]
 
char mMimosaShellName [128]
 
char mCellAssemblyName [128]
 
double mAssemblyHeight
 
double mAssemblyLength
 
double mWaterPipeXoffset
 
double mWaterPipeZoffset
 
double mMimosaOffset
 

Detailed Description

Definition at line 10 of file EicRootVstSubsystem.h.

View newest version in sPHENIX GitHub at line 10 of file EicRootVstSubsystem.h

Constructor & Destructor Documentation

EicRootVstSubsystem::EicRootVstSubsystem ( const std::string &  name)
inline

Definition at line 14 of file EicRootVstSubsystem.h.

View newest version in sPHENIX GitHub at line 14 of file EicRootVstSubsystem.h

EicRootVstSubsystem::~EicRootVstSubsystem ( )
inline

Definition at line 15 of file EicRootVstSubsystem.h.

View newest version in sPHENIX GitHub at line 15 of file EicRootVstSubsystem.h

Member Function Documentation

const std::map<G4VPhysicalVolume*, unsigned>& EicRootVstSubsystem::GetG4SensitiveVolumes ( void  ) const
inlinevirtual

Implements EicRootSubsystem.

Definition at line 22 of file EicRootVstSubsystem.h.

View newest version in sPHENIX GitHub at line 22 of file EicRootVstSubsystem.h

References EicGeoParData::GetG4SensitiveVolumes().

+ Here is the call graph for this function:

void EicRootVstSubsystem::PlaceG4Volume ( G4LogicalVolume *  mother,
bool  check = false,
void *  pRot = 0,
void *  tlate = 0 
)
inlinevirtual

Implements EicRootSubsystem.

Definition at line 18 of file EicRootVstSubsystem.h.

View newest version in sPHENIX GitHub at line 18 of file EicRootVstSubsystem.h

References EicGeoParData::PlaceG4Volume().

+ Here is the call graph for this function:


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