1#include "GaudiKernel/MsgStream.h"
12#include "DedxCalibAlg/DedxSaveWireGain.h"
17 declareProperty(
"PMin", pMin=0.2);
18 declareProperty(
"PMax", pMax=2.3);
19 f_save =
new TFile(
"wiregain.root",
"recreate");
20 m_wiregain =
new TTree(
"wiregain",
"wiregain");
26 MsgStream log(
msgSvc(), name());
27 log<<MSG::INFO<<
"DedxSaveWireGain::BookHists()"<<endreq;
34 MsgStream log(
msgSvc(), name());
35 log<<MSG::INFO<<
"DedxSaveWireGain::FillHists()"<<endreq;
38 m_wiregain->Branch(
"run", &run,
"run/I");
39 m_wiregain->Branch(
"evt", &evt,
"evt/I");
40 m_wiregain->Branch(
"gain", &gain,
"gain/D");
47 float runNO=0,evtNO=0,runFlag=0,pathlength=0,wid=0,layid=0,dd_in=0,driftdist=0,eangle=0,zhit=0,
costheta=0,tes=0,
ptrk=0;
52 cout<<
"runlist: "<<runlist.c_str()<<endl;
53 f =
new TFile(runlist.c_str());
54 n102 = (TTree*)
f->Get(
"n102");
68 n102->SetBranchAddress(
"ptrk1",&
ptrk);
70 cout <<
"entries in this file" << n102->GetEntries() << endl;
71 for(
int j=0;j<n102->GetEntries();j++)
74 if(tes>1400)
continue;
80 dedx =
exsvc->
StandardHitCorrec(0,runFlag,2,runNO,evtNO,pathlength,wid,layid,dedx,dd_in,eangle,
costheta);
data SetBranchAddress("time",&time)
#define Iner_DriftDistCut
vector< string > m_recFileVector
DedxSaveWireGain(const std::string &name, ISvcLocator *pSvcLocator)
virtual double StandardHitCorrec(int calib_rec_Flag, int runFlag, int ntpFlag, int runNO, int evtNO, double pathl, int wid, int layid, double adc, double dd, double eangle, double costheta) const =0
virtual double StandardTrackCorrec(int calib_rec_Flag, int typFlag, int ntpFlag, int runNO, int evtNO, double ex, double costheta, double t0) const =0
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")