Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4DetectorSubsystem Class Referenceabstract

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4DetectorSubsystem.h>

+ Inheritance diagram for PHG4DetectorSubsystem:
+ Collaboration diagram for PHG4DetectorSubsystem:

Public Types

enum  FILE_TYPE { none = 0, xml = 1, root = 2 }
 

Public Member Functions

 ~PHG4DetectorSubsystem () override
 
int Init (PHCompositeNode *) final
 
int InitRun (PHCompositeNode *) final
 
virtual int InitRunSubsystem (PHCompositeNode *)
 
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
 
void UseCDB (const std::string &domain)
 
FILE_TYPE get_filetype () const
 
void UseCalibFiles (const FILE_TYPE ftyp)
 
int ReadParamsFromCDB (const std::string &domain)
 
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
 
virtual void SetDefaultParameters ()=0
 
- 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 PHG4DetectorGetDetector (void) const
 return pointer to created detector object
 
virtual PHG4EventActionGetEventAction (void) const
 return pointer to this subsystem event action
 
virtual PHG4SteppingActionGetSteppingAction (void) const
 return pointer to this subsystem stepping 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 process_event (PHCompositeNode *)
 
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.
 

Protected Member Functions

 PHG4DetectorSubsystem (const std::string &name="GenericSubsystem", const int lyr=0)
 
void InitializeParameters ()
 
void set_default_double_param (const std::string &name, const double dval)
 
void set_default_int_param (const std::string &name, const int ival)
 
void set_default_string_param (const std::string &name, const std::string &sval)
 
int BeginRunExecuted () const
 

Private Attributes

PHParametersparams = nullptr
 
PHParametersContainerparamscontainer = nullptr
 
PHCompositeNodesavetopNode = nullptr
 
bool overlapcheck = false
 
int layer = -1
 
int usedb = 0
 
int beginrunexecuted = 0
 
FILE_TYPE filetype = PHG4DetectorSubsystem::none
 
std::string superdetector = "NONE"
 
std::string calibfiledir = "./"
 
std::string m_Domain
 
std::map< const std::string,
double
dparams
 
std::map< const std::string, int > iparams
 
std::map< const std::string,
std::string > 
cparams
 
std::map< const std::string,
double
default_double
 
std::map< const std::string, int > default_int
 
std::map< const std::string,
std::string > 
default_string
 

Detailed Description

Definition at line 15 of file PHG4DetectorSubsystem.h.

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

Member Enumeration Documentation

Enumerator:
none 
xml 
root 

Definition at line 18 of file PHG4DetectorSubsystem.h.

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

Constructor & Destructor Documentation

PHG4DetectorSubsystem::~PHG4DetectorSubsystem ( )
inlineoverride

Definition at line 25 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 25 of file PHG4DetectorSubsystem.h

PHG4DetectorSubsystem::PHG4DetectorSubsystem ( const std::string &  name = "GenericSubsystem",
const int  lyr = 0 
)
protected

Definition at line 21 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 21 of file PHG4DetectorSubsystem.cc

References Fun4AllBase::Name(), and to_string().

+ Here is the call graph for this function:

Member Function Documentation

int PHG4DetectorSubsystem::BeginRunExecuted ( ) const
inlineprotected

Definition at line 86 of file PHG4DetectorSubsystem.h.

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

References beginrunexecuted.

Referenced by BeamLineMagnetSubsystem::Print(), PHG4BeamlineMagnetSubsystem::Print(), PHG4CylinderSubsystem::Print(), PHG4SpacalPrototype4Subsystem::Print(), and PHG4SpacalPrototypeSubsystem::Print().

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::BlackHole ( const int  i = 1)

Definition at line 403 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 403 of file PHG4DetectorSubsystem.cc

References i, and iparams.

