AtNuResNtuple Class Reference

#include <AtNuResNtuple.h>

List of all members.

Public Member Functions

 AtNuResNtuple ()
 ~AtNuResNtuple ()
void SetEnergyBinning (Int_t nE, Double_t E1, Double_t E2)
void LoadHistograms (const char *filename, Bool_t flag=1)
void SetBayesPrior (AtNuResolutionPrior::AtNuResolutionPrior_t bayesprior)
void CalcResolution (Bool_t yesno=1)
void AddData (const char *file)
void SetFileName (const char *file)
void KeepSpills (Bool_t keepme=1)
void Run (Int_t istart=0, Int_t iend=-1)
void Reset ()

Private Member Functions

void OpenFile ()
void CloseFile ()
void WriteEvent ()

Private Attributes

Int_t run
Int_t subrun
Int_t snarl
Int_t unixtime
Int_t date
Int_t time
Int_t year
Int_t month
Int_t day
Double_t yearfrac
Int_t simflag
Int_t index
Int_t idnu
Int_t idact
Int_t idres
Double_t vtxu
Double_t vtxv
Double_t vtxx
Double_t vtxy
Double_t vtxz
Double_t enu
Double_t pnux
Double_t pnuy
Double_t pnuz
Double_t emu
Double_t pmux
Double_t pmuy
Double_t pmuz
Double_t ehad
Double_t phadx
Double_t phady
Double_t phadz
Int_t goodslice
Int_t goodevent
Int_t goodtrack
Int_t goodshower
Int_t cv
Int_t ce
Int_t up
Int_t dn
Int_t hoz
Int_t updn
Int_t fc
Int_t pc
Int_t fcpc
Int_t pcdn
Int_t pcup
Int_t raf
Int_t cvup
Int_t upmu
Int_t upnu
Int_t veto
Int_t spill
Int_t goodshield
Int_t gooddirection
Int_t goodenergy
Int_t goodenergyfit
Int_t goodcharge
Int_t positivecharge
Int_t negativecharge
Int_t atmosnumu
Int_t atmosnumucv
Int_t atmosnumuup
Int_t atmosnue
Int_t evttrkreco
Double_t evttrkemcharge
Double_t evttrkprange
Double_t evttrkpcurve
Double_t evttrkdiru
Double_t evttrkdirv
Double_t evttrkdirx
Double_t evttrkdiry
Double_t evttrkdirz
Double_t evttrkqpsigmaqp
Int_t evtshwreco
Double_t evtshwdiru
Double_t evtshwdirv
Double_t evtshwdirx
Double_t evtshwdiry
Double_t evtshwdirz
Double_t evtshwgevlin
Double_t evtshwgevdwgt
Double_t evtvtxtime
Double_t evtvtxu
Double_t evtvtxv
Double_t evtvtxx
Double_t evtvtxy
Double_t evtvtxz
Int_t evtvtxplane
Int_t evttrkplanes
Int_t evtshwplanes
Double_t shieldtime
Double_t spilltime
Double_t trueheight
Double_t truesimpleheight
Double_t truemeanheight
Double_t truepdfheight
Double_t truelength
Double_t truesimplelength
Double_t truemeanlength
Double_t truepdflength
Double_t trueemu
Double_t trueeshw
Double_t recolength
Double_t recoemu
Double_t recoemuraw
Double_t recoemuerr
Double_t recoeshwlin
Double_t recoeshwdwgt
Double_t recoeshwdwgtraw
Double_t recoeshwdwgtcorr
Double_t recoeshwnue
Double_t recoeshw
Double_t recoenu
Int_t solaridnu
Int_t solartime
Double_t solarweight
Double_t fluxcvupratio
Double_t fluxelmuratio
Double_t resolution
Int_t lores
Int_t hires1
Int_t hires2
Int_t hires3
Int_t hires4
Bool_t fKeepSpills
Bool_t fCalcResolution
TChain * fChainData
TString fFileName
TFile * fAtNuResFile
TTree * fAtNuResTree
AtNuResolutionfResolution
AtNuResolutionPrior::AtNuResolutionPrior_t fBayesPrior

Detailed Description

Definition at line 13 of file AtNuResNtuple.h.


Constructor & Destructor Documentation

AtNuResNtuple::AtNuResNtuple (  ) 

Definition at line 7 of file AtNuResNtuple.cxx.

References fBayesPrior, fCalcResolution, fChainData, fKeepSpills, fResolution, AtNuResolutionPrior::kNone, and Reset().

00008 {
00009   // resolution bins
00010   fResolution = new AtNuResolution();
00011 
00012   // resolution prior
00013   fBayesPrior = AtNuResolutionPrior::kNone;
00014 
00015   // inputted data
00016   fChainData = new TChain("ntuple","chainData");  
00017 
00018   // keep beam spills
00019   fKeepSpills = 0;
00020 
00021   // calculate resolution
00022   fCalcResolution = 0;
00023 
00024   this->Reset();
00025 }

AtNuResNtuple::~AtNuResNtuple (  ) 

Definition at line 27 of file AtNuResNtuple.cxx.

References fResolution.

00028 {
00029   if( fResolution ) delete fResolution;
00030 }


Member Function Documentation

void AtNuResNtuple::AddData ( const char *  file  ) 

Definition at line 68 of file AtNuResNtuple.cxx.

References fChainData.

00069 {
00070   std::cout << " *** AtNuResNtuple::AddData(...) *** " << std::endl;
00071   std::cout << "   adding file: " << file << std::endl;
00072 
00073   fChainData->Add(file);
00074     
00075   std::cout << "   entries=" << fChainData->GetEntries() << std::endl;
00076 }

void AtNuResNtuple::CalcResolution ( Bool_t  yesno = 1  )  [inline]

Definition at line 25 of file AtNuResNtuple.h.

References fCalcResolution.

00025                                          {
00026     fCalcResolution = yesno;
00027   }

void AtNuResNtuple::CloseFile (  )  [private]

Definition at line 369 of file AtNuResNtuple.cxx.

References fAtNuResFile, fAtNuResTree, and fFileName.

Referenced by Run().

00370 {
00371   std::cout << " *** AtNuResNtuple::CloseFile() *** " << std::endl;
00372 
00373   if( fAtNuResFile ){
00374     std::cout << "   closing file: " << fFileName << std::endl;
00375     TDirectory* tmpd = gDirectory;
00376     fAtNuResFile->cd();
00377     fAtNuResTree->Write();
00378     fAtNuResFile->Close();
00379     gDirectory = tmpd;
00380   }
00381 
00382   return;
00383 }

