NueAnaReader Class Reference

#include <NueAnaReader.h>

List of all members.

Public Member Functions

 NueAnaReader ()
 NueAnaReader (const char *name)
 ~NueAnaReader ()
void SetNueRecord (NueRecord *nr)
Int_t Add (const char *name)
Int_t GetEntry (Int_t srCtr_in)
Int_t GetEntries ()
Bool_t NuePresel ()
Float_t CalculatePOT ()
Float_t CalculatePOT (Int_t filenum, Int_t filetype)
MCNNBestMatchGetBestMatch (Int_t ii)
void SetMaxNumBestMatches (Int_t nbm_in)
Float_t GetfracCC ()
Float_t GetfracCCy (Float_t y_cut)
Float_t Getymean (Float_t y_cut=1.0)
Float_t GetMeanFracQMatched (Float_t y_cut=1.0)
Float_t GetNCymean (Float_t y_cut=1.0)
Float_t GetNCMeanFracQMatched (Float_t y_cut=1.0)
Float_t GetdlnLmean ()
void SetLibraryWeightingFile (char *weightfile_in, char *histname_in)
Float_t GetWeightedfracCC ()
Float_t GetWeightedfracCCy (Float_t y_cut)
Float_t GetWeightedMeanFracQMatched (Float_t y_cut=1.0)
Float_t GetWeightedymean (Float_t y_cut=1.0)

Public Attributes

NueRecordnuerecord
NuePOTnuepot

Private Member Functions

void Setup ()

Private Attributes

TChain * chain
TChain * chain_pot
TH1F * h_weight
Int_t filenum
Int_t num_best_matches
Int_t max_run_nc
Int_t max_run_nue

Static Private Attributes

static const Float_t POT_file_carrot_FD = 2.91*1e20
static const Float_t POT_file_daikon_FD = 6.5*1e20
static const Float_t POT_file_carrot_ND = 1.0024*1e16
static const Float_t POT_file_daikon_ND = 1.936*1e16

Detailed Description

Definition at line 10 of file NueAnaReader.h.


Constructor & Destructor Documentation

NueAnaReader::NueAnaReader (  ) 

Definition at line 21 of file NueAnaReader.cxx.

References chain, chain_pot, h_weight, nuepot, nuerecord, and num_best_matches.

00021                           {
00022 
00023   //Make chains
00024   chain = new TChain("ana_nue");
00025   chain_pot = new TChain("pottree");
00026 
00027   nuerecord = new NueRecord();
00028   nuepot = new NuePOT();
00029 
00030   //defaults
00031   num_best_matches=50;
00032   h_weight=new TH1F();
00033   //weightfile = new TFile("./files/MakeHistosForSpectralReweighting.root","READ");
00034 
00035 }

NueAnaReader::NueAnaReader ( const char *  name  ) 

Definition at line 37 of file NueAnaReader.cxx.

References chain, chain_pot, filenum, h_weight, nuepot, nuerecord, num_best_matches, and Setup().

00037                                           {
00038 
00039   //Make chains
00040   chain = new TChain("ana_nue");
00041   chain_pot = new TChain("pottree");
00042 
00043   filenum=chain->Add(name);
00044   chain_pot->Add(name);
00045 
00046   cout  << "Added " << filenum << " to NueAnaReader" << endl;
00047 
00048   nuerecord = new NueRecord();
00049   nuepot = new NuePOT();
00050 
00051   Setup();
00052 
00053   //defaults
00054   num_best_matches=50;  
00055   h_weight=new TH1F();
00056 
00057 }

NueAnaReader::~NueAnaReader (  ) 

Definition at line 59 of file NueAnaReader.cxx.

References chain, chain_pot, nuepot, and nuerecord.

00059                            {
00060 
00061   delete chain;
00062   delete chain_pot;
00063   delete nuerecord;
00064   delete nuepot;
00065 
00066 }


Member Function Documentation

Int_t NueAnaReader::Add ( const char *  name  ) 

Definition at line 84 of file NueAnaReader.cxx.

References chain, chain_pot, filenum, and Setup().