Referenced by BeamLineDefineBeamPipe(), BeamLineDefineMagnets(), BlackHole(), Fun4All_G4_Example02(), Fun4All_G4_Example03(), Fun4All_G4_Momentum(), Fun4All_G4_Momentum_Projection(), Fun4All_G4_Momentum_Projection_Calorimeters(), Fun4All_G4_Momentum_Projection_Detectors(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_G4_TPC(), Fun4All_G4_W(), G4Setup(), and PlugDoor().

+ Here is the caller graph for this function:

double PHG4DetectorSubsystem::get_double_param ( const std::string &  name) const

Definition at line 166 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 166 of file PHG4DetectorSubsystem.cc

References PHParameters::get_double_param(), and params.

Referenced by HCalInner(), HCalOuter(), PHG4CylinderSubsystem::InitRunSubsystem(), PHG4BlockSubsystem::InitRunSubsystem(), and PHG4ConeSubsystem::Set_eta_range().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FILE_TYPE PHG4DetectorSubsystem::get_filetype ( ) const
inline

Definition at line 54 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 54 of file PHG4DetectorSubsystem.h

References filetype.

Referenced by InitRun().

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::get_int_param ( const std::string &  name) const
std::string PHG4DetectorSubsystem::get_string_param ( const std::string &  name) const

Definition at line 207 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 207 of file PHG4DetectorSubsystem.cc

References PHParameters::get_string_param(), and params.

Referenced by PHG4OHCalSubsystem::InitRunSubsystem(), and PHG4CylinderSubsystem::InitRunSubsystem().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::GetLayer ( ) const
inline

Definition at line 75 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 75 of file PHG4DetectorSubsystem.h

References layer.

Referenced by PHG4ZDCSubsystem::InitRunSubsystem(), PHG4BeamlineMagnetSubsystem::InitRunSubsystem(), BeamLineMagnetSubsystem::InitRunSubsystem(), PHG4ConeSubsystem::InitRunSubsystem(), PHG4CylinderSubsystem::InitRunSubsystem(), PHG4BlockSubsystem::InitRunSubsystem(), PHG4MicromegasSubsystem::InitRunSubsystem(), and PHG4SpacalSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

PHParameters* PHG4DetectorSubsystem::GetParams ( ) const
inline

Definition at line 36 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 36 of file PHG4DetectorSubsystem.h

References params.

Referenced by PHG4EPDSubsystem::InitRunSubsystem(), PHG4OuterHcalSubsystem::InitRunSubsystem(), PHG4OHCalSubsystem::InitRunSubsystem(), PHG4ZDCSubsystem::InitRunSubsystem(), PHG4SpacalPrototype4Subsystem::InitRunSubsystem(), PHG4IHCalSubsystem::InitRunSubsystem(), PHG4InnerHcalSubsystem::InitRunSubsystem(), PHG4Prototype2OuterHcalSubsystem::InitRunSubsystem(), PHG4Prototype3InnerHcalSubsystem::InitRunSubsystem(), PHG4BeamlineMagnetSubsystem::InitRunSubsystem(), PHG4TpcSubsystem::InitRunSubsystem(), BeamLineMagnetSubsystem::InitRunSubsystem(), PHG4Prototype2InnerHcalSubsystem::InitRunSubsystem(), PHG4SpacalPrototypeSubsystem::InitRunSubsystem(), PHG4ConeSubsystem::InitRunSubsystem(), PHG4CylinderSubsystem::InitRunSubsystem(), PHG4BlockSubsystem::InitRunSubsystem(), PHG4TpcEndCapSubsystem::InitRunSubsystem(), PHG4GDMLSubsystem::InitRunSubsystem(), G4Example02Subsystem::InitRunSubsystem(), PHG4MicromegasSubsystem::InitRunSubsystem(), G4Example03Subsystem::InitRunSubsystem(), PHG4SpacalSubsystem::InitRunSubsystem(), PHG4BbcSubsystem::InitRunSubsystem(), PHG4OuterHcalSubsystem::Print(), PHG4OHCalSubsystem::Print(), PHG4IHCalSubsystem::Print(), PHG4InnerHcalSubsystem::Print(), PHG4Prototype2OuterHcalSubsystem::Print(), PHG4Prototype3InnerHcalSubsystem::Print(), PHG4Prototype2InnerHcalSubsystem::Print(), BeamLineMagnetSubsystem::Print(), PHG4TpcSubsystem::Print(), PHG4BeamlineMagnetSubsystem::Print(), PHG4CylinderSubsystem::Print(), PHG4SpacalPrototype4Subsystem::Print(), PHG4SpacalPrototypeSubsystem::Print(), PHG4GDMLSubsystem::Print(), and PHG4BbcSubsystem::Print().

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::Init ( PHCompositeNode )
finalvirtual

Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).

