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