void AtNuResNtuple::KeepSpills ( Bool_t  keepme = 1  )  [inline]

Definition at line 32 of file AtNuResNtuple.h.

References fKeepSpills.

00032                                       {
00033     fKeepSpills = keepme;
00034   }

void AtNuResNtuple::LoadHistograms ( const char *  filename,
Bool_t  flag = 1 
)

Definition at line 32 of file AtNuResNtuple.cxx.

References fResolution, and AtNuResolution::LoadHistograms().

00033 {
00034   std::cout << " *** AtNuResNtuple::LoadHistograms(...) *** " << std::endl;
00035   
00036   if( fResolution ){
00037     fResolution->LoadHistograms(filename,flag);
00038   }
00039 
00040   return;
00041 } 

void AtNuResNtuple::OpenFile (  )  [private]

Definition at line 227 of file AtNuResNtuple.cxx.

References atmosnue, atmosnumu, atmosnumucv, atmosnumuup, ce, cv, cvup, date, day, dn, ehad, emu, enu, evtshwdiru, evtshwdirv, evtshwdirx, evtshwdiry, evtshwdirz, evtshwgevdwgt, evtshwgevlin, evtshwplanes, evtshwreco, evttrkdiru, evttrkdirv, evttrkdirx, evttrkdiry, evttrkdirz, evttrkemcharge, evttrkpcurve, evttrkplanes, evttrkprange, evttrkqpsigmaqp, evttrkreco, evtvtxplane, evtvtxtime, evtvtxu, evtvtxv, evtvtxx, evtvtxy, evtvtxz, fAtNuResFile, fAtNuResTree, fc, fcpc, fFileName, fluxcvupratio, fluxelmuratio, goodcharge, gooddirection, goodenergy, goodenergyfit, goodevent, goodshield, goodshower, goodslice, goodtrack, hires1, hires2, hires3, hires4, hoz, idact, idnu, idres, index, lores, month, negativecharge, pc, pcdn, pcup, phadx, phady, phadz, pmux, pmuy, pmuz, pnux, pnuy, pnuz, positivecharge, raf, recoemu, recoemuerr, recoemuraw, recoenu, recoeshw, recoeshwdwgt, recoeshwdwgtcorr, recoeshwdwgtraw, recoeshwlin, recoeshwnue, recolength, resolution, run, shieldtime, simflag, snarl, solaridnu, solartime, solarweight, spill, spilltime, subrun, time, trueemu, trueeshw, trueheight, truelength, truemeanheight, truemeanlength, truepdfheight, truepdflength, truesimpleheight, truesimplelength, unixtime, up, updn, upmu, upnu, veto, vtxu, vtxv, vtxx, vtxy, vtxz, year, and yearfrac.

Referenced by Run().