00084                                        {
00085 
00086   Int_t filenum = chain->Add(name);
00087   cout << "Added " << chain_pot->Add(name) << " to the pottree chain" << endl;
00088   Setup();
00089   return filenum;
00090 
00091 }

Float_t NueAnaReader::CalculatePOT ( Int_t  filenum,
Int_t  filetype 
)

Definition at line 148 of file NueAnaReader.cxx.

References MuELoss::e, POT_file_carrot_FD, POT_file_carrot_ND, POT_file_daikon_FD, and POT_file_daikon_ND.

00148                                                                {
00149 
00150   Float_t pot_out=0;
00151 
00152   if(filetype==0){//<--carrot FD
00153     pot_out=filenum*POT_file_carrot_FD*1e-12;
00154     cout << "Using carrot FD POT" << endl;
00155   }
00156   if(filetype==1){//<--daikon FD
00157     pot_out=filenum*POT_file_daikon_FD*1e-12;
00158     cout << "Using daikon FD POT " << endl;
00159   }
00160   if(filetype==2){//<--carrot ND
00161     pot_out=filenum*POT_file_carrot_ND*1e-12;
00162     cout << "Using carrot ND POT" << endl;
00163   }
00164   if(filetype==3){//<--daikon ND
00165     pot_out=filenum*POT_file_daikon_ND*1e-12;
00166     cout << "Using daikon ND POT " << endl;
00167   }
00168   
00169   return pot_out;
00170 
00171 }

Float_t NueAnaReader::CalculatePOT (  ) 

Definition at line 129 of file NueAnaReader.cxx.

References chain_pot, nuepot, and NuePOT::pot.

00129                                   {
00130 
00131   Int_t srCtr_pot=0;
00132   Float_t pot_out=0;
00133   NuePOT *nuepot = new NuePOT();
00134   chain_pot->SetBranchAddress("NuePOT",&nuepot);
00135 
00136   while(chain_pot->GetEntry(srCtr_pot)){
00137     ++srCtr_pot;
00138     pot_out += nuepot->pot;
00139   }
00140 
00141   delete nuepot;
00142 
00143   return pot_out;
00144 
00145 }

MCNNBestMatch * NueAnaReader::GetBestMatch ( Int_t  ii  ) 

Definition at line 174 of file NueAnaReader.cxx.

References MCNNVars::bmatch, NueRecord::mcnnv, and nuerecord.

Referenced by GetdlnLmean(), GetfracCC(), GetfracCCy(), GetMeanFracQMatched(), GetNCMeanFracQMatched(), GetNCymean(), GetWeightedfracCC(), GetWeightedfracCCy(), GetWeightedMeanFracQMatched(), GetWeightedymean(), and Getymean().

00174                                                  {
00175 
00176   MCNNBestMatch *castedbmatch = 0;
00177   TClonesArray& bmatcharray = *(nuerecord->mcnnv.bmatch);
00178   castedbmatch = dynamic_cast<MCNNBestMatch *>(bmatcharray[ii]);
00179   return castedbmatch;
00180 
00181 
00182 }

Float_t NueAnaReader::GetdlnLmean (  ) 

Definition at line 378 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, MCNNBestMatch::dlnL, GetBestMatch(), MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, and num_best_matches.

00378                                  {
00379   
00380   Int_t nresults=nuerecord->mcnnv.bestmatches;
00381   Float_t mfqm=0;
00382   Int_t matches=0;
00383   Int_t bm=0;
00384 
00385   while(bm<num_best_matches && bm<nresults){
00386     
00387     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00388     
00389     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1){
00390       mfqm += mcnnbm->dlnL;
00391       ++matches;
00392     }
00393     ++bm;
00394   }
00395   
00396   Float_t result=-1;
00397 
00398   if(matches>0){
00399     result=mfqm*1./matches;
00400   }
00401   
00402   return result;
00403 
00404 }

Int_t NueAnaReader::GetEntries (  ) 

Definition at line 101 of file NueAnaReader.cxx.

References chain.

00101                               {
00102 
00103   return chain->GetEntries();
00104 
00105 }

