8 #include <boost/shared_ptr.hpp> 10 #include <ThePEG/Interface/ClassDocumentation.h> 11 #include <ThePEG/Interface/InterfacedBase.h> 12 #include <ThePEG/Interface/Parameter.h> 13 #include <ThePEG/Utilities/ClassTraits.h> 15 #include <ThePEG/LesHouches/LesHouches.h> 16 #include <ThePEG/LesHouches/LesHouchesReader.h> 38 IBPtr
clone()
const override {
return new_ptr(*
this); }
39 IBPtr
fullclone()
const override {
return new_ptr(*
this); }
43 void close()
override;
46 virtual double eventWeight();
48 double getEvent()
override;
49 bool doReadEvent()
override;
67 public ClassTraitsBase<LesHouchesInterface> {
68 static string className() {
return "ThePEG::LesHouchesInterface"; }
69 static string library() {
return "pluginGeneratorInterfaceThePEGHadronisation.so"; }
76 LesHouchesInterface::LesHouchesInterface() :
96 heprup.EBMUP = orig.
EBMUP;
97 heprup.PDFGUP = orig.
PDFGUP;
98 heprup.PDFSUP = orig.
PDFSUP;
99 heprup.NPRUP = orig.
NPRUP;
100 heprup.LPRUP = orig.
LPRUP;
101 heprup.XSECUP = orig.
XSECUP;
102 heprup.XERRUP = orig.
XERRUP;
103 heprup.XMAXUP = orig.
XMAXUP;
138 <<
"Found event which cannot be handled by " 139 <<
"the assigned PartonExtractor." << std::endl;
152 boost::shared_ptr<LHEEvent>
event =
157 hepeup.XPDWUP.first = hepeup.XPDWUP.second = 0;
162 hepeup.IDPRUP = orig.
IDPRUP;
163 hepeup.SCALUP = orig.
SCALUP;
164 hepeup.AQEDUP = orig.
AQEDUP;
165 hepeup.AQCDUP = orig.
AQCDUP;
174 hepeup.ISTUP = orig.
ISTUP;
175 hepeup.MOTHUP = orig.
MOTHUP;
176 hepeup.ICOLUP = orig.
ICOLUP;
177 hepeup.VTIMUP = orig.
VTIMUP;
178 hepeup.SPINUP = orig.
SPINUP;
180 for(
int i = 0;
i < hepeup.NUP;
i++)
182 hepeup.PUP[
i].begin());
196 static ClassDocumentation<LesHouchesInterface> documentation
197 (
"ThePEG::LesHouchesInterface interfaces with LHEInterface");
199 static Parameter<LesHouchesInterface, ProxyID> interfaceProxyID
200 (
"ProxyID",
"The ProxyID.",
202 ProxyID(), ProxyID(),
false,
false,
false);
204 interfaceProxyID.rank(11);
double getEvent() override
virtual double eventWeight()
def fillEvent(tree, event)
std::pair< double, double > EBMUP
std::vector< double > VTIMUP
std::pair< int, int > IDBMUP
LHEProxy::ProxyID proxyID
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
~LesHouchesInterface() override
std::pair< int, int > PDFGUP
std::vector< std::pair< int, int > > MOTHUP
IBPtr clone() const override
static string className()
IBPtr fullclone() const override
std::vector< FiveVector > PUP
std::vector< double > SPINUP
std::vector< double > XERRUP
bool doReadEvent() override
std::vector< double > XMAXUP
const HEPRUP * getHEPRUP() const
std::pair< int, int > PDFSUP
virtual double reweight()
std::vector< double > XSECUP
static ClassDescription< LesHouchesInterface > initLesHouchesInterface
void reset(double vett[256])
std::vector< std::pair< int, int > > ICOLUP