00228 {
00229   std::cout << " *** AtNuResNtuple::OpenFile() *** " << std::endl;
00230 
00231   if( !fAtNuResFile ){
00232     std::cout << "   opening file: " << fFileName.Data() << std::endl;
00233     TDirectory* tmpd = gDirectory;
00234     fAtNuResFile = new TFile(fFileName.Data(),"recreate");
00235     fAtNuResTree = new TTree("ntuple","minos analysis ntuple");
00236     fAtNuResTree->SetDirectory(fAtNuResFile);  
00237     fAtNuResTree->Branch("run",&run,"run/I");
00238     fAtNuResTree->Branch("subrun",&subrun,"subrun/I");
00239     fAtNuResTree->Branch("snarl",&snarl,"snarl/I");
00240     fAtNuResTree->Branch("unixtime",&unixtime,"unixtime/I");  
00241     fAtNuResTree->Branch("date",&date,"date/I");
00242     fAtNuResTree->Branch("time",&time,"time/I");
00243     fAtNuResTree->Branch("year",&year,"year/I");
00244     fAtNuResTree->Branch("month",&month,"month/I");
00245     fAtNuResTree->Branch("day",&day,"day/I");
00246     fAtNuResTree->Branch("yearfrac",&yearfrac,"yearfrac/D");
00247     fAtNuResTree->Branch("simflag",&simflag,"simflag/I");
00248     fAtNuResTree->Branch("index",&index,"index/I");
00249     fAtNuResTree->Branch("mc.inu",&idnu,"idnu/I");
00250     fAtNuResTree->Branch("mc.iact",&idact,"idact/I");
00251     fAtNuResTree->Branch("mc.ires",&idres,"idres/I");
00252     fAtNuResTree->Branch("mc.vtxu",&vtxu,"vtxu/D");
00253     fAtNuResTree->Branch("mc.vtxv",&vtxv,"vtxv/D");
00254     fAtNuResTree->Branch("mc.vtxx",&vtxx,"vtxx/D");
00255     fAtNuResTree->Branch("mc.vtxy",&vtxy,"vtxy/D");
00256     fAtNuResTree->Branch("mc.vtxz",&vtxz,"vtxz/D");
00257     fAtNuResTree->Branch("mc.enu",&enu,"enu/D");
00258     fAtNuResTree->Branch("mc.pnux",&pnux,"pnux/D");
00259     fAtNuResTree->Branch("mc.pnuy",&pnuy,"pnuy/D");
00260     fAtNuResTree->Branch("mc.pnuz",&pnuz,"pnuz/D");
00261     fAtNuResTree->Branch("mc.emu",&emu,"emu/D");
00262     fAtNuResTree->Branch("mc.pmux",&pmux,"pmux/D");
00263     fAtNuResTree->Branch("mc.pmuy",&pmuy,"pmuy/D");
00264     fAtNuResTree->Branch("mc.pmuz",&pmuz,"pmuz/D");
00265     fAtNuResTree->Branch("mc.ehad",&ehad,"ehad/D");
00266     fAtNuResTree->Branch("mc.phadx",&phadx,"phadx/D");
00267     fAtNuResTree->Branch("mc.phady",&phady,"phady/D");
00268     fAtNuResTree->Branch("mc.phadz",&phadz,"phadz/D");
00269     fAtNuResTree->Branch("solar.idnu",&solaridnu,"solaridnu/I");
00270     fAtNuResTree->Branch("solar.time",&solartime,"solartime/I");
00271     fAtNuResTree->Branch("solar.weight",&solarweight,"solarweight/D");    
00272     fAtNuResTree->Branch("flux.cvupratio",&fluxcvupratio,"fluxcvupratio/D");
00273     fAtNuResTree->Branch("flux.elmuratio",&fluxelmuratio,"fluxelmuratio/D");
00274     fAtNuResTree->Branch("evt.shieldtime",&shieldtime,"shieldtime/D");
00275     fAtNuResTree->Branch("evt.spilltime",&spilltime,"spilltime/D");
00276     fAtNuResTree->Branch("evt.goodslice",&goodslice,"goodslice/I");
00277     fAtNuResTree->Branch("evt.goodevent",&goodevent,"goodevent/I");
00278     fAtNuResTree->Branch("evt.goodtrack",&goodtrack,"goodtrack/I");
00279     fAtNuResTree->Branch("evt.goodshower",&goodshower,"goodshower/I");
00280     fAtNuResTree->Branch("evt.cv",&cv,"cv/I");
00281     fAtNuResTree->Branch("evt.ce",&ce,"ce/I");
00282     fAtNuResTree->Branch("evt.up",&up,"up/I");
00283     fAtNuResTree->Branch("evt.dn",&dn,"dn/I");
00284     fAtNuResTree->Branch("evt.hoz",&hoz,"hoz/I");
00285     fAtNuResTree->Branch("evt.updn",&updn,"updn/I");
00286     fAtNuResTree->Branch("evt.fc",&fc,"fc/I");
00287     fAtNuResTree->Branch("evt.pc",&pc,"pc/I");
00288     fAtNuResTree->Branch("evt.fcpc",&fcpc,"fcpc/I");
00289     fAtNuResTree->Branch("evt.raf",&raf,"raf/I");
00290     fAtNuResTree->Branch("evt.pcdn",&pcdn,"pcdn/I");
00291     fAtNuResTree->Branch("evt.pcup",&pcup,"pcup/I");
00292     fAtNuResTree->Branch("evt.cvup",&cvup,"cvup/I");
00293     fAtNuResTree->Branch("evt.upmu",&upmu,"upmu/I");
00294     fAtNuResTree->Branch("evt.upnu",&upnu,"upnu/I");
00295     fAtNuResTree->Branch("evt.veto",&veto,"veto/I");
00296     fAtNuResTree->Branch("evt.spill",&spill,"spill/I");
00297     fAtNuResTree->Branch("evt.goodshield",&goodshield,"goodshield/I");
00298     fAtNuResTree->Branch("evt.gooddirection",&gooddirection,"gooddirection/I");
00299     fAtNuResTree->Branch("evt.goodenergy",&goodenergy,"goodenergy/I");
00300     fAtNuResTree->Branch("evt.goodenergyfit",&goodenergyfit,"goodenergyfit/I");
00301     fAtNuResTree->Branch("evt.goodcharge",&goodcharge,"goodcharge/I");   
00302     fAtNuResTree->Branch("evt.positivecharge",&positivecharge,"positivecharge/I"); 
00303     fAtNuResTree->Branch("evt.negativecharge",&negativecharge,"negativecharge/I"); 
00304     fAtNuResTree->Branch("evt.atmosnumu",&atmosnumu,"atmosnumu/I");      
00305     fAtNuResTree->Branch("evt.atmosnumucv",&atmosnumucv,"atmosnumucv/I");    
00306     fAtNuResTree->Branch("evt.atmosnumuup",&atmosnumuup,"atmosnumuup/I");    
00307     fAtNuResTree->Branch("evt.atmosnue",&atmosnue,"atmosnue/I");
00308     fAtNuResTree->Branch("evt.trkreco",&evttrkreco,"evttrkreco/I");
00309     fAtNuResTree->Branch("evt.trkemcharge",&evttrkemcharge,"evttrkemcharge/D");
00310     fAtNuResTree->Branch("evt.trkprange",&evttrkprange,"evttrkprange/D");
00311     fAtNuResTree->Branch("evt.trkpcurve",&evttrkpcurve,"evttrkpcurve/D");
00312     fAtNuResTree->Branch("evt.trkdiru",&evttrkdiru,"evttrkdiru/D");
00313     fAtNuResTree->Branch("evt.trkdirv",&evttrkdirv,"evttrkdirv/D");
00314     fAtNuResTree->Branch("evt.trkdirx",&evttrkdirx,"evttrkdirx/D");
00315     fAtNuResTree->Branch("evt.trkdiry",&evttrkdiry,"evttrkdiry/D");
00316     fAtNuResTree->Branch("evt.trkdirz",&evttrkdirz,"evttrkdirz/D");
00317     fAtNuResTree->Branch("evt.trkqpsigmaqp",&evttrkqpsigmaqp,"evttrkqpsigmaqp/D");
00318     fAtNuResTree->Branch("evt.shwreco",&evtshwreco,"evtshwreco/I");
00319     fAtNuResTree->Branch("evt.shwdiru",&evtshwdiru,"evtshwdiru/D");
00320     fAtNuResTree->Branch("evt.shwdirv",&evtshwdirv,"evtshwdirv/D");
00321     fAtNuResTree->Branch("evt.shwdirx",&evtshwdirx,"evtshwdirx/D");
00322     fAtNuResTree->Branch("evt.shwdiry",&evtshwdiry,"evtshwdiry/D");
00323     fAtNuResTree->Branch("evt.shwdirz",&evtshwdirz,"evtshwdirz/D");
00324     fAtNuResTree->Branch("evt.shwgevlin",&evtshwgevlin,"evtshwgevlin/D");
00325     fAtNuResTree->Branch("evt.shwgevdwgt",&evtshwgevdwgt,"evtshwgevdwgt/D");
00326     fAtNuResTree->Branch("evt.vtxtime",&evtvtxtime,"evtvtxtime/D");
00327     fAtNuResTree->Branch("evt.vtxu",&evtvtxu,"evtvtxu/D");
00328     fAtNuResTree->Branch("evt.vtxv",&evtvtxv,"evtvtxv/D");
00329     fAtNuResTree->Branch("evt.vtxx",&evtvtxx,"evtvtxx/D");
00330     fAtNuResTree->Branch("evt.vtxy",&evtvtxy,"evtvtxy/D");
00331     fAtNuResTree->Branch("evt.vtxz",&evtvtxz,"evtvtxz/D");
00332     fAtNuResTree->Branch("evt.vtxplane",&evtvtxplane,"evtvtxplane/I");
00333     fAtNuResTree->Branch("evt.trkplanes",&evttrkplanes,"evttrkplanes/I");
00334     fAtNuResTree->Branch("evt.shwplanes",&evtshwplanes,"evtshwplanes/I");
00335     fAtNuResTree->Branch("evt.trueheight",&trueheight,"trueheight/D");
00336     fAtNuResTree->Branch("evt.truesimpleheight",&truesimpleheight,"truesimpleheight/D");
00337     fAtNuResTree->Branch("evt.truemeanheight",&truemeanheight,"truemeanheight/D");
00338     fAtNuResTree->Branch("evt.truepdfheight",&truepdfheight,"truepdfheight/D");
00339     fAtNuResTree->Branch("evt.truelength",&truelength,"truelength/D");
00340     fAtNuResTree->Branch("evt.truesimplelength",&truesimplelength,"truesimplelength/D");
00341     fAtNuResTree->Branch("evt.truemeanlength",&truemeanlength,"truemeanlength/D");
00342     fAtNuResTree->Branch("evt.truepdflength",&truepdflength,"truepdflength/D");
00343     fAtNuResTree->Branch("evt.trueemu",&trueemu,"trueemu/D");
00344     fAtNuResTree->Branch("evt.trueeshw",&trueeshw,"trueeshw/D");
00345     fAtNuResTree->Branch("evt.recolength",&recolength,"recolength/D");
00346     fAtNuResTree->Branch("evt.recoemu",&recoemu,"recoemu/D");
00347     fAtNuResTree->Branch("evt.recoemuraw",&recoemuraw,"recoemuraw/D");
00348     fAtNuResTree->Branch("evt.recoemuerr",&recoemuerr,"recoemuerr/D");
00349     fAtNuResTree->Branch("evt.recoeshwlin",&recoeshwlin,"recoeshwlin/D");
00350     fAtNuResTree->Branch("evt.recoeshwdwgt",&recoeshwdwgt,"recoeshwdwgt/D");
00351     fAtNuResTree->Branch("evt.recoeshwdwgtraw",&recoeshwdwgtraw,"recoeshwdwgtraw/D");
00352     fAtNuResTree->Branch("evt.recoeshwdwgtcorr",&recoeshwdwgtcorr,"recoeshwdwgtcorr/D");
00353     fAtNuResTree->Branch("evt.recoeshwnue",&recoeshwnue,"recoeshwnue/D");
00354     fAtNuResTree->Branch("evt.recoeshw",&recoeshw,"recoeshw/D");
00355     fAtNuResTree->Branch("evt.recoenu",&recoenu,"recoenu/D");
00356     fAtNuResTree->Branch("evt.resolution",&resolution,"resolution/D");
00357     fAtNuResTree->Branch("evt.lores",&lores,"lores/I");
00358     fAtNuResTree->Branch("evt.hires1",&hires1,"hires1/I");
00359     fAtNuResTree->Branch("evt.hires2",&hires2,"hires2/I");
00360     fAtNuResTree->Branch("evt.hires3",&hires3,"hires3/I");
00361     fAtNuResTree->Branch("evt.hires4",&hires4,"hires4/I");
00362     fAtNuResTree->SetAutoSave(30);
00363     gDirectory = tmpd;
00364   }
00365 
00366   return;
00367 }

