CMS 3D CMS Logo

Py8toJetInput.h
Go to the documentation of this file.
1 #ifndef gen_Py8toJetInput_h
2 #define gen_Py8toJetInput_h
3 
4 #include "Pythia8Plugins/FastJet3.h" // Py8 overhead on top of FastJets package
5 #include "Pythia8/Event.h"
6 
7 namespace lhef {
8 
9  class LHEEvent;
10 
11 }
12 
14 {
15  public:
16  typedef Pythia8::Event Event;
17  typedef Pythia8::Particle Particle;
18 
19  Py8toJetInput(): fJetEtaMax(10.) {}
20  virtual ~Py8toJetInput() {}
21 
22  virtual const std::vector<fastjet::PseudoJet> fillJetAlgoInput( const Event&, const Event&,
23  const lhef::LHEEvent* lhee=0,
24  const std::vector<int>* partonList=0 );
25  void setJetEtaMax( double max ) { fJetEtaMax=max; return; }
26 
27  protected:
28 
29  enum partonTypes { ID_TOP=6, ID_GLUON=21, ID_PHOTON=22 };
30  double fJetEtaMax;
31 
32  int getAncestor( int, const Event&, const Event& );
33 
34  std::vector<fastjet::PseudoJet> fJetInput;
35 
36 };
37 
39 {
40 
41  public:
42 
44  virtual ~Py8toJetInputHEPEVT() {}
45 
46  const std::vector<fastjet::PseudoJet> fillJetAlgoInput( const Event&, const Event&,
47  const lhef::LHEEvent*,
48  const std::vector<int>* partonList=0 );
49 };
50 
51 #endif
void setJetEtaMax(double max)
Definition: Py8toJetInput.h:25
virtual ~Py8toJetInput()
Definition: Py8toJetInput.h:20
Pythia8::Particle Particle
Definition: Py8toJetInput.h:17
virtual ~Py8toJetInputHEPEVT()
Definition: Py8toJetInput.h:44
double fJetEtaMax
Definition: Py8toJetInput.h:30
Pythia8::Event Event
Definition: Py8toJetInput.h:16
std::vector< fastjet::PseudoJet > fJetInput
Definition: Py8toJetInput.h:34