Int_t NueAnaReader::GetEntry ( Int_t  srCtr_in  ) 

Definition at line 94 of file NueAnaReader.cxx.

References chain.

00094                                           {
00095 
00096   return chain->GetEntry(srCtr_in);
00097 
00098 }

Float_t NueAnaReader::GetfracCC (  ) 

Definition at line 192 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, GetBestMatch(), MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, and num_best_matches.

00192                                {
00193 
00194   Int_t nresults=nuerecord->mcnnv.bestmatches;
00195   Int_t match_nue=0;
00196   Int_t matches=0;
00197   Int_t bm=0;
00198 
00199   while(bm<num_best_matches && bm<nresults){
00200     
00201     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00202     
00203     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1){
00204       ++match_nue;
00205     }
00206     ++matches;
00207     ++bm;
00208   }
00209   
00210   Float_t fracCC=-1;
00211 
00212   if(matches>0){
00213     fracCC=match_nue*1./matches;
00214   }
00215   
00216   return fracCC;
00217 
00218 }

Float_t NueAnaReader::GetfracCCy ( Float_t  y_cut  ) 

Definition at line 222 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, GetBestMatch(), MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, num_best_matches, and MCNNBestMatch::true_y.

Referenced by MCNNFiller::FillMCNN(), PDFReader::GetProb_f_bg(), and PDFReader::GetProb_f_sig().

00222                                              {
00223 
00224   Int_t nresults=nuerecord->mcnnv.bestmatches;
00225   Int_t match_nue=0;
00226   Int_t matches=0;
00227   Int_t bm=0;
00228 
00229   while(matches<num_best_matches && bm<nresults){
00230     
00231     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00232 
00233     //Int_t filetype=mcnnbm->run/100000;
00234     //Int_t max_run=0;
00235     //if(filetype==210){
00236     //  max_run=21011200;
00237     // } else {
00238     //  max_run=21111100;
00239     // }
00240     
00241     //if(mcnnbm->run <= max_run){
00242       
00243     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1 && mcnnbm->true_y<y_cut){
00244         ++match_nue;
00245       }
00246       ++matches;
00247       //}
00248 
00249     ++bm;
00250   }
00251   
00252   Float_t fracCCy=-1;
00253 
00254   if(matches>0){
00255     fracCCy=match_nue*1./matches;
00256   }
00257   
00258   return fracCCy;
00259 
00260 }

Float_t NueAnaReader::GetMeanFracQMatched ( Float_t  y_cut = 1.0  ) 

Definition at line 320 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, MCNNBestMatch::fracQmatched, GetBestMatch(), MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, num_best_matches, and MCNNBestMatch::true_y.

Referenced by MCNNFiller::FillMCNN(), PDFReader::GetProb_mfqm_bg(), and PDFReader::GetProb_mfqm_sig().

00320                                                       {
00321   
00322   Int_t nresults=nuerecord->mcnnv.bestmatches;
00323   Float_t mfqm=0;
00324   Int_t matches=0;
00325   Int_t bm=0;
00326 
00327   while(bm<num_best_matches && bm<nresults){
00328     
00329     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00330     
00331     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1 && mcnnbm->true_y < y_cut){
00332       mfqm += mcnnbm->fracQmatched;
00333       ++matches;
00334     }
00335     ++bm;
00336   }
00337   
00338   Float_t result=-1;
00339 
00340   if(matches>0){
00341     result=mfqm*1./matches;
00342   }
00343   
00344   return result;
00345 
00346 }

Float_t NueAnaReader::GetNCMeanFracQMatched ( Float_t  y_cut = 1.0  ) 

Definition at line 349 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, MCNNBestMatch::fracQmatched, GetBestMatch(), MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, num_best_matches, and MCNNBestMatch::true_y.

Referenced by MCNNFiller::FillMCNN().

