Public Member Functions | Private Attributes | Friends | List of all members
cmf::Event Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CovarianceMatrixFit/core/Event.h"

Public Member Functions

 Event ()
 
 Event (EventId const &evid, DataVarVals const &dval, MCVarVals const &mcval)
 
 Event (EventId const &evid, DataVarVals const &dval)
 
 Event (DataVarVals const &dval, MCVarVals const &mcval)
 
 Event (DataVarVals const &dval)
 
bool EventIDFilled () const
 
bool DataValsFilled () const
 
bool MCValsFilled () const
 
EventId const & EventID () const
 
DataVarVals const & DataVals () const
 
MCVarVals const & MCVals () const
 

Private Attributes

std::unique_ptr< EventIdfEventId
 
std::unique_ptr< DataVarValsfDataVals
 
std::unique_ptr< MCVarValsfMCVals
 

Friends

std::ostream & operator<< (std::ostream &o, cmf::Event const &event)
 

Detailed Description

Definition at line 29 of file Event.h.

Constructor & Destructor Documentation

cmf::Event::Event ( )
inline

Definition at line 32 of file Event.h.

33  : fEventId (nullptr)
34  , fDataVals(nullptr)
35  , fMCVals (nullptr)
36  {
37  }
std::unique_ptr< DataVarVals > fDataVals
Definition: Event.h:85
std::unique_ptr< EventId > fEventId
Definition: Event.h:84
std::unique_ptr< MCVarVals > fMCVals
Definition: Event.h:86
cmf::Event::Event ( EventId const &  evid,
DataVarVals const &  dval,
MCVarVals const &  mcval 
)
inline

Definition at line 39 of file Event.h.

42  : fEventId (std::make_unique<EventId >(evid) )
43  , fDataVals(std::make_unique<DataVarVals>(dval) )
44  , fMCVals (std::make_unique<MCVarVals >(mcval))
45  {
46  }
std::unique_ptr< DataVarVals > fDataVals
Definition: Event.h:85
std::unique_ptr< EventId > fEventId
Definition: Event.h:84
std::unique_ptr< MCVarVals > fMCVals
Definition: Event.h:86
cmf::Event::Event ( EventId const &  evid,
DataVarVals const &  dval 
)
inline

Definition at line 48 of file Event.h.

50  : fEventId (std::make_unique<EventId >(evid))
51  , fDataVals(std::make_unique<DataVarVals>(dval))
52  , fMCVals (nullptr)
53  {
54  }
std::unique_ptr< DataVarVals > fDataVals
Definition: Event.h:85
std::unique_ptr< EventId > fEventId
Definition: Event.h:84
std::unique_ptr< MCVarVals > fMCVals
Definition: Event.h:86
cmf::Event::Event ( DataVarVals const &  dval,
MCVarVals const &  mcval 
)
inline

Definition at line 56 of file Event.h.

58  : fEventId (nullptr)
59  , fDataVals(std::make_unique<DataVarVals>(dval) )
60  , fMCVals (std::make_unique<MCVarVals >(mcval))
61  {
62  }
std::unique_ptr< DataVarVals > fDataVals
Definition: Event.h:85
std::unique_ptr< EventId > fEventId
Definition: Event.h:84
std::unique_ptr< MCVarVals > fMCVals
Definition: Event.h:86
cmf::Event::Event ( DataVarVals const &  dval)
inlineexplicit

Definition at line 64 of file Event.h.

65  : fEventId (nullptr)
66  , fDataVals(std::make_unique<DataVarVals>(dval))
67  , fMCVals (nullptr)
68  {
69  }
std::unique_ptr< DataVarVals > fDataVals
Definition: Event.h:85
std::unique_ptr< EventId > fEventId
Definition: Event.h:84
std::unique_ptr< MCVarVals > fMCVals
Definition: Event.h:86

Member Function Documentation

DataVarVals const& cmf::Event::DataVals ( ) const
inline
bool cmf::Event::DataValsFilled ( ) const
inline

Definition at line 72 of file Event.h.

References fDataVals.

Referenced by cmf::operator<<(), and cmf::ShifterAndWeighter::SetCurrentEvent().

