1 #ifndef SimDataFormats_GeneratorProducts_GenLumiInfoProduct_h 2 #define SimDataFormats_GeneratorProducts_GenLumiInfoProduct_h 47 operator double()
const {
return value_; }
62 FinalStat(
unsigned int n1,
double sum1,
double sum21) :
63 n_(n1), sum_(sum1), sum2_(sum21) {}
65 n_(other.n_), sum_(other.sum_), sum2_(other.sum2_) {}
67 unsigned int n()
const {
return n_; }
68 double sum()
const {
return sum_; }
69 double sum2()
const{
return sum2_; }
75 sum2_ += other.
sum2();
79 {
return n_ == other.
n_ && sum_ == other.
sum_ && sum2_ == other.
sum2_; }
90 ProcessInfo():process_(-1),nPassPos_(0),nPassNeg_(0),nTotalPos_(0),nTotalNeg_(0){}
91 ProcessInfo(
int id):process_(id),nPassPos_(0),nPassNeg_(0),nTotalPos_(0),nTotalNeg_(0){}
97 unsigned int nPassPos()
const {
return nPassPos_;}
98 unsigned int nPassNeg()
const {
return nPassNeg_;}
114 tried_.add(other.
tried());
116 killed_.add(other.
killed());
160 #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)
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