00349                                                         {
00350   
00351   Int_t nresults=nuerecord->mcnnv.bestmatches;
00352   Float_t ncmfqm=0;
00353   Int_t matches=0;
00354   Int_t bm=0;
00355 
00356   while(bm<num_best_matches && bm<nresults){
00357     
00358     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00359     
00360     if(mcnnbm->interactionType!=1 && mcnnbm->true_y < y_cut){
00361       ncmfqm += mcnnbm->fracQmatched;
00362       ++matches;
00363     }
00364     ++bm;
00365   }
00366   
00367   Float_t result=-1;
00368 
00369   if(matches>0){
00370     result=ncmfqm*1./matches;
00371   }
00372   
00373   return result;
00374 
00375 }

Float_t NueAnaReader::GetNCymean ( Float_t  y_cut = 1.0  ) 

Definition at line 292 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, GetBestMatch(), MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, num_best_matches, and MCNNBestMatch::true_y.

Referenced by MCNNFiller::FillMCNN().

00292                                              {
00293   
00294   Int_t nresults=nuerecord->mcnnv.bestmatches;
00295   Float_t ncely=0;
00296   Int_t matches=0;
00297   Int_t bm=0;
00298 
00299   while(bm<num_best_matches && bm<nresults){
00300     
00301     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00302     if(mcnnbm->interactionType!=1 && mcnnbm->true_y < y_cut){
00303       ncely += mcnnbm->true_y;
00304       ++matches;
00305     }
00306     ++bm;
00307   }
00308   
00309   Float_t result=-1;
00310 
00311   if(matches>0){
00312     result=ncely*1./matches;
00313   }
00314   
00315   return result;
00316 
00317 }

Float_t NueAnaReader::GetWeightedfracCC (  ) 

Definition at line 415 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, GetBestMatch(), h_weight, MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, num_best_matches, and MCNNBestMatch::true_enu.

00415                                        {
00416 
00417   Int_t nresults=nuerecord->mcnnv.bestmatches;
00418   Float_t match_nue=0;
00419   Float_t matches=0;
00420   Int_t bm=0;
00421 
00422   while(bm<num_best_matches && bm<nresults){
00423     
00424     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00425 
00426     Float_t weight=1.0;
00427     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1) weight=h_weight->GetBinContent(h_weight->FindBin(mcnnbm->true_enu));
00428     
00429     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1){
00430       match_nue+=weight;;
00431     }
00432     matches+=weight;
00433     ++bm;
00434   }
00435   
00436   Float_t fracCC=-1;
00437 
00438   if(matches>0){
00439     fracCC=match_nue*1./matches;
00440   }
00441   
00442   return fracCC;
00443 
00444 }

Float_t NueAnaReader::GetWeightedfracCCy ( Float_t  y_cut  ) 

Definition at line 447 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, GetBestMatch(), h_weight, MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, num_best_matches, MCNNBestMatch::true_enu, and MCNNBestMatch::true_y.

00447                                                      {
00448 
00449   Int_t nresults=nuerecord->mcnnv.bestmatches;
00450   Float_t match_nue=0;
00451   Float_t matches=0;
00452   Int_t bm=0;
00453 
00454   while(matches<num_best_matches && bm<nresults){
00455     
00456     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00457 
00458     //Int_t filetype=mcnnbm->run/100000;
00459     //Int_t max_run=0;
00460     //if(filetype==210){
00461     //  max_run=21011200;
00462     // } else {
00463     //  max_run=21111100;
00464     // }
00465     
00466     //if(mcnnbm->run <= max_run){
00467 
00468     //Setting a non-1 weight for nueCC best matches
00469     Float_t weight=1.0;
00470     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1) weight=h_weight->GetBinContent(h_weight->FindBin(mcnnbm->true_enu));
00471     
00472     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1 && mcnnbm->true_y<y_cut){
00473       match_nue+=weight;
00474     }
00475     matches+=weight;
00476       
00477 
00478       //}
00479 
00480     ++bm;
00481   }
00482   
00483   Float_t fracCCy=-1;
00484 
00485   if(matches>0){
00486     fracCCy=match_nue*1./matches;
00487   }
00488   
00489   return fracCCy;
00490 
00491 }

Float_t NueAnaReader::GetWeightedMeanFracQMatched ( Float_t  y_cut = 1.0  ) 

