7 #include "CAFAna/Core/Var.h" 26 std::string polarity =
"fhc";
if (!isFHC ) polarity =
"rhc" ;
30 std::cout <<
"\n================================= \n" 31 <<
"\n\t isFHC --> " << isFHC <<
" --> " << polarity
32 <<
"\n\t isData --> " << isData <<
" --> " << data
33 <<
"\n\t Period --> " <<
period 34 <<
"\n\t isFD --> " << isFD <<
" --> " << detector
35 <<
"\n================================= \n" 39 std::vector<std::pair<Cut, std::string> > MyCuts =
BasicPIDPlots_Cuts( isFHC, isFD, isData );
40 const size_t NCuts = MyCuts.size();
48 if ( isFD ) MyDef =
"prod_caf_R19-11-18-prod5reco.i_fd_cosmic_"+polarity+
"_full_v1_goodruns";
49 if (!isFD && isData) MyDef =
"prod_caf_R19-11-18-prod5reco.d_nd_numi_" +polarity+
"_full_v1";
50 if (!isFD && !isData) MyDef =
"prod_caf_R19-11-18-prod5reco.d_nd_genie_N1810j0211a_nonswap_"+polarity+
"_nova_v08_full_v1";
68 Cut kThisCut = MyCuts[
cc].first;
88 std::string OutName =
"BasicPIDPlots_2020_"+detector+
"_"+data+
"_"+polarity+
"_"+
period+
".root";
89 TFile *
OutFile = TFile::Open(OutName.c_str(),
"RECREATE");
93 sNuRecoE [
cc] ->
SaveTo( OutFile, TString(
"RecoNuE" )+TString(ThisCutNa) ) ;
Cuts and Vars for the 2020 FD DiF Study.
void SaveTo(const osc::IOscCalc &x, TDirectory *dir, const std::string &name)
std::vector< std::pair< Cut, std::string > > BasicPIDPlots_Cuts(bool isFHC, bool isFD, bool isData)
void SetSpillCut(const SpillCut &cut)
Representation of a spectrum in any variable, with associated POT.
const XML_Char const XML_Char * data
const Cut kInCosmicTimingWindow
Is the event far from the start and ends of the spill ? For FD cosmic selection.
virtual void Go() override
Load all the registered spectra.
std::vector< float > Spectrum
const SystShifts kNoShift
Collaborates with Spectrum and OscillatableSpectrum to fill spectra from CAF files.
const SpillCut kStandardSpillCuts
Apply this unless you're doing something special.
void NuMu2020_BasicPIDPlots_Spectrum(bool isFHC, bool isData, bool isFD, std::string period="full")
const Var kUnweighted
The simplest possible Var, always 1. Used as a default weight.