CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetMatchingHook.h
Go to the documentation of this file.
1 #ifndef gen_JetMatchinhHook_h
2 #define gen_JetMatchingHook_h
3 
4 #include "Pythia8/Pythia.h"
5 
7 
9 
12 
14 
15 class JetMatchingHook : public Pythia8::UserHooks
16 {
17 
18 public:
19 
20  JetMatchingHook( const edm::ParameterSet&, Pythia8::Info* );
21  virtual ~JetMatchingHook();
22 
23  virtual bool canVetoPartonLevel() { return true; }
24  virtual bool doVetoPartonLevel( const Pythia8::Event& event );
25 
26  void setEventNumber( int ievt ) { fEventNumber = ievt; return ; }
27 
28  void init( lhef::LHERunInfo* runInfo );
30  void beforeHadronization( lhef::LHEEvent* lhee );
31 
32 protected:
33 
34  void setLHERunInfo( lhef::LHERunInfo* lheri ) {
35  fRunBlock=lheri;
36  if ( fRunBlock == 0 ) return;
37  const lhef::HEPRUP* heprup = fRunBlock->getHEPRUP();
39  return;
40  }
41  void setLHEEvent( lhef::LHEEvent* lhee ) {
42  fEventBlock=lhee;
43  if ( fEventBlock == 0 ) return;
44  const lhef::HEPEUP* hepeup = fEventBlock->getHEPEUP();
46  return;
47  }
48 
49 private:
50 
54  Pythia8::Info* fInfoPtr;
56 
57  void setHEPEVT( const Pythia8::Event& );
58  // void setHEPEVT();
59  int getAncestor( int, const Pythia8::Event& );
60 
61 };
62 
63 #endif
lhef::LHEEvent * fEventBlock
Pythia8::Info * fInfoPtr
virtual ~JetMatchingHook()
void setLHEEvent(lhef::LHEEvent *lhee)
const HEPEUP * getHEPEUP() const
Definition: LHEEvent.h:43
void beforeHadronization(lhef::LHEEvent *lhee)
virtual bool canVetoPartonLevel()
void resetMatchingStatus()
Definition: JetMatching.h:66
JetMatchingHook(const edm::ParameterSet &, Pythia8::Info *)
static void fillHEPEUP(const HEPEUP *hepeup)
virtual bool doVetoPartonLevel(const Pythia8::Event &event)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void setEventNumber(int ievt)
void setLHERunInfo(lhef::LHERunInfo *lheri)
void init(lhef::LHERunInfo *runInfo)
const HEPRUP * getHEPRUP() const
Definition: LHERunInfo.h:52
void setHEPEVT(const Pythia8::Event &)
gen::JetMatching * fJetMatching
void resetMatchingStatus()
int getAncestor(int, const Pythia8::Event &)
static void fillHEPRUP(const HEPRUP *heprup)
lhef::LHERunInfo * fRunBlock