void AtNuResNtuple::Reset (  ) 

Definition at line 87 of file AtNuResNtuple.cxx.

References atmosnue, atmosnumu, atmosnumucv, atmosnumuup, ce, cv, cvup, date, day, dn, ehad, emu, enu, evtshwdiru, evtshwdirv, evtshwdirx, evtshwdiry, evtshwdirz, evtshwgevdwgt, evtshwgevlin, evtshwplanes, evtshwreco, evttrkdiru, evttrkdirv, evttrkdirx, evttrkdiry, evttrkdirz, evttrkemcharge, evttrkpcurve, evttrkplanes, evttrkprange, evttrkqpsigmaqp, evttrkreco, evtvtxplane, evtvtxtime, evtvtxu, evtvtxv, evtvtxx, evtvtxy, evtvtxz, fAtNuResFile, fAtNuResTree, fc, fChainData, fcpc, fFileName, fluxcvupratio, fluxelmuratio, goodcharge, gooddirection, goodenergy, goodenergyfit, goodevent, goodshield, goodshower, goodslice, goodtrack, hires1, hires2, hires3, hires4, hoz, idact, idnu, idres, index, lores, month, negativecharge, pc, pcdn, pcup, phadx, phady, phadz, pmux, pmuy, pmuz, pnux, pnuy, pnuz, positivecharge, raf, recoemu, recoemuerr, recoemuraw, recoenu, recoeshw, recoeshwdwgt, recoeshwdwgtcorr, recoeshwdwgtraw, recoeshwlin, recoeshwnue, recolength, resolution, run, shieldtime, simflag, snarl, solaridnu, solartime, solarweight, spill, spilltime, subrun, time, trueemu, trueeshw, trueheight, truelength, truemeanheight, truemeanlength, truepdfheight, truepdflength, truesimpleheight, truesimplelength, unixtime, up, updn, upmu, upnu, veto, vtxu, vtxv, vtxx, vtxy, vtxz, year, and yearfrac.

Referenced by AtNuResNtuple().

