CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BsJpsiPhiFilter.h
Go to the documentation of this file.
1 #ifndef _BsJpsiPhiFilter_h_
2 #define _BsJpsiPhiFilter_h_
3 
4 
5 // system include files
6 #include <memory>
7 #include <iostream>
8 #include <vector>
9 
10 // user include files
13 
16 
18 
20 
21 #include "HepMC/GenVertex.h"
22 
23 
24 //
25 
26 
28 {
29 
30 public:
31 
32  explicit BsJpsiPhiFilter(const edm::ParameterSet&);
34 
35  virtual bool filter(edm::Event&, const edm::EventSetup&);
36 
37 private:
38 
39  struct CutStruct {
40  int type;
41  double etaMin, etaMax, ptMin;
42  };
43 
44  typedef std::vector< HepMC::GenParticle * > GenPartVect;
45  typedef std::vector< HepMC::GenParticle * >::const_iterator GenPartVectIt;
46 
47  // HepMC::GenParticle * findParticle(const GenPartVect genPartVect, const int requested_id) ;
48 
49  //***
50  HepMC::GenParticle * findParticle(HepMC::GenVertex* , const int requested_id) ;
51  //***
52 
53  HepMC::GenEvent::particle_const_iterator getNextBs(const HepMC::GenEvent::particle_const_iterator start,
54  const HepMC::GenEvent::particle_const_iterator end);
55 
56 
57  bool cuts(const HepMC::GenParticle * jpsi, const CutStruct& cut);
58  bool etaInRange(float eta, float etamin, float etamax);
59 
61 
64 };
65 
66 
67 #endif
virtual bool filter(edm::Event &, const edm::EventSetup &)
tuple start
Check for commandline option errors.
Definition: dqm_diff.py:58
bool cuts(const HepMC::GenParticle *jpsi, const CutStruct &cut)
CutStruct hadronCuts
HepMC::GenEvent::particle_const_iterator getNextBs(const HepMC::GenEvent::particle_const_iterator start, const HepMC::GenEvent::particle_const_iterator end)
edm::EDGetTokenT< edm::HepMCProduct > token_
HepMC::GenParticle * findParticle(HepMC::GenVertex *, const int requested_id)
CutStruct leptonCuts
BsJpsiPhiFilter(const edm::ParameterSet &)
std::vector< HepMC::GenParticle * > GenPartVect
#define end
Definition: vmac.h:37
bool etaInRange(float eta, float etamin, float etamax)
#define jpsi
std::vector< HepMC::GenParticle * >::const_iterator GenPartVectIt