25 #include <TLorentzVector.h>
38 std::cout <<
"mbdAnalysis::mbdAnalysis(const std::string &name) Calling ctor" << std::endl;
44 std::cout <<
"mbdAnalysis::~mbdAnalysis() Calling dtor" << std::endl;
51 out =
new TFile(
"output.root",
"RECREATE");
53 T =
new TTree(
"T",
"T");
70 std::cout <<
"mbdAnalysis::InitRun(PHCompositeNode *topNode) Initializing for Run XXX" << std::endl;
79 MbdPmtContainer *bbcpmts = findNode::getClass<MbdPmtContainer>(topNode,
"MbdPmtContainer");
82 std::cout <<
"makeMBDTrees::process_event: Could not find MbdPmtContainer, aborting" << std::endl;
87 MbdGeom *mbdgeom = findNode::getClass<MbdGeom>(topNode,
"MbdGeom");
90 std::cout <<
"makeMBDTrees::process_event: Could not find MbdGeom, aborting" << std::endl;
94 int nPMTs = bbcpmts -> get_npmt();
95 for(
int i = 0;
i < nPMTs;
i++)
101 pmttime.push_back(mbdpmt -> get_time());
132 std::cout <<
"mbdAnalysis::EndRun(const int runnumber) Ending Run for Run " << runnumber << std::endl;
139 std::cout <<
"mbdAnalysis::End(PHCompositeNode *topNode) This is the End..." << std::endl;
165 std::cout <<
"mbdAnalysis::Print(const std::string &what) const Printing info for " << what << std::endl;