CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
gen::Pythia6ServiceWithCallback Class Reference
Inheritance diagram for gen::Pythia6ServiceWithCallback:
gen::Pythia6Service gen::Pythia6Service gen::FortranInstance gen::FortranInstance

Public Member Functions

 Pythia6ServiceWithCallback (const edm::ParameterSet &ps)
 
 Pythia6ServiceWithCallback (const edm::ParameterSet &pset)
 
- Public Member Functions inherited from gen::Pythia6Service
void closePYUPDA ()
 
void closeSLHA ()
 
void enter () override
 
void openPYUPDA (const char *, bool write_file)
 
void openSLHA (const char *)
 
 Pythia6Service ()
 
 Pythia6Service (edm::ParameterSet const &)
 
CLHEP::HepRandomEngine * randomEngine () const
 
void setCSAParams ()
 
void setGeneralParams ()
 
void setPYUPDAParams (bool afterPyinit)
 
void setRandomEngine (CLHEP::HepRandomEngine *v)
 
void setSLHAFromHeader (const std::vector< std::string > &lines)
 
void setSLHAParams ()
 
 ~Pythia6Service () override
 
- Public Member Functions inherited from gen::FortranInstance
template<typename T >
T call (T(&fn)())
 
template<typename T , typename A >
T call (T(&fn)(A), A a)
 
template<typename T , typename A1 , typename A2 >
T call (T(&fn)(A1, A2), A1 a1, A2 a2)
 
void call (void(&fn)())
 
template<typename A >
void call (void(&fn)(A), A a)
 
template<typename A1 , typename A2 >
void call (void(&fn)(A1, A2), A1 a1, A2 a2)
 
 FortranInstance ()
 
virtual void leave ()
 
virtual ~FortranInstance () noexcept(false)
 

Private Member Functions

void upEvnt () override
 
void upEvnt () override
 
void upInit () override
 
void upInit () override
 
bool upVeto () override
 
bool upVeto () override
 

Additional Inherited Members

- Static Public Member Functions inherited from gen::FortranInstance
template<typename T >
static TgetInstance ()
 
- Static Public Attributes inherited from gen::FortranInstance
static const std::string kFortranInstance = "FortranInstance"
 

Detailed Description

Definition at line 55 of file Cascade2Hadronizer.cc.

Constructor & Destructor Documentation

◆ Pythia6ServiceWithCallback() [1/2]

gen::Pythia6ServiceWithCallback::Pythia6ServiceWithCallback ( const edm::ParameterSet pset)
inline

Definition at line 57 of file Cascade2Hadronizer.cc.

57 : Pythia6Service(pset) {}

◆ Pythia6ServiceWithCallback() [2/2]

gen::Pythia6ServiceWithCallback::Pythia6ServiceWithCallback ( const edm::ParameterSet ps)
inline

Definition at line 60 of file Pythia6Hadronizer.cc.

60 : Pythia6Service(ps) {}

Member Function Documentation

◆ upEvnt() [1/2]

void gen::Pythia6ServiceWithCallback::upEvnt ( )
inlineoverrideprivatevirtual

Reimplemented from gen::FortranInstance.

Definition at line 62 of file Cascade2Hadronizer.cc.

◆ upEvnt() [2/2]

void gen::Pythia6ServiceWithCallback::upEvnt ( )
inlineoverrideprivatevirtual

◆ upInit() [1/2]

void gen::Pythia6ServiceWithCallback::upInit ( )
inlineoverrideprivatevirtual

Reimplemented from gen::FortranInstance.

Definition at line 60 of file Cascade2Hadronizer.cc.

◆ upInit() [2/2]

void gen::Pythia6ServiceWithCallback::upInit ( )
inlineoverrideprivatevirtual

◆ upVeto() [1/2]

bool gen::Pythia6ServiceWithCallback::upVeto ( )
inlineoverrideprivatevirtual

Reimplemented from gen::FortranInstance.

Definition at line 64 of file Cascade2Hadronizer.cc.

64  {
65  bool veto = false;
66  if (!hepeup_.nup)
67  veto = true; //-- LHE Common Blocks
68  return (veto);
69  }

References hepeup_, HEPEUP_::nup, and PbPb_ZMuSkimMuonDPG_cff::veto.

◆ upVeto() [2/2]

bool gen::Pythia6ServiceWithCallback::upVeto ( )
inlineoverrideprivatevirtual

Reimplemented from gen::FortranInstance.

Definition at line 71 of file Pythia6Hadronizer.cc.

71  {
73  return false;
74 
76  return true;
77 
78  bool retValue = Pythia6Hadronizer::getJetMatching()->match(nullptr, nullptr);
79  // below is old code and a note of it
80  // NOTE: I'm passing NULL pointers, instead of HepMC::GenEvent, etc.
81  //retValur = Pythia6Hadronizer::getJetMatching()->match(0, 0, true);
82  return retValue;
83  }

References gen::Pythia6Hadronizer::getJetMatching(), hepeup_, gen::JetMatching::isMatchingDone(), gen::JetMatching::match(), and HEPEUP_::nup.

gen::Pythia6Hadronizer::getJetMatching
static JetMatching * getJetMatching()
Definition: Pythia6Hadronizer.h:53
gen::FortranCallback::getInstance
static FortranCallback * getInstance()
Definition: FortranCallback.h:52
gen::FortranCallback::fillHeader
void fillHeader()
Definition: FortranCallback.h:58
hepeup_
struct HEPEUP_ hepeup_
gen::JetMatching::isMatchingDone
bool isMatchingDone()
Definition: JetMatching.h:74
gen::JetMatching::match
virtual int match(const lhef::LHEEvent *partonLevel, const std::vector< fastjet::PseudoJet > *jetInput)=0
gen::JetMatching::beforeHadronisationExec
virtual void beforeHadronisationExec()
Definition: JetMatching.cc:23
HEPEUP_::nup
int nup
Definition: LHECommonBlocks.h:21
gen::FortranCallback::fillEvent
void fillEvent()
Definition: FortranCallback.h:70
PbPb_ZMuSkimMuonDPG_cff.veto
veto
Definition: PbPb_ZMuSkimMuonDPG_cff.py:61
gen::Pythia6Service::Pythia6Service
Pythia6Service()
Definition: Pythia6Service.cc:73
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27