Public Member Functions | Protected Attributes | List of all members
g4rwgt::G4WeightTable Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-26/G4Rwgt/G4WeightTable.h"

Public Member Functions

uint nUniverses () const
 
void SetNUniv (uint n)
 
std::vector< float > Piplus () const
 
std::vector< float > Piminus () const
 
std::vector< float > Proton () const
 
void SetWeight (uint i, int pdg, float w)
 
float Piplus_CV () const
 
float Piminus_CV () const
 
float Proton_CV () const
 
void SetCV (int pdg, float w)
 

Protected Attributes

uint fNUniv
 
std::vector< float > fPiplus
 
std::vector< float > fPiminus
 
std::vector< float > fProton
 
float fPiplus_CV
 
float fPiminus_CV
 
float fProton_CV
 

Detailed Description

Definition at line 15 of file G4WeightTable.h.

Member Function Documentation

uint g4rwgt::G4WeightTable::nUniverses ( ) const
inline

Definition at line 18 of file G4WeightTable.h.

References fNUniv, getGoodRuns4SAM::n, and SetNUniv().

Referenced by caf::Geant4Reweights().

18 {return fNUniv;}
std::vector<float> g4rwgt::G4WeightTable::Piminus ( ) const
inline

Definition at line 22 of file G4WeightTable.h.

References fPiminus.

Referenced by caf::Geant4Reweights().

22 {return fPiminus;}
std::vector< float > fPiminus
Definition: G4WeightTable.h:36
float g4rwgt::G4WeightTable::Piminus_CV ( ) const
inline

Definition at line 28 of file G4WeightTable.h.

References fPiminus_CV.

Referenced by caf::Geant4Reweights().

28 {return fPiminus_CV;}
std::vector<float> g4rwgt::G4WeightTable::Piplus ( ) const
inline

Definition at line 21 of file G4WeightTable.h.

References fPiplus.

Referenced by caf::Geant4Reweights().

21 {return fPiplus;}
std::vector< float > fPiplus
Definition: G4WeightTable.h:35
float g4rwgt::G4WeightTable::Piplus_CV ( ) const
inline

Definition at line 27 of file G4WeightTable.h.

References fPiplus_CV.

Referenced by caf::Geant4Reweights().

27 {return fPiplus_CV;} //central value
std::vector<float> g4rwgt::G4WeightTable::Proton ( ) const
inline

Definition at line 23 of file G4WeightTable.h.

References fProton, MECModelEnuComparisons::i, make_root_from_grid_output::pdg, SetWeight(), and w.

Referenced by caf::Geant4Reweights().

23 {return fProton;}
std::vector< float > fProton
Definition: G4WeightTable.h:37
float g4rwgt::G4WeightTable::Proton_CV ( ) const
inline

Definition at line 29 of file G4WeightTable.h.

References fProton_CV, and SetCV().

Referenced by caf::Geant4Reweights().

29 {return fProton_CV;}
void g4rwgt::G4WeightTable::SetCV ( int  pdg,
float  w 
)

Definition at line 75 of file G4WeightTable.h.

References ana::assert(), cv, fPiminus_CV, fPiplus_CV, and fProton_CV.

Referenced by g4rwgt::MakeG4WeightTable::produce(), and Proton_CV().

76  {
77 
78  assert(pdg == 211 || pdg == -211 || pdg == 2212 );
79 
80  if(pdg == 211){
81  fPiplus_CV = cv;
82  }
83 
84  if(pdg == -211){
85  fPiminus_CV = cv;
86  }
87 
88  if(pdg == 2212){
89  fProton_CV = cv;
90  }
91  }// end SetCV()
const std::string cv[Ncv]
assert(nhit_max >=nhit_nbins)
void g4rwgt::G4WeightTable::SetNUniv ( uint  n)

Definition at line 95 of file G4WeightTable.h.

References fNUniv, and getGoodRuns4SAM::n.

Referenced by nUniverses(), and g4rwgt::MakeG4WeightTable::produce().

96  {
97 
98  fNUniv = n;
99 
100  }// end SetNUniv()
void g4rwgt::G4WeightTable::SetWeight ( uint  i,
int  pdg,
float  w 
)

Definition at line 45 of file G4WeightTable.h.

References ana::assert(), fPiminus, fPiplus, fProton, MECModelEnuComparisons::i, and w.

Referenced by g4rwgt::MakeG4WeightTable::produce(), and Proton().

46  {
47 
48  assert(pdg == 211 || pdg == -211 || pdg == 2212 );
49 
50 
51  if(pdg == 211){
52  if(i >= fPiplus.size()){
53  fPiplus.resize(i+1, 1);
54  }
55  fPiplus[i] = w;
56  }
57 
58  if(pdg == -211){
59  if(i >= fPiminus.size()){
60  fPiminus.resize(i+1, 1);
61  }
62  fPiminus[i] = w;
63  }
64 
65  if(pdg == 2212){
66  if(i >= fProton.size()){
67  fProton.resize(i+1, 1);
68  }
69  fProton[i] = w;
70  }
71  }// end SetWeight()
std::vector< float > fProton
Definition: G4WeightTable.h:37
assert(nhit_max >=nhit_nbins)
std::vector< float > fPiplus
Definition: G4WeightTable.h:35
Float_t w
Definition: plot.C:20
std::vector< float > fPiminus
Definition: G4WeightTable.h:36

Member Data Documentation

uint g4rwgt::G4WeightTable::fNUniv
protected

Definition at line 33 of file G4WeightTable.h.

Referenced by nUniverses(), and SetNUniv().

std::vector<float> g4rwgt::G4WeightTable::fPiminus
protected

Definition at line 36 of file G4WeightTable.h.

Referenced by Piminus(), and SetWeight().

float g4rwgt::G4WeightTable::fPiminus_CV
protected

Definition at line 40 of file G4WeightTable.h.

Referenced by Piminus_CV(), and SetCV().

std::vector<float> g4rwgt::G4WeightTable::fPiplus
protected

Definition at line 35 of file G4WeightTable.h.

Referenced by Piplus(), and SetWeight().

float g4rwgt::G4WeightTable::fPiplus_CV
protected

Definition at line 39 of file G4WeightTable.h.

Referenced by Piplus_CV(), and SetCV().

std::vector<float> g4rwgt::G4WeightTable::fProton
protected

Definition at line 37 of file G4WeightTable.h.

Referenced by Proton(), and SetWeight().

float g4rwgt::G4WeightTable::fProton_CV
protected

Definition at line 41 of file G4WeightTable.h.

Referenced by Proton_CV(), and SetCV().


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