CMS 3D CMS Logo

LHERunInfo.cc
Go to the documentation of this file.
1 #include <algorithm>
2 #include <iostream>
3 #include <iomanip>
4 #include <string>
5 #include <cctype>
6 #include <vector>
7 #include <memory>
8 #include <cmath>
9 #include <cstring>
10 
11 #include <boost/bind.hpp>
12 
13 #include <xercesc/dom/DOM.hpp>
14 #include <xercesc/parsers/XercesDOMParser.hpp>
15 #include <xercesc/sax/HandlerBase.hpp>
16 
19 
21 
23 
24 #include "XMLUtils.h"
25 
27 
28 static int skipWhitespace(std::istream &in)
29 {
30  int ch;
31  do {
32  ch = in.get();
33  } while(std::isspace(ch));
34  if (ch != std::istream::traits_type::eof())
35  in.putback(ch);
36  return ch;
37 }
38 
39 namespace lhef {
40 
41 LHERunInfo::LHERunInfo(std::istream &in)
42 {
43  in >> heprup.IDBMUP.first >> heprup.IDBMUP.second
44  >> heprup.EBMUP.first >> heprup.EBMUP.second
45  >> heprup.PDFGUP.first >> heprup.PDFGUP.second
46  >> heprup.PDFSUP.first >> heprup.PDFSUP.second
47  >> heprup.IDWTUP >> heprup.NPRUP;
48  if (!in.good())
49  throw cms::Exception("InvalidFormat")
50  << "Les Houches file contained invalid"
51  " header in init section." << std::endl;
52 
53  heprup.resize();
54 
55  for(int i = 0; i < heprup.NPRUP; i++) {
56  in >> heprup.XSECUP[i] >> heprup.XERRUP[i]
57  >> heprup.XMAXUP[i] >> heprup.LPRUP[i];
58  if (!in.good())
59  throw cms::Exception("InvalidFormat")
60  << "Les Houches file contained invalid data"
61  " in header payload line " << (i + 1)
62  << "." << std::endl;
63  }
64 
65  while(skipWhitespace(in) == '#') {
67  std::getline(in, line);
68  comments.push_back(line + "\n");
69  }
70 
71  if (!in.eof())
72  edm::LogInfo("Generator|LHEInterface")
73  << "Les Houches file contained spurious"
74  " content after the regular data (this is normal for LHEv3 files for now)." << std::endl;
75 
76  init();
77 }
78 
80  heprup(heprup)
81 {
82  init();
83 }
84 
86  const std::vector<LHERunInfoProduct::Header> &headers,
87  const std::vector<std::string> &comments) :
88  heprup(heprup)
89 {
90  std::copy(headers.begin(), headers.end(),
91  std::back_inserter(this->headers));
92  std::copy(comments.begin(), comments.end(),
93  std::back_inserter(this->comments));
94 
95  init();
96 }
97 
99  heprup(product.heprup())
100 {
101  std::copy(product.headers_begin(), product.headers_end(),
102  std::back_inserter(headers));
103  std::copy(product.comments_begin(), product.comments_end(),
104  std::back_inserter(comments));
105 
106  init();
107 }
108 
110 {
111 }
112 
114 {
115  for(int i = 0; i < heprup.NPRUP; i++) {
116  Process proc;
117  proc.setProcess(heprup.LPRUP[i]);
118  proc.setHepRupIndex((unsigned int)i);
119  processes.push_back(proc);
120  }
121 
122  std::sort(processes.begin(), processes.end());
123 }
124 
126 {
127  processesLumi.clear();
128  for(int i = 0; i < heprup.NPRUP; i++) {
129 
130  Process proc;
131  proc.setProcess(heprup.LPRUP[i]);
132  proc.setHepRupIndex((unsigned int)i);
133  proc.setLHEXSec(heprup.XSECUP[i],heprup.XERRUP[i]);
134  processesLumi.push_back(proc);
135 
136  }
137 
138  std::sort(processesLumi.begin(), processesLumi.end());
139 }
140 
141 
143 {
144  return heprup == other.heprup;
145 }
146 
147 void LHERunInfo::count(int process, CountMode mode, double eventWeight,
148  double brWeight, double matchWeight)
149 {
150  std::vector<Process>::iterator proc =
151  std::lower_bound(processes.begin(), processes.end(), process);
152  if (proc == processes.end() || proc->process() != process)
153  return;
154 
155  std::vector<Process>::iterator procLumi =
156  std::lower_bound(processesLumi.begin(), processesLumi.end(), process);
157  if (procLumi == processesLumi.end() || procLumi->process() != process)
158  return;
159 
160  switch(mode) {
161  case kAccepted:
162  proc->addAcceptedBr(eventWeight * brWeight * matchWeight);
163  proc->addAccepted(eventWeight * matchWeight);
164  procLumi->addAcceptedBr(eventWeight * brWeight * matchWeight);
165  procLumi->addAccepted(eventWeight * matchWeight);
166  case kKilled:
167  proc->addKilled(eventWeight * matchWeight);
168  procLumi->addKilled(eventWeight * matchWeight);
169  if(eventWeight>0)
170  {
171  proc->addNPassPos();
172  procLumi->addNPassPos();
173  }
174  else
175  {
176  proc->addNPassNeg();
177  procLumi->addNPassNeg();
178  }
179  case kSelected:
180  proc->addSelected(eventWeight);
181  procLumi->addSelected(eventWeight);
182  if(eventWeight>0)
183  {
184  proc->addNTotalPos();
185  procLumi->addNTotalPos();
186  }
187  else
188  {
189  proc->addNTotalNeg();
190  procLumi->addNTotalNeg();
191  }
192  case kTried:
193  proc->addTried(eventWeight);
194  procLumi->addTried(eventWeight);
195  }
196 }
197 
198 
200 {
201  double sigSelSum = 0.0;
202  double sigSum = 0.0;
203  double sigBrSum = 0.0;
204  double err2Sum = 0.0;
205  double errBr2Sum = 0.0;
206  int idwtup = heprup.IDWTUP;
207  for(std::vector<Process>::const_iterator proc = processes.begin();
208  proc != processes.end(); ++proc) {
209  unsigned int idx = proc->heprupIndex();
210 
211  if (!proc->killed().n())
212  continue;
213 
214  double sigma2Sum, sigma2Err;
215  sigma2Sum = heprup.XSECUP[idx]* heprup.XSECUP[idx];
216  sigma2Err = heprup.XERRUP[idx]* heprup.XERRUP[idx];
217 
218  double sigmaAvg = heprup.XSECUP[idx];
219 
220  double fracAcc = 0;
221  double ntotal = proc->nTotalPos()-proc->nTotalNeg();
222  double npass = proc->nPassPos() -proc->nPassNeg();
223  switch(idwtup){
224  case 3: case -3:
225  fracAcc = ntotal > 0? npass/ntotal: -1;
226  break;
227  default:
228  fracAcc = proc->selected().sum() > 0? proc->killed().sum() / proc->selected().sum():-1;
229  break;
230  }
231 
232  if(fracAcc<=0)continue;
233 
234  double fracBr = proc->accepted().sum() > 0.0 ?
235  proc->acceptedBr().sum() / proc->accepted().sum() : 1;
236  double sigmaFin = sigmaAvg * fracAcc ;
237  double sigmaFinBr = sigmaFin * fracBr;
238 
239  double relErr = 1.0;
240 
241  double efferr2=0;
242  switch(idwtup) {
243  case 3: case -3:
244  {
245  double ntotal_pos = proc->nTotalPos();
246  double effp = ntotal_pos > 0?
247  (double)proc->nPassPos()/ntotal_pos:0;
248  double effp_err2 = ntotal_pos > 0?
249  (1-effp)*effp/ntotal_pos: 0;
250 
251  double ntotal_neg = proc->nTotalNeg();
252  double effn = ntotal_neg > 0?
253  (double)proc->nPassNeg()/ntotal_neg:0;
254  double effn_err2 = ntotal_neg > 0?
255  (1-effn)*effn/ntotal_neg: 0;
256 
257  efferr2 = ntotal > 0 ?
258  (ntotal_pos*ntotal_pos*effp_err2 +
259  ntotal_neg*ntotal_neg*effn_err2)/ntotal/ntotal:0;
260  break;
261  }
262  default:
263  {
264  double denominator = pow(proc->selected().sum(),4);
265  double passw = proc->killed().sum();
266  double passw2 = proc->killed().sum2();
267  double failw = proc->selected().sum() - passw;
268  double failw2 = proc->selected().sum2() - passw2;
269  double numerator = (passw2*failw*failw + failw2*passw*passw);
270 
271  efferr2 = denominator > 0?
272  numerator/denominator:0;
273  break;
274  }
275  }
276  double delta2Veto = efferr2/fracAcc/fracAcc;
277  double delta2Sum = delta2Veto
278  + sigma2Err / sigma2Sum;
279  relErr = (delta2Sum > 0.0 ?
280  std::sqrt(delta2Sum) : 0.0);
281 
282  double deltaFin = sigmaFin * relErr;
283  double deltaFinBr = sigmaFinBr * relErr;
284 
285  sigSelSum += sigmaAvg;
286  sigSum += sigmaFin;
287  sigBrSum += sigmaFinBr;
288  err2Sum += deltaFin * deltaFin;
289  errBr2Sum += deltaFinBr * deltaFinBr;
290  }
291 
292  XSec result(sigBrSum,std::sqrt(errBr2Sum));
293 
294  return result;
295 }
296 
298 {
299  double sigSelSum = 0.0;
300  double sigSum = 0.0;
301  double sigBrSum = 0.0;
302  double errSel2Sum = 0.0;
303  double err2Sum = 0.0;
304  double errBr2Sum = 0.0;
305  double errMatch2Sum = 0.0;
306  unsigned long nAccepted = 0;
307  unsigned long nTried = 0;
308  unsigned long nAccepted_pos = 0;
309  unsigned long nTried_pos = 0;
310  unsigned long nAccepted_neg = 0;
311  unsigned long nTried_neg = 0;
312  int idwtup = heprup.IDWTUP;
313 
314  LogDebug("LHERunInfo") << " statistics";
315  LogDebug("LHERunInfo") << "Process and cross-section statistics";
316  LogDebug("LHERunInfo") << "------------------------------------";
317  LogDebug("LHERunInfo") << "Process\t\txsec_before [pb]\t\tpassed\tnposw\tnnegw\ttried\tnposw\tnnegw \txsec_match [pb]\t\t\taccepted [%]\t event_eff [%]";
318 
319  for(std::vector<Process>::const_iterator proc = processes.begin();
320  proc != processes.end(); ++proc) {
321  unsigned int idx = proc->heprupIndex();
322 
323  if (!proc->selected().n()) {
324  LogDebug("LHERunInfo") << proc->process() << "\t0\t0\tn/a\t\t\tn/a";
325  continue;
326  }
327 
328  double sigma2Sum, sigma2Err;
329  sigma2Sum = heprup.XSECUP[idx]* heprup.XSECUP[idx];
330  sigma2Err = heprup.XERRUP[idx]* heprup.XERRUP[idx];
331 
332  double sigmaAvg = heprup.XSECUP[idx];
333 
334  double fracAcc = 0;
335  double ntotal = proc->nTotalPos()-proc->nTotalNeg();
336  double npass = proc->nPassPos() -proc->nPassNeg();
337  switch(idwtup){
338  case 3: case -3:
339  fracAcc = ntotal > 0? npass/ntotal: -1;
340  break;
341  default:
342  fracAcc = proc->selected().sum() > 0? proc->killed().sum() / proc->selected().sum():-1;
343  break;
344  }
345 
346 
347  double fracBr = proc->accepted().sum() > 0.0 ?
348  proc->acceptedBr().sum() / proc->accepted().sum() : 1;
349  double sigmaFin = fracAcc >0? sigmaAvg * fracAcc : 0;
350  double sigmaFinBr = sigmaFin * fracBr;
351 
352  double relErr = 1.0;
353  double relAccErr = 1.0;
354  double efferr2=0;
355 
356  if (proc->killed().n() > 0 && fracAcc > 0) {
357  switch(idwtup) {
358  case 3: case -3:
359  {
360  double ntotal_pos = proc->nTotalPos();
361  double effp = ntotal_pos > 0?
362  (double)proc->nPassPos()/ntotal_pos:0;
363  double effp_err2 = ntotal_pos > 0?
364  (1-effp)*effp/ntotal_pos: 0;
365 
366  double ntotal_neg = proc->nTotalNeg();
367  double effn = ntotal_neg > 0?
368  (double)proc->nPassNeg()/ntotal_neg:0;
369  double effn_err2 = ntotal_neg > 0?
370  (1-effn)*effn/ntotal_neg: 0;
371 
372  efferr2 = ntotal > 0 ?
373  (ntotal_pos*ntotal_pos*effp_err2 +
374  ntotal_neg*ntotal_neg*effn_err2)/ntotal/ntotal:0;
375  break;
376  }
377  default:
378  {
379  double denominator = pow(proc->selected().sum(),4);
380  double passw = proc->killed().sum();
381  double passw2 = proc->killed().sum2();
382  double failw = proc->selected().sum() - passw;
383  double failw2 = proc->selected().sum2() - passw2;
384  double numerator = (passw2*failw*failw + failw2*passw*passw);
385 
386  efferr2 = denominator>0?
387  numerator/denominator:0;
388  break;
389  }
390  }
391  double delta2Veto = efferr2/fracAcc/fracAcc;
392  double delta2Sum = delta2Veto
393  + sigma2Err / sigma2Sum;
394  relErr = (delta2Sum > 0.0 ?
395  std::sqrt(delta2Sum) : 0.0);
396  relAccErr = (delta2Veto > 0.0 ?
397  std::sqrt(delta2Veto) : 0.0);
398  }
399  double deltaFin = sigmaFin * relErr;
400  double deltaFinBr = sigmaFinBr * relErr;
401 
402  double ntotal_proc = proc->nTotalPos()+proc->nTotalNeg();
403  double event_eff_proc = ntotal_proc>0? (double)(proc->nPassPos()+ proc->nPassNeg())/ntotal_proc: -1;
404  double event_eff_err_proc = ntotal_proc>0? std::sqrt((1-event_eff_proc)*event_eff_proc/ntotal_proc): -1;
405 
406  LogDebug("LHERunInfo") << proc->process() << "\t\t"
407  << std::scientific << std::setprecision(3)
408  << heprup.XSECUP[proc->heprupIndex()] << " +/- "
409  << heprup.XERRUP[proc->heprupIndex()] << "\t\t"
410  << proc->accepted().n() << "\t"
411  << proc->nPassPos() << "\t"
412  << proc->nPassNeg() << "\t"
413  << proc->tried().n() << "\t"
414  << proc->nTotalPos() << "\t"
415  << proc->nTotalNeg() << "\t"
416  << std::scientific << std::setprecision(3)
417  << sigmaFinBr << " +/- "
418  << deltaFinBr << "\t\t"
419  << std::fixed << std::setprecision(1)
420  << (fracAcc * 100) << " +/- " << ( std::sqrt(efferr2) * 100) << "\t"
421  << std::fixed << std::setprecision(1)
422  << (event_eff_proc * 100) << " +/- " << ( event_eff_err_proc * 100);
423 
424  nAccepted += proc->accepted().n();
425  nTried += proc->tried().n();
426  nAccepted_pos += proc->nPassPos();
427  nTried_pos += proc->nTotalPos();
428  nAccepted_neg += proc->nPassNeg();
429  nTried_neg += proc->nTotalNeg();
430  sigSelSum += sigmaAvg;
431  sigSum += sigmaFin;
432  sigBrSum += sigmaFinBr;
433  errSel2Sum += sigma2Err;
434  err2Sum += deltaFin * deltaFin;
435  errBr2Sum += deltaFinBr * deltaFinBr;
436  errMatch2Sum += sigmaFin*relAccErr*sigmaFin*relAccErr;
437  }
438 
439  double ntotal_all = (nTried_pos+nTried_neg);
440  double event_eff_all = ntotal_all>0? (double)(nAccepted_pos+nAccepted_neg)/ntotal_all: -1;
441  double event_eff_err_all = ntotal_all>0? std::sqrt((1-event_eff_all)*event_eff_all/ntotal_all): -1;
442 
443  LogDebug("LHERunInfo") << "Total\t\t"
444  << std::scientific << std::setprecision(3)
445  << sigSelSum << " +/- " << std::sqrt(errSel2Sum) << "\t\t"
446  << nAccepted << "\t"
447  << nAccepted_pos << "\t"
448  << nAccepted_neg << "\t"
449  << nTried << "\t"
450  << nTried_pos << "\t"
451  << nTried_neg << "\t"
452  << std::scientific << std::setprecision(3)
453  << sigBrSum << " +/- "
454  << std::sqrt(errBr2Sum) << "\t\t"
455  << std::fixed << std::setprecision(1)
456  << (sigSum / sigSelSum * 100) << " +/- " << (std::sqrt(errMatch2Sum)/sigSelSum * 100) << "\t"
457  << std::fixed << std::setprecision(1)
458  << (event_eff_all * 100) << " +/- " << (event_eff_err_all * 100);
459 }
460 
462  xmlDoc(nullptr)
463 {
464 }
465 
468 {
469 }
470 
473 {
474 }
475 
478 {
479 }
480 
482 {
483  if (xmlDoc)
484  xmlDoc->release();
485 }
486 
487 static void fillLines(std::vector<std::string> &lines, const char *data,
488  int len = -1)
489 {
490  const char *end = len >= 0 ? (data + len) : nullptr;
491  while(*data && (!end || data < end)) {
492  std::size_t len = std::strcspn(data, "\r\n");
493  if (end && data + len > end)
494  len = end - data;
495  if (data[len] == '\r' && data[len + 1] == '\n')
496  len += 2;
497  else if (data[len])
498  len++;
499  lines.push_back(std::string(data, len));
500  data += len;
501  }
502 }
503 
504 static std::vector<std::string> domToLines(const DOMNode *node)
505 {
506  std::vector<std::string> result;
507  DOMImplementation *impl =
508  DOMImplementationRegistry::getDOMImplementation(
509  XMLUniStr("Core"));
510  std::auto_ptr<DOMLSSerializer> writer(((DOMImplementationLS*)(impl))->createLSSerializer());
511 
512  std::auto_ptr<DOMLSOutput> outputDesc(((DOMImplementationLS*)impl)->createLSOutput());
513  assert(outputDesc.get());
514  outputDesc->setEncoding(XMLUniStr("UTF-8"));
515 
516  XMLSimpleStr buffer(writer->writeToString(node));
517 
518  const char *p = std::strchr((const char*)buffer, '>') + 1;
519  const char *q = std::strrchr(p, '<');
520  fillLines(result, p, q - p);
521 
522  return result;
523 }
524 
525 std::vector<std::string> LHERunInfo::findHeader(const std::string &tag) const
526 {
527  const LHERunInfo::Header *header = nullptr;
528  for(std::vector<Header>::const_iterator iter = headers.begin();
529  iter != headers.end(); ++iter) {
530  if (iter->tag() == tag)
531  return std::vector<std::string>(iter->begin(),
532  iter->end());
533  if (iter->tag() == "header")
534  header = &*iter;
535  }
536 
537  if (!header)
538  return std::vector<std::string>();
539 
540  const DOMNode *root = header->getXMLNode();
541  if (!root)
542  return std::vector<std::string>();
543 
544  for(const DOMNode *iter = root->getFirstChild();
545  iter; iter = iter->getNextSibling()) {
546  if (iter->getNodeType() != DOMNode::ELEMENT_NODE)
547  continue;
548  if (tag == (const char*)XMLSimpleStr(iter->getNodeName()))
549  return domToLines(iter);
550  }
551 
552  return std::vector<std::string>();
553 }
554 
555 namespace {
556  class HeaderReader : public CBInputStream::Reader {
557  public:
558  HeaderReader(const LHERunInfo::Header *header) :
559  header(header), mode(kHeader),
560  iter(header->begin())
561  {
562  }
563 
564  const std::string &data() override
565  {
566  switch(mode) {
567  case kHeader:
568  tmp = "<" + header->tag() + ">";
569  mode = kBody;
570  break;
571  case kBody:
572  if (iter != header->end())
573  return *iter++;
574  tmp = "</" + header->tag() + ">";
575  mode = kFooter;
576  break;
577  case kFooter:
578  tmp.clear();
579  }
580 
581  return tmp;
582  }
583 
584  private:
585  enum Mode {
586  kHeader,
587  kBody,
588  kFooter
589  };
590 
591  const LHERunInfo::Header *header;
592  Mode mode;
595  };
596 } // anonymous namespace
597 
598 const DOMNode *LHERunInfo::Header::getXMLNode() const
599 {
600  if (tag().empty())
601  return nullptr;
602 
603  if (!xmlDoc) {
604  XercesDOMParser parser;
605  parser.setValidationScheme(XercesDOMParser::Val_Auto);
606  parser.setDoNamespaces(false);
607  parser.setDoSchema(false);
608  parser.setValidationSchemaFullChecking(false);
609 
610  HandlerBase errHandler;
611  parser.setErrorHandler(&errHandler);
612  parser.setCreateEntityReferenceNodes(false);
613 
614  try {
615  std::auto_ptr<CBInputStream::Reader> reader(
616  new HeaderReader(this));
617  CBInputSource source(reader);
618  parser.parse(source);
619  xmlDoc = parser.adoptDocument();
620  } catch(const XMLException &e) {
621  throw cms::Exception("Generator|LHEInterface")
622  << "XML parser reported DOM error no. "
623  << (unsigned long)e.getCode()
624  << ": " << XMLSimpleStr(e.getMessage()) << "."
625  << std::endl;
626  } catch(const SAXException &e) {
627  throw cms::Exception("Generator|LHEInterface")
628  << "XML parser reported: "
629  << XMLSimpleStr(e.getMessage()) << "."
630  << std::endl;
631  }
632  }
633 
634  return xmlDoc->getDocumentElement();
635 }
636 
637 std::pair<int, int> LHERunInfo::pdfSetTranslation() const
638 {
639  int pdfA = -1, pdfB = -1;
640 
641  if (heprup.PDFGUP.first >= 0) {
642  pdfA = heprup.PDFSUP.first;
643  }
644 
645  if (heprup.PDFGUP.second >= 0) {
646  pdfB = heprup.PDFSUP.second;
647  }
648 
649  return std::make_pair(pdfA, pdfB);
650 }
651 
652 const bool operator == (const LHERunInfo::Process& lhs, const LHERunInfo::Process &rhs)
653 { return (lhs.process() == rhs.process()); }
654 
655 const bool operator < (const LHERunInfo::Process& lhs, const LHERunInfo::Process &rhs)
656 { return (lhs.process() < rhs.process()); }
657 
658 } // namespace lhef
#define LogDebug(id)
static XERCES_CPP_NAMESPACE_USE int skipWhitespace(std::istream &in)
Definition: LHERunInfo.cc:28
void resize(int nrup)
Definition: LesHouches.h:52
const bool operator<(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs)
Definition: LHERunInfo.cc:655
const std::vector< std::string > & lines() const
void setLHEXSec(double value, double error)
Definition: LHERunInfo.h:134
def copy(args, dbName)
TrainProcessor *const proc
Definition: MVATrainer.cc:101
std::pair< double, double > EBMUP
Definition: LesHouches.h:78
comments_const_iterator comments_end() const
static std::vector< std::string > domToLines(const DOMNode *node)
Definition: LHERunInfo.cc:504
XSec xsec() const
Definition: LHERunInfo.cc:199
headers_const_iterator headers_end() const
std::pair< int, int > IDBMUP
Definition: LesHouches.h:73
std::vector< std::string >::const_iterator const_iterator
std::vector< Process > processes
Definition: LHERunInfo.h:166
const_iterator end() const
#define nullptr
std::pair< int, int > PDFGUP
Definition: LesHouches.h:84
dummy::DOMDocument * xmlDoc
Definition: LHERunInfo.h:49
headers_const_iterator headers_begin() const
T sqrt(T t)
Definition: SSEVec.h:18
const std::string & tag() const
LHERunInfo(std::istream &in)
Definition: LHERunInfo.cc:41
std::vector< double > XERRUP
Definition: LesHouches.h:114
std::vector< double > XMAXUP
Definition: LesHouches.h:119
void setHepRupIndex(int id)
Definition: LHERunInfo.h:133
bool operator==(const Header &other) const
comments_const_iterator comments_begin() const
std::vector< Process > processesLumi
Definition: LHERunInfo.h:175
std::pair< int, int > pdfSetTranslation() const
Definition: LHERunInfo.cc:637
std::pair< int, int > PDFSUP
Definition: LesHouches.h:90
std::vector< std::string > comments
Definition: LHERunInfo.h:168
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::vector< Header > headers
Definition: LHERunInfo.h:167
void count(int process, CountMode count, double eventWeight=1.0, double brWeight=1.0, double matchWeight=1.0)
Definition: LHERunInfo.cc:147
std::vector< std::string > findHeader(const std::string &tag) const
Definition: LHERunInfo.cc:525
bool operator==(const LHERunInfo &other) const
Definition: LHERunInfo.cc:142
std::vector< double > XSECUP
Definition: LesHouches.h:108
static void fillLines(std::vector< std::string > &lines, const char *data, int len=-1)
Definition: LHERunInfo.cc:487
static std::string const source
Definition: EdmProvDump.cc:43
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
const_iterator begin() const
void statistics() const
Definition: LHERunInfo.cc:297
std::vector< int > LPRUP
Definition: LesHouches.h:124