Public Member Functions | Public Attributes | List of all members
caf::Proxy< caf::SRTruthBranch > Class Template Reference

Proxy for caf::SRTruthBranch. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-04-15/StandardRecord/Proxy/SRProxy.h"

Public Member Functions

 Proxy (TDirectory *d, TTree *tr, const std::string &name, const long &base, int offset)
 
 Proxy (const Proxy &)=delete
 
 Proxy (const Proxy &&)=delete
 
Proxyoperator= (const caf::SRTruthBranch &x)
 
void CheckEquals (const caf::SRTruthBranch &sr) const
 

Public Attributes

caf::Proxy< std::vector< caf::SRCosmic > > allcosmics
 
caf::Proxy< std::vector< caf::SRNeutrino > > allnus
 
caf::Proxy< std::vector< caf::SRCosmic > > cosmic
 
caf::Proxy< short intfaveidxeff
 
caf::Proxy< short intfaveidxeffpur
 
caf::Proxy< short intfaveidxeffthenpur
 
caf::Proxy< short intfaveidxenergy
 
caf::Proxy< short intfaveidxpur
 
caf::Proxy< caf::SRGlobalTruthglobal
 
caf::Proxy< short intnallcosmics
 
caf::Proxy< short intnallnus
 
caf::Proxy< short intncosmic
 
caf::Proxy< short intnnu
 
caf::Proxy< std::vector< caf::SRNeutrino > > nu
 

Detailed Description

template<>
class caf::Proxy< caf::SRTruthBranch >

Proxy for caf::SRTruthBranch.

Definition at line 595 of file SRProxy.h.

Constructor & Destructor Documentation

caf::Proxy< caf::SRTruthBranch >::Proxy ( TDirectory *  d,
TTree *  tr,
const std::string name,
const long &  base,
int  offset 
)

Definition at line 1112 of file SRProxy.cxx.

1112  :
1113  allcosmics(d, tr, Join(name, "allcosmics"), base, offset),
1114  allnus(d, tr, Join(name, "allnus"), base, offset),
1115  cosmic(d, tr, Join(name, "cosmic"), base, offset),
1116  faveidxeff(d, tr, Join(name, "faveidxeff"), base, offset),
1117  faveidxeffpur(d, tr, Join(name, "faveidxeffpur"), base, offset),
1118  faveidxeffthenpur(d, tr, Join(name, "faveidxeffthenpur"), base, offset),
1119  faveidxenergy(d, tr, Join(name, "faveidxenergy"), base, offset),
1120  faveidxpur(d, tr, Join(name, "faveidxpur"), base, offset),
1121  global(d, tr, Join(name, "global"), base, offset),
1122  nallcosmics(d, tr, Join(name, "nallcosmics"), base, offset),
1123  nallnus(d, tr, Join(name, "nallnus"), base, offset),
1124  ncosmic(d, tr, Join(name, "ncosmic"), base, offset),
1125  nnu(d, tr, Join(name, "nnu"), base, offset),
1126  nu(d, tr, Join(name, "nu"), base, offset)
1127 {
1128 }
const XML_Char * name
Definition: expat.h:151
caf::Proxy< short int > ncosmic
Definition: SRProxy.h:616
caf::Proxy< std::vector< caf::SRCosmic > > cosmic
Definition: SRProxy.h:607
caf::Proxy< short int > nallnus
Definition: SRProxy.h:615
caf::Proxy< std::vector< caf::SRNeutrino > > nu
Definition: SRProxy.h:618
caf::Proxy< short int > nallcosmics
Definition: SRProxy.h:614
caf::Proxy< short int > nnu
Definition: SRProxy.h:617
const XML_Char int const XML_Char int const XML_Char * base
Definition: expat.h:331
std::string Join(const std::string &a, const std::string &b)
Definition: HDF5Record.h:17
caf::Proxy< short int > faveidxpur
Definition: SRProxy.h:612
caf::Proxy< short int > faveidxeffthenpur
Definition: SRProxy.h:610
Float_t d
Definition: plot.C:236
caf::Proxy< std::vector< caf::SRCosmic > > allcosmics
Definition: SRProxy.h:605
caf::Proxy< short int > faveidxeff
Definition: SRProxy.h:608
caf::Proxy< std::vector< caf::SRNeutrino > > allnus
Definition: SRProxy.h:606
caf::Proxy< short int > faveidxenergy
Definition: SRProxy.h:611
caf::Proxy< caf::SRGlobalTruth > global
Definition: SRProxy.h:613
caf::Proxy< short int > faveidxeffpur
Definition: SRProxy.h:609