Reimplemented from SubsysReco.

Definition at line 31 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 31 of file PHG4DetectorSubsystem.cc

References InitSubsystem(), Fun4AllBase::Name(), params, savetopNode, and PHParameters::set_name().

+ Here is the call graph for this function:

void PHG4DetectorSubsystem::InitializeParameters ( )
protected

Definition at line 274 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 274 of file PHG4DetectorSubsystem.cc

References default_double, default_int, default_string, params, set_default_int_param(), PHParameters::set_double_param(), PHParameters::set_int_param(), PHParameters::set_string_param(), and SetDefaultParameters().

Referenced by BeamLineMagnetSubsystem::BeamLineMagnetSubsystem(), G4Example02Subsystem::G4Example02Subsystem(), G4Example03Subsystem::G4Example03Subsystem(), PHG4BbcSubsystem::PHG4BbcSubsystem(), PHG4BeamlineMagnetSubsystem::PHG4BeamlineMagnetSubsystem(), PHG4BlockSubsystem::PHG4BlockSubsystem(), PHG4ConeSubsystem::PHG4ConeSubsystem(), PHG4CylinderSubsystem::PHG4CylinderSubsystem(), PHG4EPDSubsystem::PHG4EPDSubsystem(), PHG4GDMLSubsystem::PHG4GDMLSubsystem(), PHG4IHCalSubsystem::PHG4IHCalSubsystem(), PHG4InnerHcalSubsystem::PHG4InnerHcalSubsystem(), PHG4MicromegasSubsystem::PHG4MicromegasSubsystem(), PHG4OHCalSubsystem::PHG4OHCalSubsystem(), PHG4OuterHcalSubsystem::PHG4OuterHcalSubsystem(), PHG4Prototype2InnerHcalSubsystem::PHG4Prototype2InnerHcalSubsystem(), PHG4Prototype2OuterHcalSubsystem::PHG4Prototype2OuterHcalSubsystem(), PHG4Prototype3InnerHcalSubsystem::PHG4Prototype3InnerHcalSubsystem(), PHG4SpacalPrototype4Subsystem::PHG4SpacalPrototype4Subsystem(), PHG4SpacalPrototypeSubsystem::PHG4SpacalPrototypeSubsystem(), PHG4SpacalSubsystem::PHG4SpacalSubsystem(), PHG4TpcEndCapSubsystem::PHG4TpcEndCapSubsystem(), PHG4TpcSubsystem::PHG4TpcSubsystem(), and PHG4ZDCSubsystem::PHG4ZDCSubsystem().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::InitRun ( PHCompositeNode )
finalvirtual

Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.

Reimplemented from SubsysReco.

Definition at line 39 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 39 of file PHG4DetectorSubsystem.cc

