// Author: David Lawrence June 25, 2004 // // // MyProcessor.cc // #include using namespace std; #include "MyProcessor.h" #include "HDDM/hddm_s.h" #include "CDC/DCDCHit.h" #include "FCAL/DFCALHit.h" //------------------------------------------------------------------ // init -Open output file here (e.g. a ROOT file) //------------------------------------------------------------------ jerror_t MyProcessor::init(void) { // open ROOT file ROOTfile = new TFile("hd_ana.root","RECREATE","Produced by hd_ana"); cout<<"Opened ROOT file \"hd_example.root\""< cdchits; vector fcalhits; eventLoop->Get(cdchits); eventLoop->Get(fcalhits); for(unsigned int i=0;iring; float straw = (float) cdchit->straw; cdc_ring_vs_straw->Fill(straw,ring); } for(unsigned int i=0;iFill(fcalhit->y,fcalhit->x); fcalhitE->Fill(fcalhit->E); } return NOERROR; } //------------------------------------------------------------------ // fini -Close output file here //------------------------------------------------------------------ jerror_t MyProcessor::fini(void) { ROOTfile->Write(); delete ROOTfile; cout<