Public Member Functions | Private Attributes | Friends | List of all members
skim::ParametersNumuCCpi Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-09-17/AnalysisSkimmer/parameters/ParametersNumuCCpi.h"

Inheritance diagram for skim::ParametersNumuCCpi:
skim::Parameters

Public Member Functions

 ParametersNumuCCpi ()
 
 ParametersNumuCCpi (rb::Cluster const &slice, simb::MCParticle const &pdg, bool const &isData)
 
 ParametersNumuCCpi (rb::Cluster const &slice, bool const &isData)
 
virtual ~ParametersNumuCCpi ()
 
int const & pdgCode () const
 
NumuCCpiCutParameters const & ParametersStruct () const
 
void Compare (NumuCCpiCutParameters const &compCuts)
 

Private Attributes

NumuCCpiCutParameters fParameters
 the relevant parameters to cut on for a numuCCpi selection More...
 

Friends

std::ostream & operator<< (std::ostream &o, ParametersNumuCCpi const &p)
 

Detailed Description

Definition at line 30 of file ParametersNumuCCpi.h.

Constructor & Destructor Documentation

skim::ParametersNumuCCpi::ParametersNumuCCpi ( )

Definition at line 25 of file ParametersNumuCCpi.cxx.

26 {
27 
28 }
skim::ParametersNumuCCpi::ParametersNumuCCpi ( rb::Cluster const &  slice,
simb::MCParticle const &  pdg,
bool const &  isData 
)

Definition at line 31 of file ParametersNumuCCpi.cxx.

References fParameters, NumuCCpiCutParameters::fpdgCode, geom(), simb::MCParticle::PdgCode(), and rh.

32 {
35 
36  // pdg variable
37  fParameters.fpdgCode = pdg.PdgCode(); // added on 8/30/2016
38  //fParameters.fpdgCodeMu = pdg.PdgCode(); // added on 9/16/2016
39  //fParameters.fpdgCodeChargedPi = pdg.PdgCode(); // added on 9/16/2016
40 
41  return;
42 }
TH2 * rh
Definition: drawXsec.C:5
NumuCCpiCutParameters fParameters
the relevant parameters to cut on for a numuCCpi selection
void geom(int which=0)
Definition: geom.C:163
skim::ParametersNumuCCpi::ParametersNumuCCpi ( rb::Cluster const &  slice,
bool const &  isData 
)
skim::ParametersNumuCCpi::~ParametersNumuCCpi ( )
virtual

Definition at line 80 of file ParametersNumuCCpi.cxx.

81 {
82 
83 }

Member Function Documentation

void skim::ParametersNumuCCpi::Compare ( NumuCCpiCutParameters const &  compCuts)

Definition at line 56 of file ParametersNumuCCpi.cxx.

References std::abs(), comps, e, fParameters, NumuCCpiCutParameters::fpdgCode, LOG_VERBATIM, and make_pair().

Referenced by ParametersStruct().

57 {
58 
59  std::map<std::string, std::pair<double, double> > comps;
60 
61  comps["pdgCode"] = std::make_pair(fParameters.fpdgCode, compCuts.fpdgCode ); // added om 8/30/2016
62  //comps["pdgCodeMu"] = std::make_pair(fParameters.fpdgCodeMu, compCuts.fpdgCodeMu ); // added om 9/16/2016
63  //comps["pdgCodeChargedPi"] = std::make_pair(fParameters.fpdgCodeChargedPi, compCuts.fpdgCodeChargedPI ); // added om 9/16/2016
64 
65  double fracDiff = 0.;
66 
67  for(auto itr : comps){
68 
69  auto skimSR = itr.second;
70  fracDiff = std::abs((skimSR.first - skimSR.second)/skimSR.first);
71  if( fracDiff > 1.e-3)
72  LOG_VERBATIM("ParametersNumuCCpi")
73  << itr.first << ": " << skimSR.first << " " << skimSR.second << " " << fracDiff;
74  }
75 
76  return;
77 }
NumuCCpiCutParameters fParameters
the relevant parameters to cut on for a numuCCpi selection
std::pair< Spectrum *, CheatDecomp * > make_pair(SpectrumLoaderBase &loader_data, SpectrumLoaderBase &loader_mc, HistAxis *axis, Cut *cut, const SystShifts &shift, const Var &wei)
Definition: DataMCLoad.C:336
float abs(float number)
Definition: d0nt_math.hpp:39
std::vector< std::string > comps
#define LOG_VERBATIM(category)
Float_t e
Definition: plot.C:35
NumuCCpiCutParameters const& skim::ParametersNumuCCpi::ParametersStruct ( ) const
inline

Definition at line 47 of file ParametersNumuCCpi.h.

References Compare(), fParameters, msf_helper::o, and operator<<.

Referenced by skim::operator<<().

47 { return fParameters; }
NumuCCpiCutParameters fParameters
the relevant parameters to cut on for a numuCCpi selection
int const& skim::ParametersNumuCCpi::pdgCode ( ) const
inline

Definition at line 42 of file ParametersNumuCCpi.h.

References fParameters, and NumuCCpiCutParameters::fpdgCode.

42 { return fParameters.fpdgCode;} // added on 8/29/2016
NumuCCpiCutParameters fParameters
the relevant parameters to cut on for a numuCCpi selection

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
skim::ParametersNumuCCpi const &  p 
)
friend

Definition at line 86 of file ParametersNumuCCpi.cxx.

Referenced by ParametersStruct().

87  {
88  o <<"\npdgCode\t" << p.ParametersStruct().fpdgCode; // added on 8/30/2016
89  //<<"\npdgCodeMu\t" << p.ParametersStruct().fpdgCodeMu // added on 9/16/2016
90  //<<"\npdgCodeChargedPi\t" << p.ParametersStruct().fpdgCodeChargedPi; // added on 9/16/2016
91 
92  return o;
93  }
const char * p
Definition: xmltok.h:285

Member Data Documentation

NumuCCpiCutParameters skim::ParametersNumuCCpi::fParameters
private

the relevant parameters to cut on for a numuCCpi selection

Definition at line 55 of file ParametersNumuCCpi.h.

Referenced by Compare(), ParametersNumuCCpi(), ParametersStruct(), and pdgCode().


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