00088 {
00089   std::cout << " *** AtNuResNtuple::Reset() *** " << std::endl;
00090 
00091   fAtNuResFile = 0;
00092   fAtNuResTree = 0;
00093 
00094   fChainData->Reset();  
00095   fChainData->SetBranchAddress("run",&run);
00096   fChainData->SetBranchAddress("subrun",&subrun);
00097   fChainData->SetBranchAddress("snarl",&snarl);
00098   fChainData->SetBranchAddress("unixtime",&unixtime); 
00099   fChainData->SetBranchAddress("date",&date);
00100   fChainData->SetBranchAddress("time",&time);
00101   fChainData->SetBranchAddress("year",&year);
00102   fChainData->SetBranchAddress("month",&month);
00103   fChainData->SetBranchAddress("day",&day);
00104   fChainData->SetBranchAddress("yearfrac",&yearfrac);
00105   fChainData->SetBranchAddress("simflag",&simflag);
00106   fChainData->SetBranchAddress("index",&index);
00107   fChainData->SetBranchAddress("mc.inu",&idnu);
00108   fChainData->SetBranchAddress("mc.iact",&idact);
00109   fChainData->SetBranchAddress("mc.ires",&idres);  
00110   fChainData->SetBranchAddress("mc.vtxu",&vtxu);
00111   fChainData->SetBranchAddress("mc.vtxv",&vtxv);
00112   fChainData->SetBranchAddress("mc.vtxx",&vtxx);
00113   fChainData->SetBranchAddress("mc.vtxy",&vtxy);
00114   fChainData->SetBranchAddress("mc.vtxz",&vtxz);  
00115   fChainData->SetBranchAddress("mc.enu",&enu);
00116   fChainData->SetBranchAddress("mc.pnux",&pnux);
00117   fChainData->SetBranchAddress("mc.pnuy",&pnuy);
00118   fChainData->SetBranchAddress("mc.pnuz",&pnuz);  
00119   fChainData->SetBranchAddress("mc.emu",&emu);
00120   fChainData->SetBranchAddress("mc.pmux",&pmux);
00121   fChainData->SetBranchAddress("mc.pmuy",&pmuy);
00122   fChainData->SetBranchAddress("mc.pmuz",&pmuz);
00123   fChainData->SetBranchAddress("mc.ehad",&ehad);
00124   fChainData->SetBranchAddress("mc.phadx",&phadx);
00125   fChainData->SetBranchAddress("mc.phady",&phady);
00126   fChainData->SetBranchAddress("mc.phadz",&phadz);
00127   fChainData->SetBranchAddress("solar.idnu",&solaridnu);
00128   fChainData->SetBranchAddress("solar.time",&solartime);
00129   fChainData->SetBranchAddress("solar.weight",&solarweight);  
00130   fChainData->SetBranchAddress("flux.cvupratio",&fluxcvupratio);
00131   fChainData->SetBranchAddress("flux.elmuratio",&fluxelmuratio);
00132   fChainData->SetBranchAddress("evt.shieldtime",&shieldtime);
00133   fChainData->SetBranchAddress("evt.spilltime",&spilltime);
00134   fChainData->SetBranchAddress("evt.goodslice",&goodslice);
00135   fChainData->SetBranchAddress("evt.goodevent",&goodevent);
00136   fChainData->SetBranchAddress("evt.goodtrack",&goodtrack);
00137   fChainData->SetBranchAddress("evt.goodshower",&goodshower);
00138   fChainData->SetBranchAddress("evt.cv",&cv);
00139   fChainData->SetBranchAddress("evt.ce",&ce);
00140   fChainData->SetBranchAddress("evt.up",&up);
00141   fChainData->SetBranchAddress("evt.hoz",&hoz);
00142   fChainData->SetBranchAddress("evt.dn",&dn);
00143   fChainData->SetBranchAddress("evt.updn",&updn);
00144   fChainData->SetBranchAddress("evt.fc",&fc);
00145   fChainData->SetBranchAddress("evt.pc",&pc);
00146   fChainData->SetBranchAddress("evt.fcpc",&fcpc);
00147   fChainData->SetBranchAddress("evt.raf",&raf);
00148   fChainData->SetBranchAddress("evt.pcdn",&pcdn);
00149   fChainData->SetBranchAddress("evt.pcup",&pcup);
00150   fChainData->SetBranchAddress("evt.cvup",&cvup);
00151   fChainData->SetBranchAddress("evt.upmu",&upmu);
00152   fChainData->SetBranchAddress("evt.upnu",&upnu);
00153   fChainData->SetBranchAddress("evt.veto",&veto);
00154   fChainData->SetBranchAddress("evt.spill",&spill);
00155   fChainData->SetBranchAddress("evt.goodshield",&goodshield);
00156   fChainData->SetBranchAddress("evt.gooddirection",&gooddirection);
00157   fChainData->SetBranchAddress("evt.goodenergy",&goodenergy);
00158   fChainData->SetBranchAddress("evt.goodenergyfit",&goodenergyfit);
00159   fChainData->SetBranchAddress("evt.goodcharge",&goodcharge);
00160   fChainData->SetBranchAddress("evt.positivecharge",&positivecharge);
00161   fChainData->SetBranchAddress("evt.negativecharge",&negativecharge);
00162   fChainData->SetBranchAddress("evt.atmosnumu",&atmosnumu);
00163   fChainData->SetBranchAddress("evt.atmosnumucv",&atmosnumucv);
00164   fChainData->SetBranchAddress("evt.atmosnumuup",&atmosnumuup);
00165   fChainData->SetBranchAddress("evt.atmosnue",&atmosnue);
00166   fChainData->SetBranchAddress("evt.trkreco",&evttrkreco);
00167   fChainData->SetBranchAddress("evt.trkemcharge",&evttrkemcharge);
00168   fChainData->SetBranchAddress("evt.trkprange",&evttrkprange);
00169   fChainData->SetBranchAddress("evt.trkpcurve",&evttrkpcurve);
00170   fChainData->SetBranchAddress("evt.trkdiru",&evttrkdiru);
00171   fChainData->SetBranchAddress("evt.trkdirv",&evttrkdirv);
00172   fChainData->SetBranchAddress("evt.trkdirx",&evttrkdirx);
00173   fChainData->SetBranchAddress("evt.trkdiry",&evttrkdiry);
00174   fChainData->SetBranchAddress("evt.trkdirz",&evttrkdirz);
00175   fChainData->SetBranchAddress("evt.trkqpsigmaqp",&evttrkqpsigmaqp);
00176   fChainData->SetBranchAddress("evt.shwreco",&evtshwreco);
00177   fChainData->SetBranchAddress("evt.shwdiru",&evtshwdiru);
00178   fChainData->SetBranchAddress("evt.shwdirv",&evtshwdirv);
00179   fChainData->SetBranchAddress("evt.shwdirx",&evtshwdirx);
00180   fChainData->SetBranchAddress("evt.shwdiry",&evtshwdiry);
00181   fChainData->SetBranchAddress("evt.shwdirz",&evtshwdirz);
00182   fChainData->SetBranchAddress("evt.shwgevlin",&evtshwgevlin);
00183   fChainData->SetBranchAddress("evt.shwgevdwgt",&evtshwgevdwgt);
00184   fChainData->SetBranchAddress("evt.vtxtime",&evtvtxtime);
00185   fChainData->SetBranchAddress("evt.vtxu",&evtvtxu);
00186   fChainData->SetBranchAddress("evt.vtxv",&evtvtxv);
00187   fChainData->SetBranchAddress("evt.vtxx",&evtvtxx);
00188   fChainData->SetBranchAddress("evt.vtxy",&evtvtxy);
00189   fChainData->SetBranchAddress("evt.vtxz",&evtvtxz);
00190   fChainData->SetBranchAddress("evt.vtxplane",&evtvtxplane);
00191   fChainData->SetBranchAddress("evt.trkplanes",&evttrkplanes);
00192   fChainData->SetBranchAddress("evt.shwplanes",&evtshwplanes);
00193   fChainData->SetBranchAddress("evt.trueheight",&trueheight);
00194   fChainData->SetBranchAddress("evt.truesimpleheight",&truesimpleheight);
00195   fChainData->SetBranchAddress("evt.truemeanheight",&truemeanheight);
00196   fChainData->SetBranchAddress("evt.truepdfheight",&truepdfheight);
00197   fChainData->SetBranchAddress("evt.truelength",&truelength);
00198   fChainData->SetBranchAddress("evt.truesimplelength",&truesimplelength);
00199   fChainData->SetBranchAddress("evt.truemeanlength",&truemeanlength);
00200   fChainData->SetBranchAddress("evt.truepdflength",&truepdflength);
00201   fChainData->SetBranchAddress("evt.trueemu",&trueemu);
00202   fChainData->SetBranchAddress("evt.trueeshw",&trueeshw);
00203   fChainData->SetBranchAddress("evt.recolength",&recolength);
00204   fChainData->SetBranchAddress("evt.recoemu",&recoemu);
00205   fChainData->SetBranchAddress("evt.recoemuraw",&recoemuraw);
00206   fChainData->SetBranchAddress("evt.recoemuerr",&recoemuerr);
00207   fChainData->SetBranchAddress("evt.recoeshwlin",&recoeshwlin);
00208   fChainData->SetBranchAddress("evt.recoeshwdwgt",&recoeshwdwgt);
00209   fChainData->SetBranchAddress("evt.recoeshwdwgtraw",&recoeshwdwgtraw);
00210   fChainData->SetBranchAddress("evt.recoeshwdwgtcorr",&recoeshwdwgtcorr);
00211   fChainData->SetBranchAddress("evt.recoeshwnue",&recoeshwnue);
00212   fChainData->SetBranchAddress("evt.recoeshw",&recoeshw);
00213   fChainData->SetBranchAddress("evt.recoenu",&recoenu);
00214   fChainData->SetBranchAddress("evt.resolution",&resolution);  
00215   fChainData->SetBranchAddress("evt.lores",&lores);
00216   fChainData->SetBranchAddress("evt.hires1",&hires1);
00217   fChainData->SetBranchAddress("evt.hires2",&hires2);
00218   fChainData->SetBranchAddress("evt.hires3",&hires3);
00219   fChainData->SetBranchAddress("evt.hires4",&hires4);
00220   std::cout << "   entries=" << fChainData->GetEntries() << std::endl;
00221 
00222   fFileName = "ntpana.root";
00223 
00224   return;
00225 }

