CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
LHAupLesHouches Class Reference

#include <LHAupLesHouches.h>

Inheritance diagram for LHAupLesHouches:

Public Member Functions

 LHAupLesHouches ()
 
void loadEvent (lhef::LHEEvent *event)
 
void loadRunInfo (lhef::LHERunInfo *runInfo)
 

Private Member Functions

bool setEvent (int idProcIn)
 
bool setInit ()
 

Private Attributes

lhef::LHEEventevent
 
lhef::LHERunInforunInfo
 

Detailed Description

Definition at line 22 of file LHAupLesHouches.h.

Constructor & Destructor Documentation

LHAupLesHouches::LHAupLesHouches ( )
inline

Definition at line 24 of file LHAupLesHouches.h.

24 {;}

Member Function Documentation

void LHAupLesHouches::loadEvent ( lhef::LHEEvent event)
inline

Definition at line 31 of file LHAupLesHouches.h.

References event.

32  { this->event = event; }
lhef::LHEEvent * event
void LHAupLesHouches::loadRunInfo ( lhef::LHERunInfo runInfo)
inline

Definition at line 27 of file LHAupLesHouches.h.

References runInfo.

28  { this->runInfo = runInfo; }
lhef::LHERunInfo * runInfo
bool LHAupLesHouches::setEvent ( int  idProcIn)
private

Definition at line 36 of file LHAupLesHouches.cc.

References lhef::HEPEUP::AQCDUP, lhef::HEPEUP::AQEDUP, event(), i, lhef::HEPEUP::ICOLUP, gen::PdfInfo::id, lhef::HEPEUP::IDPRUP, lhef::HEPEUP::IDUP, lhef::HEPEUP::ISTUP, lhef::HEPEUP::MOTHUP, lhef::HEPEUP::NUP, lhef::HEPEUP::PUP, gen::PdfInfo::scalePDF, lhef::HEPEUP::SCALUP, lhef::HEPEUP::SPINUP, lhef::HEPEUP::VTIMUP, gen::PdfInfo::x, gen::PdfInfo::xPDF, and lhef::HEPEUP::XWGTUP.

37 {
38  if (!event)
39  return false;
40  const lhef::HEPEUP &hepeup = *event->getHEPEUP();
41 
42  setProcess(hepeup.IDPRUP, hepeup.XWGTUP, hepeup.SCALUP,
43  hepeup.AQEDUP, hepeup.AQCDUP);
44 
45  for(int i = 0; i < hepeup.NUP; i++)
46  addParticle(hepeup.IDUP[i], hepeup.ISTUP[i],
47  hepeup.MOTHUP[i].first, hepeup.MOTHUP[i].second,
48  hepeup.ICOLUP[i].first, hepeup.ICOLUP[i].second,
49  hepeup.PUP[i][0], hepeup.PUP[i][1],
50  hepeup.PUP[i][2], hepeup.PUP[i][3],
51  hepeup.PUP[i][4], hepeup.VTIMUP[i],
52  hepeup.SPINUP[i]);
53 
54  const lhef::LHEEvent::PDF *pdf = event->getPDF();
55  if (pdf) {
56  this->setPdf(pdf->id.first, pdf->id.second,
57  pdf->x.first, pdf->x.second,
58  pdf->scalePDF,
59  pdf->xPDF.first, pdf->xPDF.second, true);
60  }
61  else {
62  this->setPdf(hepeup.IDUP[0], hepeup.IDUP[1],
63  hepeup.PUP[0][3] / runInfo->getHEPRUP()->EBMUP.first,
64  hepeup.PUP[1][3] / runInfo->getHEPRUP()->EBMUP.second,
65  0., 0., 0., false);
66  }
67 
68 // hadronisation->onBeforeHadronisation().emit();
69 
70 // event.reset();
71  return true;
72 }
int i
Definition: DBlmapReader.cc:9
std::pair< double, double > EBMUP
Definition: LesHouches.h:78
std::pair< double, double > x
Definition: PdfInfo.h:11
lhef::LHEEvent * event
std::vector< double > VTIMUP
Definition: LesHouches.h:254
std::pair< double, double > xPDF
Definition: PdfInfo.h:12
std::vector< std::pair< int, int > > MOTHUP
Definition: LesHouches.h:236
std::vector< FiveVector > PUP
Definition: LesHouches.h:248
std::vector< double > SPINUP
Definition: LesHouches.h:261
std::vector< int > ISTUP
Definition: LesHouches.h:230
std::vector< int > IDUP
Definition: LesHouches.h:225
std::pair< int, int > id
Definition: PdfInfo.h:10
double AQCDUP
Definition: LesHouches.h:220
const HEPRUP * getHEPRUP() const
Definition: LHERunInfo.h:52
lhef::LHERunInfo * runInfo
double AQEDUP
Definition: LesHouches.h:215
double XWGTUP
Definition: LesHouches.h:196
double scalePDF
Definition: PdfInfo.h:13
std::vector< std::pair< int, int > > ICOLUP
Definition: LesHouches.h:242
double SCALUP
Definition: LesHouches.h:210
bool LHAupLesHouches::setInit ( )
private

Definition at line 14 of file LHAupLesHouches.cc.

References lhef::HEPRUP::EBMUP, i, lhef::HEPRUP::IDBMUP, lhef::HEPRUP::IDWTUP, lhef::HEPRUP::LPRUP, lhef::HEPRUP::NPRUP, lhef::HEPRUP::PDFGUP, lhef::HEPRUP::PDFSUP, lhef::HEPRUP::XERRUP, lhef::HEPRUP::XMAXUP, and lhef::HEPRUP::XSECUP.

15 {
16  if (!runInfo)
17  return false;
18  const lhef::HEPRUP &heprup = *runInfo->getHEPRUP();
19 
20  setBeamA(heprup.IDBMUP.first, heprup.EBMUP.first,
21  heprup.PDFGUP.first, heprup.PDFSUP.first);
22  setBeamB(heprup.IDBMUP.second, heprup.EBMUP.second,
23  heprup.PDFGUP.second, heprup.PDFSUP.second);
24  setStrategy(heprup.IDWTUP);
25 
26  for(int i = 0; i < heprup.NPRUP; i++)
27  addProcess(heprup.LPRUP[i], heprup.XSECUP[i],
28  heprup.XERRUP[i], heprup.XMAXUP[i]);
29 
30 // hadronisation->onInit().emit();
31 
32 // runInfo.reset();
33  return true;
34 }
int i
Definition: DBlmapReader.cc:9
std::pair< double, double > EBMUP
Definition: LesHouches.h:78
std::pair< int, int > IDBMUP
Definition: LesHouches.h:73
std::pair< int, int > PDFGUP
Definition: LesHouches.h:84
std::vector< double > XERRUP
Definition: LesHouches.h:114
std::vector< double > XMAXUP
Definition: LesHouches.h:119
const HEPRUP * getHEPRUP() const
Definition: LHERunInfo.h:52
std::pair< int, int > PDFSUP
Definition: LesHouches.h:90
lhef::LHERunInfo * runInfo
std::vector< double > XSECUP
Definition: LesHouches.h:108
std::vector< int > LPRUP
Definition: LesHouches.h:124

Member Data Documentation

lhef::LHEEvent* LHAupLesHouches::event
private

Definition at line 43 of file LHAupLesHouches.h.

Referenced by loadEvent().

lhef::LHERunInfo* LHAupLesHouches::runInfo
private

Definition at line 41 of file LHAupLesHouches.h.

Referenced by loadRunInfo().