Public Member Functions | Private Attributes | List of all members
genie::rew::GReWeightIORecord Class Reference

#include <GReWeightIORecord.h>

Inheritance diagram for genie::rew::GReWeightIORecord:

Public Member Functions

 GReWeightIORecord ()
 
 GReWeightIORecord (const GReWeightIORecord &)
 
 GReWeightIORecord (TRootIOCtor *)
 
 ~GReWeightIORecord ()
 
void Reset ()
 
void Copy (const GReWeightIORecord &)
 
void SetOriginalEvtNumber (const int ievt)
 
void Insert (const double, const double)
 
int GetOriginalEvtNumber () const
 
int GetNumOfRWResults () const
 
double GetTweak (const int i) const
 
double GetWeight (const int i) const
 

Private Attributes

int fOrigEvtNum
 
std::vector< GReWeightInfofRWResults
 

Detailed Description

Definition at line 47 of file GReWeightIORecord.h.

Constructor & Destructor Documentation

genie::rew::GReWeightIORecord::GReWeightIORecord ( )
GReWeightIORecord::GReWeightIORecord ( const GReWeightIORecord rwrec)

Definition at line 22 of file GReWeightIORecord.cxx.

23  : TObject()
24 {
25 
26  this->Copy(rwrec);
27 
28 }
void Copy(const GReWeightIORecord &)
GReWeightIORecord::GReWeightIORecord ( TRootIOCtor *  )

Definition at line 30 of file GReWeightIORecord.cxx.

31  : TObject(),
32  fOrigEvtNum(-1)
33 {
34 
35  fRWResults.clear();
36 
37 }
std::vector< GReWeightInfo > fRWResults
genie::rew::GReWeightIORecord::~GReWeightIORecord ( )
inline

Definition at line 56 of file GReWeightIORecord.h.

56 {}

Member Function Documentation

void GReWeightIORecord::Copy ( const GReWeightIORecord rwrec)

Definition at line 50 of file GReWeightIORecord.cxx.

51 {
52 
53  this->Reset();
54  fOrigEvtNum = rwrec.fOrigEvtNum;
55  fRWResults = rwrec.fRWResults;
56 
57  return;
58 
59 }
std::vector< GReWeightInfo > fRWResults
int genie::rew::GReWeightIORecord::GetNumOfRWResults ( ) const
inline

Definition at line 65 of file GReWeightIORecord.h.

65 { return fRWResults.size(); }
std::vector< GReWeightInfo > fRWResults
int genie::rew::GReWeightIORecord::GetOriginalEvtNumber ( ) const
inline

Definition at line 64 of file GReWeightIORecord.h.

double genie::rew::GReWeightIORecord::GetTweak ( const int  i) const
inline

Definition at line 66 of file GReWeightIORecord.h.

66 { return ( ( fRWResults.size() > 0 && i >= 0 && i < (int)fRWResults.size() ) ? fRWResults[i].GetTweak() : 0. ); }
double GetTweak(const int i) const
std::vector< GReWeightInfo > fRWResults
double genie::rew::GReWeightIORecord::GetWeight ( const int  i) const
inline

Definition at line 67 of file GReWeightIORecord.h.

67 { return ( ( fRWResults.size() > 0 && i >= 0 && i < (int)fRWResults.size() ) ? fRWResults[i].GetWeight() : 1. ); }
std::vector< GReWeightInfo > fRWResults
double GetWeight(const int i) const
void GReWeightIORecord::Insert ( const double  twk,
const double  wt 
)

Definition at line 61 of file GReWeightIORecord.cxx.

62 {
63 
64  fRWResults.push_back( GReWeightInfo(twk,wt) );
65 
66  return;
67 
68 }
std::vector< GReWeightInfo > fRWResults
void GReWeightIORecord::Reset ( void  )

Definition at line 39 of file GReWeightIORecord.cxx.

40 {
41 
42  fOrigEvtNum=-1;
43  fRWResults.clear();
44 
45  return;
46 
47 }
std::vector< GReWeightInfo > fRWResults
void genie::rew::GReWeightIORecord::SetOriginalEvtNumber ( const int  ievt)
inline

Definition at line 61 of file GReWeightIORecord.h.

61 { fOrigEvtNum = ievt; return; }

Member Data Documentation

int genie::rew::GReWeightIORecord::fOrigEvtNum
private

Definition at line 71 of file GReWeightIORecord.h.

std::vector<GReWeightInfo> genie::rew::GReWeightIORecord::fRWResults
private

Definition at line 72 of file GReWeightIORecord.h.


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