void AtNuResNtuple::Run ( Int_t  istart = 0,
Int_t  iend = -1 
)

Definition at line 395 of file AtNuResNtuple.cxx.

References atmosnue, atmosnumu, ce, CloseFile(), evttrkdirx, evttrkdiry, evttrkdirz, fBayesPrior, fc, fCalcResolution, fChainData, fKeepSpills, fResolution, AtNuResolution::GetResolution(), AtNuResolution::GetResolutionType(), goodcharge, gooddirection, goodenergy, goodevent, hires1, hires2, hires3, hires4, index, AtNuResolutionEventType::kCV, AtNuResolutionType::kHiRes1, AtNuResolutionType::kHiRes2, AtNuResolutionType::kHiRes3, AtNuResolutionType::kHiRes4, AtNuResolutionType::kLoRes, AtNuResolutionType::kNone, AtNuResolutionEventType::kNUE, AtNuResolutionEventType::kUPMU, lores, negativecharge, OpenFile(), pc, positivecharge, recoemu, recoemuerr, recoeshwdwgt, resolution, spill, upmu, and WriteEvent().

00396 {
00397   std::cout << " *** AtNuResNtuple::Run(...) *** " << std::endl;
00398 
00399   Int_t fstart = istart;
00400   if( fstart<0 ) fstart = 0;
00401   if( fstart>fChainData->GetEntries() ) fstart = fChainData->GetEntries();
00402 
00403   Int_t fend = iend;
00404   if( fend<0
00405    || fend>fChainData->GetEntries() ) fend = fChainData->GetEntries();
00406 
00407   if( fend<=fstart ){
00408     std::cout << "   no events to run over... [return] " << std::endl;  
00409     return;
00410   }
00411 
00412   std::cout << "   running between [" << fstart << ", " << fend << "] " << std::endl;
00413 
00414   // open output file
00415   // ================
00416   this->OpenFile();
00417 
00418   // loop over events
00419   // ================
00420   for( Int_t i=fstart; i<fend; i++ ){
00421     fChainData->GetEntry(i);
00422 
00423     //
00424     if( i%100==0 ) std::cout << " " << i << "/" << fend << std::endl; 
00425     //
00426 
00427     // event selection
00428     // ===============
00429     if( ( index==0 && goodevent )
00430      && ( !spill || fKeepSpills )
00431      && ( atmosnumu || atmosnue ) ){
00432 
00433       // calculate resolution
00434       // ====================
00435       if( fCalcResolution ){
00436 
00437         // event kinematics
00438         Double_t trkcosx = 0.0; 
00439         Double_t trkcosy = 0.0; 
00440         Double_t trkcosz = 0.0; 
00441         Double_t trkenergy = 0.0;
00442         Double_t trkenergyerr = 0.0;
00443         Double_t shwenergy = 0.0;
00444         Int_t trkcharge = 0;
00445         Bool_t rangecurve = 1;
00446 
00447         if( atmosnue ){  // electron neutrino events
00448           trkenergy = recoemu;
00449           trkenergyerr = recoemuerr;
00450           shwenergy = recoeshwdwgt;
00451         }
00452 
00453         if( atmosnumu ){  // muon neutrino events
00454           trkcosx = evttrkdirx;
00455           trkcosy = evttrkdiry;
00456           trkcosz = evttrkdirz;
00457         
00458           trkenergy = recoemu;
00459           trkenergyerr = recoemuerr;
00460           shwenergy = recoeshwdwgt;
00461           if( ce==0 ) rangecurve = 0;
00462 
00463           trkcharge = 0;
00464           if( goodcharge ){
00465             if( negativecharge ) trkcharge = -1;
00466             if( positivecharge ) trkcharge = +1;
00467           }
00468         }
00469 
00470         // event resolution
00471         AtNuResolutionType::AtNuResolutionType_t resolutiontype = AtNuResolutionType::kNone;
00472       
00473         if( atmosnue ){  
00474           resolution = fResolution->GetResolution(AtNuResolutionEventType::kNUE,
00475                                                   gooddirection,goodenergy,rangecurve,
00476                                                   trkcharge,trkcosx,trkcosy,trkcosz,
00477                                                   trkenergy,trkenergyerr,shwenergy,
00478                                                   fBayesPrior);
00479           resolutiontype = fResolution->GetResolutionType(AtNuResolutionEventType::kNUE,
00480                                                           resolution);
00481         }
00482         else if( atmosnumu && (fc||pc) ){  
00483           resolution = fResolution->GetResolution(AtNuResolutionEventType::kCV,
00484                                                   gooddirection,goodenergy,rangecurve,
00485                                                   trkcharge,trkcosx,trkcosy,trkcosz,
00486                                                   trkenergy,trkenergyerr,shwenergy,
00487                                                   fBayesPrior);
00488           resolutiontype = fResolution->GetResolutionType(AtNuResolutionEventType::kCV,
00489                                                           resolution);
00490         }
00491         else if( atmosnumu && upmu ){  
00492           resolution = fResolution->GetResolution(AtNuResolutionEventType::kUPMU,
00493                                                   gooddirection,goodenergy,rangecurve,
00494                                                   trkcharge,trkcosx,trkcosy,trkcosz,
00495                                                   trkenergy,trkenergyerr,shwenergy,
00496                                                   fBayesPrior);
00497           resolutiontype = fResolution->GetResolutionType(AtNuResolutionEventType::kUPMU,
00498                                                           resolution); 
00499         }
00500         else {
00501           resolution = 999.9;
00502         }
00503 
00504         // resolution type
00505         switch( resolutiontype ){
00506           case AtNuResolutionType::kLoRes:
00507             lores = 1; hires1 = 0; hires2 = 0; hires3 = 0; hires4 = 0; break;
00508           case AtNuResolutionType::kHiRes1:
00509             lores = 0; hires1 = 1; hires2 = 0; hires3 = 0; hires4 = 0; break;
00510           case AtNuResolutionType::kHiRes2:
00511             lores = 0; hires1 = 0; hires2 = 1; hires3 = 0; hires4 = 0; break;
00512           case AtNuResolutionType::kHiRes3:
00513             lores = 0; hires1 = 0; hires2 = 0; hires3 = 1; hires4 = 0; break;
00514           case AtNuResolutionType::kHiRes4:
00515             lores = 0; hires1 = 0; hires2 = 0; hires3 = 0; hires4 = 1; break;
00516           default: 
00517             lores = 0; hires1 = 0; hires2 = 0; hires3 = 0; hires4 = 0; break;
00518         }
00519       }
00520 
00521       // write out event
00522       // ===============
00523       this->WriteEvent();
00524 
00525     }
00526   }  
00527 
00528   // close output file
00529   // =================
00530   this->CloseFile();
00531 
00532   return;
00533 }