References PHCompositeNode::addNode(), PHParametersContainer::AddPHParameters(), beginrunexecuted, PHG4Subsystem::DefineMaterials(), PHParameters::FillFrom(), PHNodeIterator::findFirst(), get_filetype(), InitRunSubsystem(), layer, m_Domain, Fun4AllBase::Name(), PHParameters::Name(), none, params, paramscontainer, PdbParameterMapContainer::print(), ReadDB(), ReadParamsFromCDB(), ReadParamsFromDB(), ReadParamsFromFile(), PHParameters::SaveToNodeTree(), SuperDetector(), superdetector, PHParameters::UpdateNodeTree(), UpdateParametersWithMacro(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

virtual int PHG4DetectorSubsystem::InitSubsystem ( PHCompositeNode )
inlinevirtual

Definition at line 31 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 31 of file PHG4DetectorSubsystem.h

Referenced by Init().

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::OverlapCheck ( const bool  chk = true)
inline

Definition at line 33 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 33 of file PHG4DetectorSubsystem.h

References overlapcheck.

Referenced by BeamLineDefineBeamPipe(), BeamLineDefineMagnets(), BlackHole(), CEmc_1DProjectiveSpacal(), CEmc_2DProjectiveSpacal(), ConstructGeometry(), DIRCSetup(), EPD(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_G4_TPC(), Fun4All_G4_W(), G4Setup(), HCalInner(), HCalOuter(), IRSetup(), Magnet(), make_piston(), Mbd(), Pipe(), PlugDoor(), TPC(), TPC_Endcaps(), and ZDCSetup().

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::ReadDB ( ) const
inline

Definition at line 47 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 47 of file PHG4DetectorSubsystem.h

References usedb.

Referenced by InitRun().

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::ReadParamsFromCDB ( const std::string &  domain)

Definition at line 413 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 413 of file PHG4DetectorSubsystem.cc

References params, and PHParameters::ReadFromCDB().

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::ReadParamsFromDB ( const std::string &  name,
const int  issuper 
)

Definition at line 316 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 316 of file PHG4DetectorSubsystem.cc

References layer, params, and PHParameters::ReadFromDB().

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::ReadParamsFromFile ( const std::string &  name,
const FILE_TYPE  ftyp,
const int  issuper 
)

Definition at line 365 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 365 of file PHG4DetectorSubsystem.cc

References calibfiledir, extension, layer, params, PHWHERE, PHParameters::ReadFromFile(), root, and xml.

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int PHG4DetectorSubsystem::SaveParamsToDB ( )

Definition at line 298 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 298 of file PHG4DetectorSubsystem.cc

References params, paramscontainer, PHParametersContainer::WriteToDB(), and PHParameters::WriteToDB().

+ Here is the call graph for this function:

int PHG4DetectorSubsystem::SaveParamsToFile ( const FILE_TYPE  ftyp)

Definition at line 334 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 334 of file PHG4DetectorSubsystem.cc

References calibfiledir, extension, params, paramscontainer, PHWHERE, root, PHParametersContainer::WriteToFile(), PHParameters::WriteToFile(), and xml.

+ Here is the call graph for this function:

void PHG4DetectorSubsystem::set_default_double_param ( const std::string &  name,
const double  dval 
)
protected
void PHG4DetectorSubsystem::set_double_param ( const std::string &  name,
const double  dval 
)

Definition at line 150 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 150 of file PHG4DetectorSubsystem.cc

References default_double, dparams, and perf_headwind::name.

Referenced by BeamLineDefineBeamPipe(), BeamLineDefineMagnets(), BlackHole(), CEmc_1DProjectiveSpacal(), CEmc_2DProjectiveSpacal(), CEmcAlbedo(), ConstructGeometry(), DIRCSetup(), Fun4All_G4_block(), Fun4All_G4_Calos(), Fun4All_G4_Cylinder(), Fun4All_G4_Example02(), Fun4All_G4_Example03(), Fun4All_G4_IonGun(), Fun4All_G4_LeadBrick(), Fun4All_G4_Momentum(), Fun4All_G4_Momentum_Projection(), Fun4All_G4_Momentum_Projection_Calorimeters(), Fun4All_G4_Momentum_Projection_Detectors(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_G4_TPC(), Fun4All_G4_W(), G4Setup(), HCalInner(), HCalInner_SupportRing(), HCalOuter(), IRSetup(), Magnet(), make_piston(), Pipe(), PlugDoor(), PHG4ConeSubsystem::Set_eta_range(), PHG4Prototype2InnerHcalSubsystem::SetLightCorrection(), PHG4Prototype3InnerHcalSubsystem::SetLightCorrection(), PHG4OHCalSubsystem::SetLightCorrection(), PHG4Prototype2OuterHcalSubsystem::SetLightCorrection(), PHG4OuterHcalSubsystem::SetLightCorrection(), PHG4InnerHcalSubsystem::SetLightCorrection(), PHG4IHCalSubsystem::SetLightCorrection(), PHG4ConeSubsystem::SetPhi(), PHG4ConeSubsystem::SetPlace(), PHG4ConeSubsystem::SetPlaceZ(), PHG4ConeSubsystem::SetR1(), PHG4ConeSubsystem::SetR2(), PHG4ConeSubsystem::SetZlength(), PHG4ConeSubsystem::SetZRot(), Svtx(), TPC(), and ZDCSetup().

void PHG4DetectorSubsystem::set_int_param ( const std::string &  name,
const int  ival 
)

Definition at line 171 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 171 of file PHG4DetectorSubsystem.cc

References default_int, iparams, and perf_headwind::name.

Referenced by CEmc_2DProjectiveSpacal(), ConstructGeometry(), DIRCSetup(), Fun4All_G4_IonGun(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_G4_W(), G4Setup(), HCalInner(), HCalInner_SupportRing(), HCalOuter(), IRSetup(), Magnet(), make_piston(), Pipe(), Svtx(), and TPC().

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::SetAbsorberActive ( const int  i = 1)

Definition at line 393 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 393 of file PHG4DetectorSubsystem.cc

References i, and iparams.

Referenced by BeamLineDefineMagnets(), CEmc_1DProjectiveSpacal(), CEmc_2DProjectiveSpacal(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), Fun4All_G4_Prototype4(), Fun4All_G4_TPC(), HCalInner(), HCalOuter(), TPC(), and ZDCSetup().

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::SetAbsorberTruth ( const int  i = 1)

Definition at line 408 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 408 of file PHG4DetectorSubsystem.cc

References i, and iparams.

Referenced by Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), and Fun4All_G4_Prototype4().

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::SetCalibrationFileDir ( const std::string &  calibdir)
inline

Definition at line 62 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 62 of file PHG4DetectorSubsystem.h

References calibfiledir.

Referenced by CEmc_2DProjectiveSpacal(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), and Fun4All_G4_Prototype4().

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::SetSupportActive ( const int  i = 1)

Definition at line 398 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 398 of file PHG4DetectorSubsystem.cc

References i, and iparams.

Referenced by Mbd(), and ZDCSetup().

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::UpdateParametersWithMacro ( )

Definition at line 212 of file PHG4DetectorSubsystem.cc.

View newest version in sPHENIX GitHub at line 212 of file PHG4DetectorSubsystem.cc

References cparams, dparams, iparams, params, PHParameters::set_double_param(), PHParameters::set_int_param(), and PHParameters::set_string_param().

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::UseCalibFiles ( const FILE_TYPE  ftyp)
inline

Definition at line 56 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 56 of file PHG4DetectorSubsystem.h

References filetype.

Referenced by CEmc_2DProjectiveSpacal(), Fun4All_G4_Prototype2(), Fun4All_G4_Prototype3(), and Fun4All_G4_Prototype4().

+ Here is the caller graph for this function:

void PHG4DetectorSubsystem::UseCDB ( const std::string &  domain)
inline

Definition at line 48 of file PHG4DetectorSubsystem.h.

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

References m_Domain, and usedb.

void PHG4DetectorSubsystem::UseDB ( const int  i = 1)
inline

Definition at line 46 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 46 of file PHG4DetectorSubsystem.h

References i, and usedb.

Member Data Documentation

int PHG4DetectorSubsystem::beginrunexecuted = 0
private

Definition at line 95 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 95 of file PHG4DetectorSubsystem.h

Referenced by BeginRunExecuted(), and InitRun().

std::string PHG4DetectorSubsystem::calibfiledir = "./"
private

Definition at line 98 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 98 of file PHG4DetectorSubsystem.h

Referenced by ReadParamsFromFile(), SaveParamsToFile(), and SetCalibrationFileDir().

std::map<const std::string, std::string> PHG4DetectorSubsystem::cparams
private

Definition at line 103 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 103 of file PHG4DetectorSubsystem.h

Referenced by set_string_param(), and UpdateParametersWithMacro().

std::map<const std::string, double> PHG4DetectorSubsystem::default_double
private

Definition at line 105 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 105 of file PHG4DetectorSubsystem.h

Referenced by InitializeParameters(), set_default_double_param(), and set_double_param().

std::map<const std::string, int> PHG4DetectorSubsystem::default_int
private

Definition at line 106 of file PHG4DetectorSubsystem.h.

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

Referenced by InitializeParameters(), set_default_int_param(), and set_int_param().

std::map<const std::string, std::string> PHG4DetectorSubsystem::default_string
private

Definition at line 107 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 107 of file PHG4DetectorSubsystem.h

Referenced by InitializeParameters(), set_default_string_param(), and set_string_param().

std::map<const std::string, double> PHG4DetectorSubsystem::dparams
private

Definition at line 101 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 101 of file PHG4DetectorSubsystem.h

Referenced by set_double_param(), and UpdateParametersWithMacro().

FILE_TYPE PHG4DetectorSubsystem::filetype = PHG4DetectorSubsystem::none
private

Definition at line 96 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 96 of file PHG4DetectorSubsystem.h

Referenced by get_filetype(), and UseCalibFiles().

std::map<const std::string, int> PHG4DetectorSubsystem::iparams
private

Definition at line 102 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 102 of file PHG4DetectorSubsystem.h

Referenced by BlackHole(), set_int_param(), SetAbsorberActive(), SetAbsorberTruth(), SetActive(), SetSupportActive(), and UpdateParametersWithMacro().

int PHG4DetectorSubsystem::layer = -1
private

Definition at line 93 of file PHG4DetectorSubsystem.h.

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

Referenced by GetLayer(), InitRun(), ReadParamsFromDB(), and ReadParamsFromFile().

std::string PHG4DetectorSubsystem::m_Domain
private

Definition at line 99 of file PHG4DetectorSubsystem.h.

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

Referenced by InitRun(), and UseCDB().

bool PHG4DetectorSubsystem::overlapcheck = false
private

Definition at line 92 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 92 of file PHG4DetectorSubsystem.h

Referenced by CheckOverlap(), and OverlapCheck().

PHParametersContainer* PHG4DetectorSubsystem::paramscontainer = nullptr
private

Definition at line 90 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 90 of file PHG4DetectorSubsystem.h

Referenced by InitRun(), SaveParamsToDB(), and SaveParamsToFile().

PHCompositeNode* PHG4DetectorSubsystem::savetopNode = nullptr
private

Definition at line 91 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 91 of file PHG4DetectorSubsystem.h

Referenced by Init().

std::string PHG4DetectorSubsystem::superdetector = "NONE"
private

Definition at line 97 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 97 of file PHG4DetectorSubsystem.h

Referenced by InitRun(), and SuperDetector().

int PHG4DetectorSubsystem::usedb = 0
private

Definition at line 94 of file PHG4DetectorSubsystem.h.

View newest version in sPHENIX GitHub at line 94 of file PHG4DetectorSubsystem.h

Referenced by ReadDB(), UseCDB(), and UseDB().


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