Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members
PisaDriver.C
Go to the documentation of this file.00001 #include "PisaDriver.h" 00002 00003 #include "PHCompositeNode.h" 00004 #include "PisaServer.h" 00005 00006 //_____________________________________________________________________________ 00007 PisaDriver::PisaDriver() 00008 : SubsysReco("PisaDriver") 00009 { 00010 } 00011 00012 //_____________________________________________________________________________ 00013 PisaDriver::~PisaDriver() 00014 { 00015 } 00016 00017 //_____________________________________________________________________________ 00018 int 00019 PisaDriver::End(PHCompositeNode*) 00020 { 00021 // Called at the end of all processing. 00022 PisaServer::instance()->FinishRun(); 00023 return 0; 00024 } 00025 00026 //_____________________________________________________________________________ 00027 int 00028 PisaDriver::EndRun(const int /*runnumber*/) 00029 { 00030 // Called at the end of each run. 00031 return 0; 00032 } 00033 00034 //_____________________________________________________________________________ 00035 int 00036 PisaDriver::Init(PHCompositeNode* topnode) 00037 { 00038 // Called during initialization. 00039 // Typically this is where you can book histograms, and e.g. 00040 // register them to Fun4AllServer (so they can be output to file 00041 // using Fun4AllServer::dumpHistos() method). 00042 00043 // Initialize the PisaServer with our topnode. 00044 00045 PisaServer::instance()->Init(topnode); 00046 00047 return 0; 00048 } 00049 00050 //_____________________________________________________________________________ 00051 int 00052 PisaDriver::InitRun(PHCompositeNode*) 00053 { 00054 // Called for first event when run number is known. 00055 // Typically this is where you may want to fetch data from 00056 // database, because you know the run number. 00057 return 0; 00058 } 00059 00060 //_____________________________________________________________________________ 00061 int 00062 PisaDriver::process_event(PHCompositeNode* topnode) 00063 { 00064 // Called for each event 00065 // This is where you do the real work 00066 00067 PisaServer::instance()->process_event(topnode); 00068 00069 return 0; 00070 } 00071 00072 //_____________________________________________________________________________ 00073 void 00074 PisaDriver::registerDevice(PisaDevice* device) 00075 { 00076 PisaServer::instance()->registerDevice(device); 00077 } 00078 00079 //_____________________________________________________________________________ 00080 int 00081 PisaDriver::Reset(PHCompositeNode*) 00082 { 00083 return 0; 00084 } 00085 00086 //_____________________________________________________________________________ 00087 int 00088 PisaDriver::ResetEvent(PHCompositeNode*) 00089 { 00090 return 0; 00091 } 00092 00093 //_____________________________________________________________________________ 00094 void 00095 PisaDriver::Print(const char* /*what*/) const 00096 { 00097 } 00098 00099 //_____________________________________________________________________________ 00100 void 00101 PisaDriver::Verbosity(const int ival) 00102 { 00103 SubsysReco::Verbosity(ival); 00104 PisaServer::instance()->verbosity(ival); 00105 } 00106 00107 00108 00109