Member Function Documentation

void caf::Proxy< caf::SRTruthBranch >::CheckEquals ( const caf::SRTruthBranch sr) const

Definition at line 1149 of file SRProxy.cxx.

References caf::SRTruthBranch::allcosmics, caf::SRTruthBranch::allnus, caf::SRTruthBranch::cosmic, caf::SRTruthBranch::faveidxeff, caf::SRTruthBranch::faveidxeffpur, caf::SRTruthBranch::faveidxeffthenpur, caf::SRTruthBranch::faveidxenergy, caf::SRTruthBranch::faveidxpur, caf::SRTruthBranch::global, caf::SRTruthBranch::nallcosmics, caf::SRTruthBranch::nallnus, caf::SRTruthBranch::ncosmic, caf::SRTruthBranch::nnu, and caf::SRTruthBranch::nu.

1150 {
1151  allcosmics.CheckEquals(sr.allcosmics);
1152  allnus.CheckEquals(sr.allnus);
1153  cosmic.CheckEquals(sr.cosmic);
1163  nnu.CheckEquals(sr.nnu);
1164  nu.CheckEquals(sr.nu);
1165 }
short ncosmic
Number of cosmics in cosmic vector (0 or 1)
Definition: SRTruthBranch.h:38
short faveidxeffthenpur
Index of favorite in allnus when neutrinos are sorted by efficiency and slices break ties by purity...
Definition: SRTruthBranch.h:35
caf::Proxy< short int > ncosmic
Definition: SRProxy.h:616
caf::Proxy< short int > nallnus
Definition: SRProxy.h:615
std::vector< SRCosmic > allcosmics
vector holding all Cosmics
Definition: SRTruthBranch.h:29
caf::Proxy< std::vector< caf::SRNeutrino > > nu
Definition: SRProxy.h:618
short faveidxpur
Index of favorite in allnus when sorted by purity.
Definition: SRTruthBranch.h:33
short faveidxeff
Index of favorite in allnus when sorted by slicer efficiency.
Definition: SRTruthBranch.h:31
caf::Proxy< short int > nallcosmics
Definition: SRProxy.h:614
caf::Proxy< short int > nnu
Definition: SRProxy.h:617
caf::Proxy< short int > faveidxpur
Definition: SRProxy.h:612
short nallcosmics
Number of cosmics in allcosmics vector.
Definition: SRTruthBranch.h:40
short faveidxeffpur
Index of favorite in allnus when sorted by product of efficiency and purity.
Definition: SRTruthBranch.h:34
SRGlobalTruth global
Definition: SRTruthBranch.h:42
Sum up livetimes from individual cosmic triggers.
caf::Proxy< short int > faveidxeffthenpur
Definition: SRProxy.h:610
void CheckEquals(const caf::SRGlobalTruth &sr) const
Definition: SRProxy.cxx:1107
short nnu
Number of neutrinos in nu vector (0 or 1)
Definition: SRTruthBranch.h:37
std::vector< SRNeutrino > allnus
vector holding all Neutrinos
Definition: SRTruthBranch.h:28
caf::Proxy< std::vector< caf::SRCosmic > > allcosmics
Definition: SRProxy.h:605
caf::Proxy< short int > faveidxeff
Definition: SRProxy.h:608
caf::Proxy< std::vector< caf::SRNeutrino > > allnus
Definition: SRProxy.h:606
short faveidxenergy
Index of favorite in allnus when sorted by energy.
Definition: SRTruthBranch.h:32
caf::Proxy< short int > faveidxenergy
Definition: SRProxy.h:611
short nallnus
Number of neutrinos in allnus vector.
Definition: SRTruthBranch.h:39
caf::Proxy< caf::SRGlobalTruth > global
Definition: SRProxy.h:613
std::vector< SRNeutrino > nu
implemented as a vector to maintain mc.nu structure, i.e. not a pointer, but with 0 or 1 entries...
Definition: SRTruthBranch.h:25
std::vector< SRCosmic > cosmic
implemented as a vector to maintain mc.cosmic structure
Definition: SRTruthBranch.h:26
void CheckEquals(const T &x) const
caf::Proxy< short int > faveidxeffpur
Definition: SRProxy.h:609

