CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 { class Candidate; }
15 class TtGenEvent;
16 
18 
19  public:
20 
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:
34 
37 
39  void prune(std::vector<const reco::Candidate*>& vec);
40 
42  std::vector<bool> ignorePartons_;
43 
44 };
45 
46 #endif
void prune(std::vector< const reco::Candidate * > &vec)
erase partons from vector if they where chosen to be ignored
Common base class for TtFullLepEvtPartons, TtFullHadEvtPartons and TtSemiLepEvtPartons.
TtEventPartons()
default constructor
Class derived from the TopGenEvent for ttbar events.
Definition: TtGenEvent.h:18
std::vector< bool > ignorePartons_
flag partons that were chosen not to be used
math::XYZPoint Point
point in the space
Definition: Particle.h:29
virtual ~TtEventPartons()
default destructor
virtual std::vector< const reco::Candidate * > vec(const TtGenEvent &genEvt)=0
void expand(std::vector< int > &vec)
insert dummy index -3 for all partons that were chosen to be ignored
reco::Candidate * dummyCandidatePtr() const
return pointer to an empty reco::Candidate
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:25