2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
4 #include <TSQLServer.h>
5 #include <TSQLResult.h>
8 R__LOAD_LIBRARY(libg4detectors)
11 #define LogDebug(exp) std::cout<<"DEBUG: " <<__FILE__<<": "<<__LINE__<<": "<< exp << std::endl
22 vector<string> sim_list = geom_svc->getDefaultSimList();
24 for(
int i=0; i<sim_list.size(); ++i){
25 string name = sim_list[i];
38 string material = geom_svc->getPlaneMaterial(
id);
45 <<
" {" << size[0] <<
", " << size[1] <<
", " << size[2] <<
"} "
46 <<
" {" << place[0] <<
", " << place[1] <<
", " << place[2] <<
"} "
47 <<
" {" << rot[0] <<
", " << rot[1] <<
", " << rot[2] <<
"} "
52 if(!(fabs(size[0])<10000))
continue;
53 if(place[2]>680 && place[2]<700)
continue;
int verbosity
The verbosity level. 0 means not verbose at all.
void SetupSensitiveDetectors(PHG4Reco *g4Reco, bool toggle_dphodo=true, bool toggle_dc1=false, std::string chamberGas="SQ_ArCO2", std::string hodoMat="SQ_Scintillator", const int verbosity=0)
double getDetectorY0(const std::string detectorName) const
void SuperDetector(const std::string &name)
void set_double_param(const std::string &name, const double dval)
double getDetectorX0(const std::string detectorName) const
double getPlaneScaleX(int detectorID)
void set_string_param(const std::string &name, const std::string &sval)
double getPlaneScaleZ(int detectorID)
double getPlaneScaleY(int detectorID)
static GeomSvc * instance()
singlton instance
int getDetectorID(const std::string &detectorName) const
Get the plane position.
void SetActive(const int i=1)
void registerSubsystem(PHG4Subsystem *subsystem)
register subsystem
double getDetectorZ0(const std::string detectorName) const