StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
FastJetFilter.h
1 #ifndef __FastJetFilter_h__
2 #define __FastJetFilter_h__
3 
4 #include <vector>
5 
11 #include "StarGenerator/FILT/StarFilterMaker.h"
12 
13 #ifndef __CINT__
14 #include <fastjet/PseudoJet.hh>
15 #include <fastjet/ClusterSequence.hh>
16 #include <fastjet/JetDefinition.hh>
17 #include <fastjet/Selector.hh>
18 #endif
19 
21 {
22 public:
23  FastJetFilter( const char* name = "partfilt" );
24  virtual ~FastJetFilter(){ /* nada */ }
25 
26  int Init();
27 
28  int Filter( StarGenEvent *event = 0 );
29 
38  void AddTrigger( int _pdgid, double _ptmn=0, double _ptmx=-1, double _etamn=-1, double _etamx=1, int _pdgidParent=0 );
39 
40 private:
41 protected:
42 
43  struct Trigger_t {
44  int pdgid;
45  double ptmn;
46  double ptmx;
47  double etamn;
48  double etamx;
49  int pdgid_parent;
50  Trigger_t() :
51  pdgid(0),
52  ptmn (0.),
53  ptmx (0.),
54  etamn(0.),
55  etamx(0.),
56  pdgid_parent(0)
57  { };
58  Trigger_t( int _pdgid, double _ptmn, double _ptmx, double _etamn, double _etamx, int _pdgid_parent ) :
59  pdgid(_pdgid),
60  ptmn (_ptmn),
61  ptmx (_ptmx),
62  etamn(_etamn),
63  etamx(_etamx),
64  pdgid_parent(_pdgid_parent)
65  {
66  };
67  };
68  vector<Trigger_t> mTriggers;
69 
70 #ifndef __CINT__
71  fastjet::Strategy strategy = fastjet::Best;
72  fastjet::RecombinationScheme recombScheme = fastjet::E_scheme; //Change as you need
73  fastjet::JetDefinition* jetdefinition = nullptr;
74  fastjet::JetAlgorithm algorithm;
75 #endif
76 
77 #if 1 // we dont really need, but this triggers cons to create dictionary
78  ClassDef(FastJetFilter,0);
79 #endif
80 
81 };
82 
83 #endif
int Filter(StarGenEvent *event=0)
Main filter class. Goes anywhere in the chain, filters StarGenEvent objects.
Filter which requires one or more particles in the final state of the event record.
Definition: FastJetFilter.h:20
Base class for event records.
Definition: StarGenEvent.h:81
void AddTrigger(int _pdgid, double _ptmn=0, double _ptmx=-1, double _etamn=-1, double _etamx=1, int _pdgidParent=0)