Definition at line 1130 of file SRProxy.cxx.

References caf::SRTruthBranch::allcosmics, caf::SRTruthBranch::allnus, caf::SRTruthBranch::cosmic, caf::SRTruthBranch::faveidxeff, caf::SRTruthBranch::faveidxeffpur, caf::SRTruthBranch::faveidxeffthenpur, caf::SRTruthBranch::faveidxenergy, caf::SRTruthBranch::faveidxpur, caf::SRTruthBranch::global, caf::SRTruthBranch::nallcosmics, caf::SRTruthBranch::nallnus, caf::SRTruthBranch::ncosmic, caf::SRTruthBranch::nnu, and caf::SRTruthBranch::nu.

1131 {
1132  allcosmics = sr.allcosmics;
1133  allnus = sr.allnus;
1134  cosmic = sr.cosmic;
1135  faveidxeff = sr.faveidxeff;
1136  faveidxeffpur = sr.faveidxeffpur;
1137  faveidxeffthenpur = sr.faveidxeffthenpur;
1138  faveidxenergy = sr.faveidxenergy;
1139  faveidxpur = sr.faveidxpur;
1140  global = sr.global;
1141  nallcosmics = sr.nallcosmics;
1142  nallnus = sr.nallnus;
1143  ncosmic = sr.ncosmic;
1144  nnu = sr.nnu;
1145  nu = sr.nu;
1146  return *this;
1147 }
caf::Proxy< short int > ncosmic
Definition: SRProxy.h:616
caf::Proxy< short int > nallnus
Definition: SRProxy.h:615
caf::Proxy< std::vector< caf::SRNeutrino > > nu
Definition: SRProxy.h:618
caf::Proxy< short int > nallcosmics
Definition: SRProxy.h:614
caf::Proxy< short int > nnu
Definition: SRProxy.h:617
caf::Proxy< short int > faveidxpur
Definition: SRProxy.h:612
Sum up livetimes from individual cosmic triggers.
caf::Proxy< short int > faveidxeffthenpur
Definition: SRProxy.h:610
caf::StandardRecord * sr
caf::Proxy< std::vector< caf::SRCosmic > > allcosmics
Definition: SRProxy.h:605
caf::Proxy< short int > faveidxeff
Definition: SRProxy.h:608
caf::Proxy< std::vector< caf::SRNeutrino > > allnus
Definition: SRProxy.h:606
caf::Proxy< short int > faveidxenergy
Definition: SRProxy.h:611
caf::Proxy< caf::SRGlobalTruth > global
Definition: SRProxy.h:613
caf::Proxy< short int > faveidxeffpur
Definition: SRProxy.h:609

Member Data Documentation

caf::Proxy<std::vector<caf::SRCosmic> > caf::Proxy< caf::SRTruthBranch >::allcosmics

Definition at line 605 of file SRProxy.h.

Definition at line 606 of file SRProxy.h.

Referenced by ana::OverlayCutFromNuTruthCut(), and ana::OverlayVarFromNuTruthVar().

Definition at line 607 of file SRProxy.h.

Definition at line 608 of file SRProxy.h.

caf::Proxy<short int> caf::Proxy< caf::SRTruthBranch >::faveidxeffpur

Definition at line 609 of file SRProxy.h.

caf::Proxy<short int> caf::Proxy< caf::SRTruthBranch >::faveidxeffthenpur

Definition at line 610 of file SRProxy.h.

caf::Proxy<short int> caf::Proxy< caf::SRTruthBranch >::faveidxenergy

Definition at line 611 of file SRProxy.h.

Definition at line 612 of file SRProxy.h.

Definition at line 613 of file SRProxy.h.

caf::Proxy<short int> caf::Proxy< caf::SRTruthBranch >::nallcosmics

Definition at line 614 of file SRProxy.h.

Definition at line 615 of file SRProxy.h.

Referenced by ana::OverlayCutFromNuTruthCut(), and ana::OverlayVarFromNuTruthVar().

Definition at line 616 of file SRProxy.h.

Definition at line 617 of file SRProxy.h.

