#include #include #include #include using namespace std; #include // These are defined in copytoplusplus.cc extern string INFILE; extern string OUTFILE; extern bool POSTSMEAR; extern string MCSMEAROPTS; extern bool DELETEUNSMEARED; // Defined in calibDB.cc extern string HDDS_XML; // Declare routines callable from FORTRAN extern "C" int hdgeant_(void); // define in hdgeant_f.F extern "C" void init_runtime_xml_(void); // defined in dl_routines.cc extern "C" const char* GetMD5Geom(void); // defined in calibDB.cc void Usage(void); // Get access to FORTRAN common block with some control flags #include "controlparams.h" //------------------ // main //------------------ int main(int narg, char *argv[]) { // This is needed so calibDB.cc can use it to get the // JCalibration object pointer. We want this to be done // in the same way as all other sim-recon software DApplication *dapp = new DApplication(narg, argv); dapp->Init(); // Set some defaults. Note that most defaults related to the // simulation are set in uginit.F controlparams_.runtime_geom = 0; // Parse command line parameters bool print_xml_md5_checksum = false; for(int i=1; i