Definition at line 494 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, MCNNBestMatch::fracQmatched, GetBestMatch(), h_weight, MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, num_best_matches, MCNNBestMatch::true_enu, and MCNNBestMatch::true_y.

00494                                                               {
00495   
00496   Int_t nresults=nuerecord->mcnnv.bestmatches;
00497   Float_t mfqm=0;
00498   Float_t matches=0;
00499   Int_t bm=0;
00500 
00501   while(bm<num_best_matches && bm<nresults){
00502     
00503     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00504 
00505     Float_t weight=1.0;
00506     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1) weight=h_weight->GetBinContent(h_weight->FindBin(mcnnbm->true_enu));
00507     
00508     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1 && mcnnbm->true_y < y_cut){
00509       mfqm += mcnnbm->fracQmatched*weight;
00510       matches+=weight;
00511     }
00512     ++bm;
00513   }
00514   
00515   Float_t result=-1;
00516 
00517   if(matches>0){
00518     result=mfqm*1./matches;
00519   }
00520   
00521   return result;
00522 
00523 }

Float_t NueAnaReader::GetWeightedymean ( Float_t  y_cut = 1.0  ) 

Definition at line 526 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, GetBestMatch(), h_weight, MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, num_best_matches, MCNNBestMatch::true_enu, and MCNNBestMatch::true_y.

00526                                                    {
00527   
00528   Int_t nresults=nuerecord->mcnnv.bestmatches;
00529   Float_t ely=0;
00530   Float_t matches=0;
00531   Int_t bm=0;
00532 
00533   while(bm<num_best_matches && bm<nresults){
00534     
00535     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00536 
00537     Float_t weight=1.0;
00538     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1) weight=h_weight->GetBinContent(h_weight->FindBin(mcnnbm->true_enu));
00539     
00540     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1 && mcnnbm->true_y < y_cut){
00541       ely += mcnnbm->true_y*weight;
00542       matches+=weight;
00543     }
00544     ++bm;
00545   }
00546   
00547   Float_t result=-1;
00548 
00549   if(matches>0){
00550     result=ely*1./matches;
00551   }
00552   
00553   return result;
00554 
00555 }

Float_t NueAnaReader::Getymean ( Float_t  y_cut = 1.0  ) 

Definition at line 264 of file NueAnaReader.cxx.

References MCNNVars::bestmatches, GetBestMatch(), MCNNBestMatch::interactionType, NueRecord::mcnnv, nuerecord, MCNNBestMatch::nuFlavor, num_best_matches, and MCNNBestMatch::true_y.

Referenced by MCNNFiller::FillMCNN(), PDFReader::GetProb_y_bg(), and PDFReader::GetProb_y_sig().

00264                                            {
00265   
00266   Int_t nresults=nuerecord->mcnnv.bestmatches;
00267   Float_t ely=0;
00268   Int_t matches=0;
00269   Int_t bm=0;
00270 
00271   while(bm<num_best_matches && bm<nresults){
00272     
00273     MCNNBestMatch *mcnnbm = GetBestMatch(bm);
00274     if(TMath::Abs(mcnnbm->nuFlavor)==12 && mcnnbm->interactionType==1 && mcnnbm->true_y < y_cut){
00275       ely += mcnnbm->true_y;
00276       ++matches;
00277     }
00278     ++bm;
00279   }
00280   
00281   Float_t result=-1;
00282 
00283   if(matches>0){
00284     result=ely*1./matches;
00285   }
00286   
00287   return result;
00288 
00289 }

Bool_t NueAnaReader::NuePresel (  ) 

Definition at line 107 of file NueAnaReader.cxx.

References NueRecord::anainfo, AnalysisInfoNue::inFiducialVolume, nuerecord, ANtpEventInfoNue::phNueGeV, ANtpTrackInfo::planes, NueRecord::srevent, NueRecord::srtrack, and ANtpTrackInfoNue::trklikePlanes.

