3 #include <bbc/MbdOut.h>
4 #include <bbc/MbdPmtContainer.h>
5 #include <bbc/MbdGeom.h>
6 #include <bbc/MbdPmtHit.h>
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");
73 std::cout <<
"mbdAnalysis::InitRun(PHCompositeNode *topNode) Initializing for Run XXX" << std::endl;
88 MbdPmtContainer *mbdpmts = findNode::getClass<MbdPmtContainer>(topNode,
"MbdPmtContainer");
91 std::cout <<
"makeMBDTrees::process_event: Could not find MbdPmtContainer, aborting" << std::endl;
96 MbdGeom *mbdgeom = findNode::getClass<MbdGeom>(topNode,
"MbdGeom");
101 int nPMTs = mbdpmts -> get_npmt();
102 for(
int i = 0;
i < nPMTs;
i++)
135 std::cout <<
"phi angle of pmt is mbdgeom->get_phi(i)): " << mbdgeom->
get_phi(
i) << std::endl;
147 std::cout <<
"mbdAnalysis::ResetEvent(PHCompositeNode *topNode) Resetting internal structures, prepare for next event" << std::endl;
154 std::cout <<
"mbdAnalysis::EndRun(const int runnumber) Ending Run for Run " << runnumber << std::endl;
161 std::cout <<
"mbdAnalysis::End(PHCompositeNode *topNode) This is the End..." << std::endl;
189 std::cout <<
"mbdAnalysis::Print(const std::string &what) const Printing info for " << what << std::endl;