Classes | Functions | Variables
make_pid.h File Reference
#include "TCanvas.h"
#include "TH1.h"
#include "TF1.h"
#include "TFile.h"
#include "TLegend.h"
#include "TLegendEntry.h"
#include "TArrayD.h"
#include "TAxis.h"
#include "TLatex.h"
#include "CAFAna/Core/Cut.h"
#include "CAFAna/Cuts/NueCutsFirstAna.h"
#include "3FlavorAna/Cuts/NueCuts2017.h"
#include "3FlavorAna/Cuts/NumuCuts2017.h"
#include "NuXAna/Cuts/NusCuts17.h"
#include "CAFAna/Analysis/Plots.h"
#include "CAFAna/Analysis/Style.h"
#include "CAFAna/Core/SpectrumLoader.h"
#include "CAFAna/Core/Spectrum.h"
#include "CAFAna/Cuts/SpillCuts.h"
#include "CAFAna/Vars/Vars.h"
#include "CAFAna/Vars/GenieWeights.h"
#include "StandardRecord/Proxy/SRProxy.h"
#include "CAFAna/Vars/PngCVNVars.h"

Go to the source code of this file.

Classes

struct  PlotDef
 
struct  SelDef
 

Functions

const Cut kNueVtxContain ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return false;if(fabs(sr->vtx.elastic.vtx.X()) > 180) return false;if(fabs(sr->vtx.elastic.vtx.Y()) > 180) return false;if(fabs(sr->vtx.elastic.vtx.Z())< 50) return false;if(fabs(sr->vtx.elastic.vtx.Z()) > 1000) return false;return true;})
 
const Cut kNueShwContain ([](const caf::SRProxy *sr){if(sr->vtx.elastic.fuzzyk.nshwlid==0) return false;if(fabs(sr->vtx.elastic.fuzzyk.png[0].shwlid.stop.X()) > 180) return false;if(fabs(sr->vtx.elastic.fuzzyk.png[0].shwlid.stop.Y()) > 180) return false;if(sr->vtx.elastic.fuzzyk.png[0].shwlid.stop.Z()< 200) return false;if(sr->vtx.elastic.fuzzyk.png[0].shwlid.stop.Z() > 1200) return false;return true;})
 
const Cut kMissingPlanesCut ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return false;for(auto &it:sr->vtx.elastic.fuzzyk.png) if(it.maxplanegap<=1) return false;return true;})
 
const Var kNPng ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return-1;return(int) sr->vtx.elastic.fuzzyk.npng;})
 

Variables

std::map< std::string, Color_t > PDGcolor
 
Binning basic = Binning::Simple(50,0,1)
 
const int kNSels = 4
 
SelDef sels [kNSels]
 
const int kNPlots = 30
 
PlotDef plots [kNPlots]
 

Function Documentation

const Cut kMissingPlanesCut ( [] (const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return false;for(auto &it:sr->vtx.elastic.fuzzyk.png) if(it.maxplanegap<=1) return false;return true;}  )
const Var kNPng ( [] (const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return-1;return(int) sr->vtx.elastic.fuzzyk.npng;}  )
const Cut kNueShwContain ( [] (const caf::SRProxy *sr){if(sr->vtx.elastic.fuzzyk.nshwlid==0) return false;if(fabs(sr->vtx.elastic.fuzzyk.png[0].shwlid.stop.X()) > 180) return false;if(fabs(sr->vtx.elastic.fuzzyk.png[0].shwlid.stop.Y()) > 180) return false;if(sr->vtx.elastic.fuzzyk.png[0].shwlid.stop.Z()< 200) return false;if(sr->vtx.elastic.fuzzyk.png[0].shwlid.stop.Z() > 1200) return false;return true;}  )
const Cut kNueVtxContain ( [] (const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return false;if(fabs(sr->vtx.elastic.vtx.X()) > 180) return false;if(fabs(sr->vtx.elastic.vtx.Y()) > 180) return false;if(fabs(sr->vtx.elastic.vtx.Z())< 50) return false;if(fabs(sr->vtx.elastic.vtx.Z()) > 1000) return false;return true;}  )

Variable Documentation

Binning basic = Binning::Simple(50,0,1)

Definition at line 99 of file make_pid.h.

const int kNPlots = 30

Definition at line 109 of file make_pid.h.

const int kNSels = 4

Definition at line 101 of file make_pid.h.

std::map<std::string, Color_t> PDGcolor
Initial value:
=
{{"Electron",kSpring-8},
{"Muon", kAzure-2},
{"Gamma", kPink+6},
{"Pion", kOrange-3},
{"Proton", kRed}
}
enum BeamMode kOrange
enum BeamMode kRed

Definition at line 76 of file make_pid.h.

Referenced by plot_pid().

PlotDef plots[kNPlots]

Definition at line 110 of file make_pid.h.

SelDef sels[kNSels]
Initial value:
=
{{"cont","Containment",kNueVtxContain},
{"NDnue","Nue ND Selection",kNue2017NDCVNSsb},
{"NDnumu","Numu ND Selection",kNumuCutND2017},
{"NDnus","Nus ND Selection",kNus17ND}
}
const Cut kNue2017NDCVNSsb
Definition: NueCuts2017.h:302
const Cut kNus17ND
Full Nus17 ND analysis selection.
Definition: NusCuts17.h:120
const Cut kNumuCutND2017
Definition: NumuCuts2017.h:41
const Cut kNueVtxContain([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return false;if(fabs(sr->vtx.elastic.vtx.X()) > 180) return false;if(fabs(sr->vtx.elastic.vtx.Y()) > 180) return false;if(fabs(sr->vtx.elastic.vtx.Z())< 50) return false;if(fabs(sr->vtx.elastic.vtx.Z()) > 1000) return false;return true;})

Definition at line 102 of file make_pid.h.