CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TPTreeFiller.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_TagAndProbe_TreeFiller_h
2 #define PhysicsTools_TagAndProbe_TreeFiller_h
3 
5 
6 namespace tnp {
7 class TPTreeFiller : public BaseTreeFiller {
8  public:
11  ~TPTreeFiller();
12 
13  // We declare 'const' the methods which don't change the configuration
14  void init(const edm::Event &iEvent) const ;
15  void fill(const reco::CandidateBaseRef &probe, double mass, bool mcTrue=false) const ;
16 
17  protected:
19  mutable float mass_;
21  mutable int32_t mcTrue_;
22 };
23 }
24 
25 #endif
TPTreeFiller(const edm::ParameterSet &config, edm::ConsumesCollector &&iC)
Definition: TPTreeFiller.h:9
void init(const edm::Event &iEvent) const
Definition: TPTreeFiller.cc:17
int iEvent
Definition: GenABIO.cc:230
void fill(const reco::CandidateBaseRef &probe, double mass, bool mcTrue=false) const
Definition: TPTreeFiller.cc:21
float mass_
extra branch for the mass
Definition: TPTreeFiller.h:19
int32_t mcTrue_
extra branch for the mc truth
Definition: TPTreeFiller.h:21