72 { return fDataVals != nullptr; }
std::unique_ptr< DataVarVals > fDataVals
Definition: Event.h:85
EventId const& cmf::Event::EventID ( ) const
inline

Definition at line 78 of file Event.h.

References fEventId.

Referenced by cmf::operator<<().

78 { return *fEventId; }
std::unique_ptr< EventId > fEventId
Definition: Event.h:84
bool cmf::Event::EventIDFilled ( ) const
inline

Definition at line 71 of file Event.h.

References fEventId.

Referenced by cmf::operator<<().

71 { return fEventId != nullptr; }
std::unique_ptr< EventId > fEventId
Definition: Event.h:84
MCVarVals const& cmf::Event::MCVals ( ) const
inline

Definition at line 80 of file Event.h.

References fMCVals.

Referenced by cmf::ShifterAndWeighter::BeamSystWeight(), cmf::ShifterAndWeighter::COHScale2018Weight(), cmf::ShifterAndWeighter::CosmicMuNormWeight(), cmf::ShifterAndWeighter::CosmicOverlayNormWeight(), cmf::ShifterAndWeighter::DISvnCC1piWeight(), cmf::ShifterAndWeighter::FluxPCAWeight(), cmf::ShifterAndWeighter::GeniePCASystWeight(), cmf::ShifterAndWeighter::GENIESystWeight(), cmf::ShifterAndWeighter::MaCCQEReducedWeight(), cmf::ShifterAndWeighter::MECEnuShapeWeight(), cmf::ShifterAndWeighter::MECInitStateNPFracWeight(), cmf::ShifterAndWeighter::MECNormWeight(), cmf::ShifterAndWeighter::MECShapeWeight(), cmf::ShifterAndWeighter::NCNormWeight(), cmf::ShifterAndWeighter::NueAcceptBkg2018Weight(), cmf::ShifterAndWeighter::NueAcceptSignalKin2018Weight(), cmf::operator<<(), cmf::ShifterAndWeighter::OscillationWeightBinCenter(), cmf::ShifterAndWeighter::OscillationWeightTrueE(), cmf::ShifterAndWeighter::RadCorrNueBarWeight(), cmf::ShifterAndWeighter::RadCorrNueWeight(), cmf::ShifterAndWeighter::RPACCQEshapeEnhWeight(), cmf::ShifterAndWeighter::RPACCQEshapeSuppWeight(), cmf::ShifterAndWeighter::RPACCQEWeight(), cmf::ShifterAndWeighter::RPARESWeight(), cmf::ShifterAndWeighter::SecondClassCurrWeight(), cmf::ShifterAndWeighter::SumSmallXSec2017Weight(), cmf::ShifterAndWeighter::TauScaleSystWeight(), cmf::ShifterAndWeighter::UseMECWeight(), cmf::ShifterAndWeighter::Weight(), and cmf::ShifterAndWeighter::XSecCVPPFXWeight().

80 { return *fMCVals; }
std::unique_ptr< MCVarVals > fMCVals
Definition: Event.h:86
bool cmf::Event::MCValsFilled ( ) const
inline

Definition at line 73 of file Event.h.

References fMCVals.

Referenced by cmf::operator<<(), and cmf::ShifterAndWeighter::SetCurrentEvent().

73 { return fMCVals != nullptr; }
std::unique_ptr< MCVarVals > fMCVals
Definition: Event.h:86

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
cmf::Event const &  event 
)
friend

Definition at line 27 of file Event.cxx.

28  {
29  o << "Event Variables are: \n";
30 
31  if(event.EventIDFilled() ) o << event.EventID() ;
32  if(event.DataValsFilled()) o << event.DataVals();
33  if(event.MCValsFilled() ) o << event.MCVals() ;
34 
35  o << std::endl;
36 
37  return o;
38  }

Member Data Documentation

std::unique_ptr<DataVarVals> cmf::Event::fDataVals
private

Definition at line 85 of file Event.h.

Referenced by DataVals(), and DataValsFilled().

std::unique_ptr<EventId> cmf::Event::fEventId
private

Definition at line 84 of file Event.h.

Referenced by EventID(), and EventIDFilled().

std::unique_ptr<MCVarVals> cmf::Event::fMCVals
private

Definition at line 86 of file Event.h.

Referenced by MCVals(), and MCValsFilled().


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