1 #ifndef SimDataFormats_GeneratorProducts_GenLumiInfoProduct_h 2 #define SimDataFormats_GeneratorProducts_GenLumiInfoProduct_h 45 operator double()
const {
return value_; }
58 FinalStat(
unsigned int n1,
double sum1,
double sum21) : n_(n1), sum_(sum1), sum2_(sum21) {}
61 unsigned int n()
const {
return n_; }
62 double sum()
const {
return sum_; }
63 double sum2()
const {
return sum2_; }
68 sum2_ += other.
sum2();
72 return n_ == other.
n_ && sum_ == other.
sum_ && sum2_ == other.
sum2_;
84 ProcessInfo() : process_(-1), nPassPos_(0), nPassNeg_(0), nTotalPos_(0), nTotalNeg_(0) {}
85 ProcessInfo(
int id) : process_(id), nPassPos_(0), nPassNeg_(0), nTotalPos_(0), nTotalNeg_(0) {}
91 unsigned int nPassPos()
const {
return nPassPos_; }
92 unsigned int nPassNeg()
const {
return nPassNeg_; }
93 unsigned int nTotalPos()
const {
return nTotalPos_; }
94 unsigned int nTotalNeg()
const {
return nTotalNeg_; }
108 tried_.add(other.
tried());
110 killed_.add(other.
killed());
151 #endif // SimDataFormats_GeneratorProducts_GenLumiInfoProduct_h void setNPassNeg(unsigned int n)
const std::vector< ProcessInfo > & getProcessInfos() const
void add(const FinalStat &other)
void setTried(unsigned int n, double sum, double sum2)
void setNTotalNeg(unsigned int n)
unsigned int nTotalNeg() const
bool operator!=(const XSec &other) const
void setSelected(unsigned int n, double sum, double sum2)
virtual ~GenLumiInfoProduct()
unsigned int nPassPos() const
void setKilled(unsigned int n, double sum, double sum2)
bool operator!=(const FinalStat &other) const
void swap(GenLumiInfoProduct &other)
bool operator==(const FinalStat &other) const
unsigned int nPassNeg() const
void setAccepted(unsigned int n, double sum, double sum2)
FinalStat(unsigned int n1, double sum1, double sum21)
void setAcceptedBr(unsigned int n, double sum, double sum2)
XSec(double v, double e=-1.)
FinalStat acceptedBr() const
void setNTotalPos(unsigned int n)
virtual bool isProductEqual(const GenLumiInfoProduct &other) const
virtual bool mergeProduct(const GenLumiInfoProduct &other)
void setLheXSec(double value, double err)
void setHEPIDWTUP(const int id)
FinalStat selected() const
bool operator==(const XSec &other) const
void setNPassPos(unsigned int n)
void addOthers(const ProcessInfo &other)
unsigned int nTotalPos() const
FinalStat(const FinalStat &other)
FinalStat accepted() const
void setProcessInfo(const std::vector< ProcessInfo > &processes)
std::vector< ProcessInfo > internalProcesses_
const int getHEPIDWTUP() const