void AtNuResNtuple::SetBayesPrior ( AtNuResolutionPrior::AtNuResolutionPrior_t  bayesprior  ) 

Definition at line 59 of file AtNuResNtuple.cxx.

References bfld::AsString(), and fBayesPrior.

00060 {
00061   std::cout << " *** AtNuResNtuple::SetBayesPrior(...) *** " << std::endl;  
00062 
00063   fBayesPrior = bayesprior;
00064 
00065   std::cout << "   bayes prior = " << AtNuResolutionPrior::AsString(fBayesPrior) << std::endl;  
00066 }

void AtNuResNtuple::SetEnergyBinning ( Int_t  nE,
Double_t  E1,
Double_t  E2 
)

Definition at line 43 of file AtNuResNtuple.cxx.

References fResolution, and AtNuResolution::SetEnergyBinning().

00044 {
00045   std::cout << " *** AtNuResNtuple::SetEnergyBinning(...) *** " << std::endl;
00046 
00047   if( nE<=0 ){
00048     std::cout << "   ERROR: need to specify energy binning... [return] " << std::endl;
00049     return;
00050   }
00051 
00052   if( fResolution ){
00053     fResolution->SetEnergyBinning(nE,E1,E2);
00054   }
00055 
00056   return;
00057 }

void AtNuResNtuple::SetFileName ( const char *  file  ) 

Definition at line 78 of file AtNuResNtuple.cxx.

References fFileName.

00079 {
00080   std::cout << " *** AtNuResNtuple::SetFileName(...) *** " << std::endl;
00081 
00082   fFileName = file;
00083 
00084   std::cout << "   output file = " << fFileName.Data() << std::endl;
00085 }

void AtNuResNtuple::WriteEvent (  )  [private]

Definition at line 385 of file AtNuResNtuple.cxx.

References fAtNuResFile, and fAtNuResTree.

Referenced by Run().

00386 {
00387   if( fAtNuResFile ){
00388     TDirectory* tmpd = gDirectory;
00389     fAtNuResFile->cd();
00390     fAtNuResTree->Fill();
00391     gDirectory = tmpd;
00392   }
00393 }


Member Data Documentation

Int_t AtNuResNtuple::atmosnue [private]

Definition at line 108 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::atmosnumu [private]

Definition at line 105 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::atmosnumucv [private]

Definition at line 106 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::atmosnumuup [private]

Definition at line 107 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::ce [private]

Definition at line 82 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::cv [private]

Definition at line 81 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::cvup [private]

Definition at line 93 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::date [private]

Definition at line 49 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::day [private]

Definition at line 53 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::dn [private]

Definition at line 84 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::ehad [private]

Definition at line 73 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::emu [private]

Definition at line 69 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::enu [private]

Definition at line 65 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtshwdiru [private]

Definition at line 120 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtshwdirv [private]

Definition at line 121 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtshwdirx [private]

Definition at line 122 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtshwdiry [private]

Definition at line 123 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtshwdirz [private]

Definition at line 124 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtshwgevdwgt [private]

Definition at line 126 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtshwgevlin [private]

Definition at line 125 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::evtshwplanes [private]

Definition at line 135 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::evtshwreco [private]

Definition at line 119 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evttrkdiru [private]

Definition at line 113 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evttrkdirv [private]

Definition at line 114 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evttrkdirx [private]

Definition at line 115 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Double_t AtNuResNtuple::evttrkdiry [private]

