Namespaces | Classes | Variables
ana2019 Namespace Reference

Namespaces

 fakedata
 

Classes

class  ColorStream
 
class  TieredAnaObjStorage
 Store the 2019 objects in tiered storage. More...
 

Variables

const TieredAnaObjStorage< SpectrumkDataSpectra ([](const std::string &beamStr){return GetNueData2018(beamStr);}, [](const std::string &beamStr){auto vec=GetNumuData2018(4, beamStr);std::vector< const Spectrum * > ret;ret.insert(ret.end(), vec.begin(), vec.end());return ret;})
 
const TieredAnaObjStorage< IPredictionkPredictions ([](const std::string &beamStr){return GetNuePrediction2018(beamStr=="fhc"?"combo":"prop", DefaultOscCalc(), false, beamStr, false);}, [](const std::string &beamStr){return GetNumuPredictions2018(4, false, beamStr);})
 
const TieredAnaObjStorage< SpectrumkCosmicSpectra ([](const std::string &beamStr){std::string name;std::string anaDir="/nova/ana/nu_e_ana/Ana2018/";if(beamStr=="rhc") name="cosmic_spect_rhc";else name="cosmic_spect_fhc";auto spec=LoadFromFile< Spectrum >(anaDir+"/Predictions/cosmic/cosmic_prediction_real_data.root", name).release();return spec;}, [](const std::string &beamStr){std::string dir="/nova/ana/nu_mu_ana/Ana2018/Cosmics/";std::string filename=(beamStr=="rhc")?"cosmics_rhc__numu2018.root":"cosmics_fhc__numu2018.root";auto fcosm=TFile::Open((dir+filename).c_str());if(fcosm->IsZombie()){std::cerr<< "bad cosmics\n";exit(1);}std::vector< const Spectrum * > numu_cosmics;for(int i=1;i<=4;++i) numu_cosmics.emplace_back(new Spectrum(dynamic_cast< TH1 * >(fcosm->Get(Form("cosmics_q%d", i))), 0, (beamStr=="rhc")?kAna2018RHCLivetime:kAna2018FHCLivetime));return numu_cosmics;})
 
const double kFixedSpillLivetime = 1e-6 * util::kBeamWindowMicroSec
 
const Var kCVN2017e ([](const caf::SRProxy *sr){return sr->sel.cvn.nueid;})
 
const Cut kNueFD2018DecafCut = kApplySecondAnalysisMask && kVeto && kNueDQ2017CVN && (kCVN2017e > 0.5 || kCVNSSe > 0.5)
 

Variable Documentation

const TieredAnaObjStorage<Spectrum> ana2019::kCosmicSpectra([](const std::string &beamStr){std::string name;std::string anaDir="/nova/ana/nu_e_ana/Ana2018/";if(beamStr=="rhc") name="cosmic_spect_rhc";else name="cosmic_spect_fhc";auto spec=LoadFromFile< Spectrum >(anaDir+"/Predictions/cosmic/cosmic_prediction_real_data.root", name).release();return spec;},[](const std::string &beamStr){std::string dir="/nova/ana/nu_mu_ana/Ana2018/Cosmics/";std::string filename=(beamStr=="rhc")?"cosmics_rhc__numu2018.root":"cosmics_fhc__numu2018.root";auto fcosm=TFile::Open((dir+filename).c_str());if(fcosm->IsZombie()){std::cerr<< "bad cosmics\n";exit(1);}std::vector< const Spectrum * > numu_cosmics;for(int i=1;i<=4;++i) numu_cosmics.emplace_back(new Spectrum(dynamic_cast< TH1 * >(fcosm->Get(Form("cosmics_q%d", i))), 0, (beamStr=="rhc")?kAna2018RHCLivetime:kAna2018FHCLivetime));return numu_cosmics;})
const Var ana2019::kCVN2017e([](const caf::SRProxy *sr){return sr->sel.cvn.nueid;})
const TieredAnaObjStorage<Spectrum> ana2019::kDataSpectra([](const std::string &beamStr){return GetNueData2018(beamStr);},[](const std::string &beamStr){auto vec=GetNumuData2018(4, beamStr);std::vector< const Spectrum * > ret;ret.insert(ret.end(), vec.begin(), vec.end());return ret;})
const double ana2019::kFixedSpillLivetime = 1e-6 * util::kBeamWindowMicroSec

Definition at line 34 of file generate_fd_fake_events.C.

Referenced by generate_fd_fake_events().

const Cut ana2019::kNueFD2018DecafCut = kApplySecondAnalysisMask && kVeto && kNueDQ2017CVN && (kCVN2017e > 0.5 || kCVNSSe > 0.5)

Definition at line 38 of file generate_fd_fake_events.C.

Referenced by generate_fd_fake_events(), and reduce_nue_2018().

const TieredAnaObjStorage<IPrediction> ana2019::kPredictions( [](const std::string &beamStr){return GetNuePrediction2018(beamStr=="fhc"?"combo":"prop", DefaultOscCalc(), false, beamStr, false);},[](const std::string &beamStr){return GetNumuPredictions2018(4, false, beamStr);})