Referenced by AddNumuHistDefMoreTruth(), ana::calcFirstLastLivePlane(), ana::CalcMECDoubleGaussEnhShiftedParam(), ana::CutFromNuTruthCut(), datamc_ND_numu_kinematics(), datamc_ND_numu_kinematics_REW(), demo6(), demoSysts(), efficiency(), EnergyCont_macro(), energyResolution(), ana::GetkPPFXFluxUnivWgt(), ana::Nus17SystFromHist::GetNusChannel(), ana::NusSystFromHist::GetNusChannel(), ana::Nus18SystFromHist::GetNusChannel(), GetTunedMECWeight(), ana::DecompWeightFunc::GetWeight(), ana::GeniePCASyst::GetWeight(), ana::MultiHistContainer::Hist(), hyperon_macro(), hyperon_nom_macro(), ana::kGeantPiminusSingleUnivWeight(), ana::kGeantPiPlusSingleUnivWeight(), ana::kMECDoubleGaussEnh(), MakePPFXRatios(), MakeSystRatios(), MinervaFluxFromHist(), MippNA49FluxFromHist(), neutKEsyst(), neutronE_macro(), nue_fd_mc_validation(), NuMu2020_TrimCAFs(), NuSTreeMaker(), ana::MECWeight::operator()(), ana::CCFlavSel::operator()(), ana::NotContainFxn::operator()(), ana::GetWtMinervaND::operator()(), ana2019::fakedata::KeepMCEventFunc::operator()(), ana::GetWtMippNA49NOvAND::operator()(), ana::GetWtMippNA49NOvAFD::operator()(), ana::NCFlavSel::operator()(), ana::fIsPi0Variable::operator()(), ana::fIsPi0LVariable::operator()(), ppfx_make_systs(), ppfx_smooth_weights_save(), Print(), ana::NumuSyst::Shift(), ana::WrongSignContamination::Shift(), ana::NCSyst::Shift(), ana::WrongSignScale::Shift(), ana::NueExtrapSystBkg2017::Shift(), ana::NeutronVisEScaleSyst2018::Shift(), ana::NueAcceptSystBkg2018FHC::Shift(), ana::NueSyst::Shift(), ana::NCtest::Shift(), ana::NueExtrapSystSignalKin2017::Shift(), ana::WrongSignEnergyBinRHC::Shift(), ana::NuWROSyst::Shift(), ana::NueAcceptSystSignalKin2018FHC::Shift(), ana::Nuetest::Shift(), ana::ISyst::Shift(), ana::WrongSignEnergyBin::Shift(), ana::NueAcceptSystSignalKin2020FHC::Shift(), ana::NumuSummedSmallGENIESyst::Shift(), ana::Numutest::Shift(), ana::Nus17FlatSyst::Shift(), ana::NusFlatSyst::Shift(), ana::NCScaleSyst::Shift(), ana::WrongSignScale100::Shift(), ana::NueAcceptSystBkg2018RHC::Shift(), ana::BeamNueScaleSyst::Shift(), ana::NueAcceptSystSignalKin2018RHC::Shift(), ana::NumuNCScaleSyst::Shift(), ana::Nus18FlatSyst::Shift(), ana::NumuCCScaleSyst::Shift(), ana::NueAcceptSystSignalKin2020RHC::Shift(), ana::MECDoubleGaussEnhSyst::Shift(), ana::MyWrongSignScale::Shift(), ana::NumuTauContaminationSyst::Shift(), ana::KaonScaleSyst::Shift(), demo::DemoSyst2::Shift(), ana::RockMuonNormSyst::Shift(), ana::DISHighWScaleSyst::Shift(), ana::MECDoubleGaussEnhSystUP::Shift(), ana::MECDoubleGaussEnhSystDOWN::Shift(), SystsNDRockLoad(), SystsPPFXLoad17(), ana::TAKEPol6_biasHM(), test_fluxhadr_prod_weights_Flux(), test_genieweights(), TrimCAFs(), and ana::VarFromNuTruthVar().

Definition at line 618 of file SRProxy.h.