00107                               {
00108 
00109   Bool_t passpresel=false;
00110   if(nuerecord!=NULL){
00111     if(nuerecord->anainfo.inFiducialVolume == 1){// && nuerecord->srevent.vtxZ<29){
00112        if(nuerecord->srevent.phNueGeV > 1 && nuerecord->srevent.phNueGeV < 8){
00113          if(nuerecord->srtrack.planes < 25){
00114            if(nuerecord->srtrack.trklikePlanes < 16){
00115              passpresel=true;
00116            }
00117          }
00118        }
00119      }
00120   } else {
00121     cout  << "Warning ! Emtpy NueRecord in NuePresel" << endl;
00122   }
00123 
00124   return passpresel;
00125 
00126 }

void NueAnaReader::SetLibraryWeightingFile ( char *  weightfile_in,
char *  histname_in 
)

Definition at line 407 of file NueAnaReader.cxx.

References h_weight.

00407                                                                                 {
00408 
00409   TFile *weightfile = new TFile(weightfile_in,"READ");
00410   h_weight = (TH1F*)weightfile->Get(histname_in);
00411 
00412 }

void NueAnaReader::SetMaxNumBestMatches ( Int_t  nbm_in  ) 

Definition at line 185 of file NueAnaReader.cxx.

References num_best_matches.

Referenced by MCNNMergeModule::BeginJob().

00185                                                    {
00186   
00187   num_best_matches=nbm_in;
00188 
00189 }

void NueAnaReader::SetNueRecord ( NueRecord nr  )  [inline]

Definition at line 20 of file NueAnaReader.h.

References nuerecord.

Referenced by MCNNMergeModule::Reco().

00020 { nuerecord = nr; }

void NueAnaReader::Setup (  )  [private]

Definition at line 69 of file NueAnaReader.cxx.

References chain, chain_pot, nuepot, and nuerecord.

Referenced by Add(), and NueAnaReader().

00069                         {
00070 
00071   //Branches
00072   //--------
00073   if(chain->GetBranchStatus("NueRecord")){
00074     chain->SetBranchAddress("NueRecord",&nuerecord);
00075   }
00076   if(chain_pot->GetBranchStatus("NuePOT")){
00077     chain_pot->SetBranchAddress("NuePOT",&nuepot);
00078     chain_pot->GetEntry(0);
00079   }
00080      
00081 }


Member Data Documentation

TChain* NueAnaReader::chain [private]

Definition at line 48 of file NueAnaReader.h.

Referenced by Add(), GetEntries(), GetEntry(), NueAnaReader(), Setup(), and ~NueAnaReader().

TChain* NueAnaReader::chain_pot [private]

Definition at line 49 of file NueAnaReader.h.

Referenced by Add(), CalculatePOT(), NueAnaReader(), Setup(), and ~NueAnaReader().

Int_t NueAnaReader::filenum [private]

Definition at line 51 of file NueAnaReader.h.

Referenced by Add(), and NueAnaReader().

TH1F* NueAnaReader::h_weight [private]
Int_t NueAnaReader::max_run_nc [private]

Definition at line 57 of file NueAnaReader.h.

Int_t NueAnaReader::max_run_nue [private]

Definition at line 58 of file NueAnaReader.h.

Definition at line 23 of file NueAnaReader.h.

Referenced by CalculatePOT(), NueAnaReader(), Setup(), and ~NueAnaReader().

const Float_t NueAnaReader::POT_file_carrot_FD = 2.91*1e20 [static, private]

Definition at line 52 of file NueAnaReader.h.

Referenced by CalculatePOT().

const Float_t NueAnaReader::POT_file_carrot_ND = 1.0024*1e16 [static, private]

Definition at line 54 of file NueAnaReader.h.

Referenced by CalculatePOT().

const Float_t NueAnaReader::POT_file_daikon_FD = 6.5*1e20 [static, private]

Definition at line 53 of file NueAnaReader.h.

Referenced by CalculatePOT().

const Float_t NueAnaReader::POT_file_daikon_ND = 1.936*1e16 [static, private]

Definition at line 55 of file NueAnaReader.h.

Referenced by CalculatePOT().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1