CMS 3D CMS Logo

TtEventPartons.h
Go to the documentation of this file.
1 #ifndef TtEventPartons_h
2 #define TtEventPartons_h
3 
5 
6 #include <vector>
7 
14 namespace reco {
15  class Candidate;
16 }
17 class TtGenEvent;
18 
20 public:
24  virtual ~TtEventPartons(){};
25 
28  virtual std::vector<const reco::Candidate*> vec(const TtGenEvent& genEvt) = 0;
29 
31  void expand(std::vector<int>& vec);
32 
33 protected:
37  };
38 
40  void prune(std::vector<const reco::Candidate*>& vec);
41 
43  std::vector<bool> ignorePartons_;
44 };
45 
46 #endif
TtEventPartons::TtEventPartons
TtEventPartons()
default constructor
Definition: TtEventPartons.h:22
configurableAnalysis::Candidate
char Candidate[]
Definition: modules.cc:20
TtEventPartons::dummyCandidatePtr
reco::Candidate * dummyCandidatePtr() const
return pointer to an empty reco::Candidate
Definition: TtEventPartons.h:35
TtEventPartons::prune
void prune(std::vector< const reco::Candidate * > &vec)
erase partons from vector if they where chosen to be ignored
Definition: TtEventPartons.cc:13
TtGenEvent
Class derived from the TopGenEvent for ttbar events.
Definition: TtGenEvent.h:18
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::Particle::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21
GenParticle.h
TtEventPartons::ignorePartons_
std::vector< bool > ignorePartons_
flag partons that were chosen not to be used
Definition: TtEventPartons.h:43
TtEventPartons::~TtEventPartons
virtual ~TtEventPartons()
default destructor
Definition: TtEventPartons.h:24
TtEventPartons::vec
virtual std::vector< const reco::Candidate * > vec(const TtGenEvent &genEvt)=0
reco::Candidate
Definition: Candidate.h:27
TtEventPartons::expand
void expand(std::vector< int > &vec)
insert dummy index -3 for all partons that were chosen to be ignored
Definition: TtEventPartons.cc:3
GenParticle.GenParticle
GenParticle
Definition: GenParticle.py:18
TtEventPartons
Common base class for TtFullLepEvtPartons, TtFullHadEvtPartons and TtSemiLepEvtPartons.
Definition: TtEventPartons.h:19
reco::Particle::Point
math::XYZPoint Point
point in the space
Definition: Particle.h:25
TtGenEvtProducer_cfi.genEvt
genEvt
Definition: TtGenEvtProducer_cfi.py:7