Referenced by AddNumuHistDefMoreTruth(), ana::calcFirstLastLivePlane(), ana::CalcFracE(), ana::CalcMECDoubleGaussEnhShiftedParam(), ana::CalcMECDoubleGaussEnhShiftedParamNux(), ana::CalcMECGaussEnh(), ana::CalcMinosResSupp(), ana::CalcPrimE(), ana::CompNormSyst::CompNormSyst(), ana::CutFromNuTruthCut(), datamc_ND_numu_kinematics(), datamc_ND_numu_kinematics_REW(), demoSysts(), efficiency(), cmf::CAFToEventList::FillMCVals(), cmf::CAFToEventList::FillVariables(), get_eventlist2020(), jw::GetCutIsFitMEC(), ana::GetCutIsFitMEC(), ana::GetkPPFXFluxUnivWgt(), ana::Nus17SystFromHist::GetNusChannel(), ana::NusSystFromHist::GetNusChannel(), ana::Nus18SystFromHist::GetNusChannel(), GetTunedMECWeight(), ana::DecompWeightFunc::GetWeight(), ana::GeniePCASyst::GetWeight(), ana::MultiHistContainer::Hist(), hyperon_macro(), hyperon_nom_macro(), ana::kGeantPiminusSingleUnivWeight(), ana::kGeantPiPlusSingleUnivWeight(), ana::kMECDoubleGaussEnh(), LoadWeightsTunedNumuMEC(), jw::LoadWeightsTunedNumuMEC(), make_nueFDprediction_kinematics(), make_nueFDprediction_kinematics_REW(), MakePPFXRatios(), MakeSystRatios(), MinervaFluxFromHist(), MippNA49FluxFromHist(), neutKEsyst(), neutronE_macro(), NuMu2020_TrimCAFs(), NuSTreeMaker(), ana::MECWeight::operator()(), ana::CCFlavSel::operator()(), DiffHough::operator()(), DiffElastic::operator()(), ana::NotContainFxn::operator()(), ana::GetWtMinervaND::operator()(), ana2019::fakedata::KeepMCEventFunc::operator()(), ana::GetWtMippNA49NOvAND::operator()(), ana::GetWtMippNA49NOvAFD::operator()(), ana::NCFlavSel::operator()(), ana::fIsPi0Variable::operator()(), ana::fIsPi0LVariable::operator()(), ppfx_make_systs(), ppfx_smooth_weights_save(), Print(), resolution_event_tree(), ana::NumuSyst::Shift(), ana::WrongSignContamination::Shift(), ana::NCSyst::Shift(), ana::WrongSignScale::Shift(), ana::NueExtrapSystBkg2017::Shift(), ana::NeutronVisEScaleSyst2018::Shift(), ana::NueAcceptSystBkg2018FHC::Shift(), ana::NueSyst::Shift(), ana::NCtest::Shift(), ana::NueExtrapSystSignalKin2017::Shift(), ana::WrongSignEnergyBinRHC::Shift(), ana::NuWROSyst::Shift(), ana::NueAcceptSystSignalKin2018FHC::Shift(), ana::Nuetest::Shift(), ana::ISyst::Shift(), ana::WrongSignEnergyBin::Shift(), ana::NueAcceptSystSignalKin2020FHC::Shift(), ana::NumuSummedSmallGENIESyst::Shift(), ana::Numutest::Shift(), ana::Nus17FlatSyst::Shift(), ana::MECDoubleGaussEnhSystNux::Shift(), ana::NusFlatSyst::Shift(), ana::NCScaleSyst::Shift(), ana::WrongSignScale100::Shift(), ana::NueAcceptSystBkg2018RHC::Shift(), ana::BeamNueScaleSyst::Shift(), ana::NueAcceptSystSignalKin2018RHC::Shift(), ana::NumuNCScaleSyst::Shift(), ana::Nus18FlatSyst::Shift(), ana::NumuCCScaleSyst::Shift(), ana::NueAcceptSystSignalKin2020RHC::Shift(), ana::MECDoubleGaussEnhSyst::Shift(), ana::MyWrongSignScale::Shift(), ana::NumuTauContaminationSyst::Shift(), demo::DemoSyst2::Shift(), ana::RockMuonNormSyst::Shift(), ana::DISHighWScaleSyst::Shift(), ana::MECGaussEnhSyst::Shift(), ana::MinosResSuppSyst::Shift(), ana::MECDoubleGaussEnhSystUP::Shift(), ana::MECDoubleGaussEnhSystDOWN::Shift(), SystsNDRockLoad(), SystsPPFXLoad17(), ana::takeOutTrashByTruth(), ana::TAKEPol6_biasHM(), test_fluxhadr_prod_weights_Flux(), test_genieweights(), TrimCAFs(), and ana::VarFromNuTruthVar().


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