Definition at line 116 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Double_t AtNuResNtuple::evttrkdirz [private]

Definition at line 117 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Double_t AtNuResNtuple::evttrkemcharge [private]

Definition at line 110 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evttrkpcurve [private]

Definition at line 112 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::evttrkplanes [private]

Definition at line 134 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evttrkprange [private]

Definition at line 111 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evttrkqpsigmaqp [private]

Definition at line 118 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::evttrkreco [private]

Definition at line 109 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::evtvtxplane [private]

Definition at line 133 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtvtxtime [private]

Definition at line 127 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtvtxu [private]

Definition at line 128 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtvtxv [private]

Definition at line 129 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtvtxx [private]

Definition at line 130 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtvtxy [private]

Definition at line 131 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::evtvtxz [private]

Definition at line 132 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

TFile* AtNuResNtuple::fAtNuResFile [private]

Definition at line 185 of file AtNuResNtuple.h.

Referenced by CloseFile(), OpenFile(), Reset(), and WriteEvent().

TTree* AtNuResNtuple::fAtNuResTree [private]

Definition at line 186 of file AtNuResNtuple.h.

Referenced by CloseFile(), OpenFile(), Reset(), and WriteEvent().

Definition at line 190 of file AtNuResNtuple.h.

Referenced by AtNuResNtuple(), Run(), and SetBayesPrior().

Int_t AtNuResNtuple::fc [private]

Definition at line 87 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Definition at line 179 of file AtNuResNtuple.h.

Referenced by AtNuResNtuple(), CalcResolution(), and Run().

TChain* AtNuResNtuple::fChainData [private]

Definition at line 181 of file AtNuResNtuple.h.

Referenced by AddData(), AtNuResNtuple(), Reset(), and Run().

Int_t AtNuResNtuple::fcpc [private]

Definition at line 89 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

TString AtNuResNtuple::fFileName [private]

Definition at line 183 of file AtNuResNtuple.h.

Referenced by CloseFile(), OpenFile(), Reset(), and SetFileName().

Bool_t AtNuResNtuple::fKeepSpills [private]

Definition at line 178 of file AtNuResNtuple.h.

Referenced by AtNuResNtuple(), KeepSpills(), and Run().

Double_t AtNuResNtuple::fluxcvupratio [private]

Definition at line 168 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::fluxelmuratio [private]

Definition at line 169 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Definition at line 188 of file AtNuResNtuple.h.

Referenced by AtNuResNtuple(), LoadHistograms(), Run(), SetEnergyBinning(), and ~AtNuResNtuple().

Int_t AtNuResNtuple::goodcharge [private]

Definition at line 102 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Definition at line 99 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::goodenergy [private]

Definition at line 100 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Definition at line 101 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::goodevent [private]

Definition at line 78 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::goodshield [private]

Definition at line 98 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::goodshower [private]

Definition at line 80 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::goodslice [private]

Definition at line 77 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::goodtrack [private]

Definition at line 79 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::hires1 [private]

Definition at line 173 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::hires2 [private]

Definition at line 174 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::hires3 [private]

Definition at line 175 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::hires4 [private]

Definition at line 176 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::hoz [private]

Definition at line 85 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::idact [private]

Definition at line 58 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::idnu [private]

Definition at line 57 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::idres [private]

Definition at line 59 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::index [private]

Definition at line 56 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::lores [private]

Definition at line 172 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::month [private]

Definition at line 52 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Definition at line 104 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::pc [private]

Definition at line 88 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::pcdn [private]

Definition at line 90 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::pcup [private]

Definition at line 91 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::phadx [private]

Definition at line 74 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::phady [private]

Definition at line 75 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::phadz [private]

Definition at line 76 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::pmux [private]

Definition at line 70 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::pmuy [private]

Definition at line 71 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::pmuz [private]

Definition at line 72 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::pnux [private]

Definition at line 66 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::pnuy [private]

Definition at line 67 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::pnuz [private]

Definition at line 68 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Definition at line 103 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::raf [private]

Definition at line 92 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::recoemu [private]

Definition at line 153 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Double_t AtNuResNtuple::recoemuerr [private]

Definition at line 155 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Double_t AtNuResNtuple::recoemuraw [private]

Definition at line 154 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::recoenu [private]

Definition at line 162 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::recoeshw [private]

Definition at line 161 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::recoeshwdwgt [private]

Definition at line 157 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Double_t AtNuResNtuple::recoeshwdwgtcorr [private]

Definition at line 159 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::recoeshwdwgtraw [private]

Definition at line 158 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::recoeshwlin [private]

Definition at line 156 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::recoeshwnue [private]

Definition at line 160 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::recolength [private]

Definition at line 152 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::resolution [private]

Definition at line 171 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::run [private]

Definition at line 45 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::shieldtime [private]

Definition at line 137 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::simflag [private]

Definition at line 55 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::snarl [private]

Definition at line 47 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::solaridnu [private]

Definition at line 164 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::solartime [private]

Definition at line 165 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::solarweight [private]

Definition at line 166 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::spill [private]

Definition at line 97 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Double_t AtNuResNtuple::spilltime [private]

Definition at line 138 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::subrun [private]

Definition at line 46 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::time [private]

Definition at line 50 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::trueemu [private]

Definition at line 150 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::trueeshw [private]

Definition at line 151 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::trueheight [private]

Definition at line 140 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::truelength [private]

Definition at line 145 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::truemeanheight [private]

Definition at line 142 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::truemeanlength [private]

Definition at line 147 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::truepdfheight [private]

Definition at line 143 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::truepdflength [private]

Definition at line 148 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::truesimpleheight [private]

Definition at line 141 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::truesimplelength [private]

Definition at line 146 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::unixtime [private]

Definition at line 48 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::up [private]

Definition at line 83 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::updn [private]

Definition at line 86 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::upmu [private]

Definition at line 94 of file AtNuResNtuple.h.

Referenced by OpenFile(), Reset(), and Run().

Int_t AtNuResNtuple::upnu [private]

Definition at line 95 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::veto [private]

Definition at line 96 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::vtxu [private]

Definition at line 60 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::vtxv [private]

Definition at line 61 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::vtxx [private]

Definition at line 62 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::vtxy [private]

Definition at line 63 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::vtxz [private]

Definition at line 64 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Int_t AtNuResNtuple::year [private]

Definition at line 51 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().

Double_t AtNuResNtuple::yearfrac [private]

Definition at line 54 of file AtNuResNtuple.h.

Referenced by OpenFile(), and Reset().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1