1 #ifndef GeneratorInterface_LHEInterface_LHERunInfo_h 2 #define GeneratorInterface_LHEInterface_LHERunInfo_h 14 #ifndef XERCES_CPP_NAMESPACE_QUALIFIER 15 #define UNDEF_XERCES_CPP_NAMESPACE_QUALIFIER 16 #define XERCES_CPP_NAMESPACE_QUALIFIER dummy:: 30 const std::vector<LHERunInfoProduct::Header> &
headers,
31 const std::vector<std::string> &
comments);
43 #ifndef UNDEF_XERCES_CPP_NAMESPACE_QUALIFIER 64 enum CountMode { kTried = 0, kSelected, kKilled, kAccepted };
68 XSec() : value_(0.0), error_(0.0) {}
69 XSec(
double v,
double e) : value_(v), error_(e) {}
70 double value() {
return value_; }
71 double error() {
return error_; }
82 std::pair<int, int> pdfSetTranslation()
const;
86 Counter() : n_(0), sum_(0.0), sum2_(0.0) {}
87 Counter(
unsigned int n1,
double sum1,
double sum21) : n_(n1), sum_(sum1), sum2_(sum21) {}
93 unsigned int n()
const {
return n_; }
94 double sum()
const {
return sum_; }
95 double sum2()
const {
return sum2_; }
105 Process() : process_(-1), heprupIndex_(-1), nPassPos_(0), nPassNeg_(0), nTotalPos_(0), nTotalNeg_(0) {}
106 Process(
int id) : process_(id), heprupIndex_(-1), nPassPos_(0), nPassNeg_(0), nTotalPos_(0), nTotalNeg_(0) {}
112 unsigned int nPassPos()
const {
return nPassPos_; }
113 unsigned int nPassNeg()
const {
return nPassNeg_; }
173 #ifdef UNDEF_XERCES_CPP_NAMESPACE_QUALIFIER 174 #undef XERCES_CPP_NAMESPACE_QUALIFIER 177 #endif // GeneratorRunInfo_LHEInterface_LHERunInfo_h
unsigned int nTotalPos() const
const std::vector< std::string > & getComments() const
const int getHEPIDWTUP() const
unsigned int heprupIndex() const
void setLHEXSec(double value, double error)
void addNPassPos(unsigned int n=1)
void addNTotalNeg(unsigned int n=1)
#define XERCES_CPP_NAMESPACE_QUALIFIER
void addSelected(double w)
std::vector< Process > processes
void addNTotalPos(unsigned int n=1)
void addComment(const std::string &line)
const std::vector< Process > & getLumiProcesses() const
void addHeader(const Header &header)
bool operator!=(const LHERunInfo &other) const
Counter(unsigned int n1, double sum1, double sum21)
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
unsigned int heprupIndex_
const std::vector< Header > & getHeaders() const
unsigned int nTotalNeg() const
void addNPassNeg(unsigned int n=1)
void setHepRupIndex(int id)
unsigned int nPassPos() const
const HEPRUP * getHEPRUP() const
std::vector< Process > processesLumi
void addAcceptedBr(double w)
std::vector< std::string > comments
void addAccepted(double w)
std::vector< Header > headers
Counter acceptedBr() const
unsigned int nPassNeg() const