1 #ifndef PHG4DetectorGroupSubsystem_h
2 #define PHG4DetectorGroupSubsystem_h
41 void set_double_param(
const int detid,
const std::string &name,
const double dval);
43 void set_int_param(
const int detid,
const std::string &name,
const int ival);
44 int get_int_param(
const int detid,
const std::string &name)
const;
45 void set_string_param(
const int detid,
const std::string &name,
const std::string &sval);
46 std::string
get_string_param(
const int detid,
const std::string &name)
const;
48 void UseDB(
const int i = 1) { usedb = i; }
59 void SetActive(
const int detid,
const int i = 1);
62 void BlackHole(
const int detid,
const int i = 1);
73 void AddDetId(
const int i) { layers.insert(i); }
74 std::pair<std::set<int>::const_iterator, std::set<int>::const_iterator>
GetDetIds()
const
76 return std::make_pair(layers.begin(), layers.end());
94 std::string superdetector;
95 std::string calibfiledir;
99 std::map<int, std::map<const std::string, double>> dparams;
100 std::map<int, std::map<const std::string, int>> iparams;
101 std::map<int, std::map<const std::string, std::string>> cparams;
103 std::map<int, std::map<const std::string, double>> default_double;
104 std::map<int, std::map<const std::string, int>> default_int;
105 std::map<int, std::map<const std::string, std::string>> default_string;
void SetCalibrationFileDir(const std::string &calibdir)
void PrintDefaultParams() const
void UseDB(const int i=1)
bool CheckOverlap() const
FILE_TYPE get_filetype() const
int ReadParamsFromDB(const std::string &name, const int issuper)
void UpdateParametersWithMacro()
void set_double_param(const int detid, const std::string &name, const double dval)
std::pair< std::set< int >::const_iterator, std::set< int >::const_iterator > GetDetIds() const
int SaveParamsToFile(const FILE_TYPE ftyp)
void BlackHole(const int detid, const int i=1)
void SetAbsorberTruth(const int detid, const int i=1)
double get_double_param(const int detid, const std::string &name) const
void set_int_param(const int detid, const std::string &name, const int ival)
void SetAbsorberActive(const int detid, const int i=1)
void AddDetId(const int i)
const std::string SuperDetector() const
virtual void SetDefaultParameters()=0
void set_default_double_param(const int detid, const std::string &name, const double dval)
void UseCalibFiles(const FILE_TYPE ftyp)
virtual ~PHG4DetectorGroupSubsystem()
PHG4DetectorGroupSubsystem(const std::string &name="GenericSubsystem", const int lyr=0)
int get_int_param(const int detid, const std::string &name) const
PHG4ParametersContainer * GetParamsContainer() const
void InitializeParameters()
int InitRun(PHCompositeNode *) final
int ReadParamsFromFile(const std::string &name, const FILE_TYPE ftyp, const int issuper)
void set_default_int_param(const int detid, const std::string &name, const int ival)
std::string get_string_param(const int detid, const std::string &name) const
virtual int InitRunSubsystem(PHCompositeNode *)
void SetActive(const int detid, const int i=1)
void set_default_string_param(const int detid, const std::string &name, const std::string &sval)
void set_string_param(const int detid, const std::string &name, const std::string &sval)
virtual int InitSubsystem(PHCompositeNode *)
void OverlapCheck(const bool chk=true)
int BeginRunExecuted() const
int Init(PHCompositeNode *) final
void PrintMacroParams() const