ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/MVAMetMod.h
Revision: 1.2
Committed: Sat Apr 7 11:52:02 2012 UTC (13 years, 1 month ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.1: +5 -2 lines
Log Message:
fixed memory leak

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: MVAMetMod.h,v 1.1 2012/04/07 10:25:15 pharris Exp $
3 //
4 // MVAMetMod
5 //
6 // Example on how to call regressed MET
7 //
8 // Authors: P.Harris
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITPHYSICS_MODS_MVAMETMOD_H
12 #define MITPHYSICS_MODS_MVAMETOD_H
13
14 #include "MitAna/TreeMod/interface/BaseMod.h"
15 #include "MitAna/DataTree/interface/JetCol.h"
16 #include "MitAna/DataTree/interface/VertexCol.h"
17 #include "MitAna/DataTree/interface/PFMetCol.h"
18 #include "MitAna/DataTree/interface/MuonCol.h"
19 #include "MitPhysics/Utils/interface/MVAMet.h"
20
21 namespace mithep
22 {
23 class MVAMetMod : public BaseMod
24 {
25 public:
26 MVAMetMod(const char *name="MVAMetMod",
27 const char *title="MVAMet example");
28 void SetJetsName(TString s) { fJetsName = s;}
29
30 protected:
31 void Process();
32 void SlaveBegin();
33 void SlaveTerminate();
34
35 TString fMVAMetName;
36 TString fJetsName ;
37 TString fPFCandName;
38 TString fVertexName;
39 TString fPFMetName ;
40 const PFJetCol *fJets;
41 const PFCandidateCol *fCands;
42 const VertexCol *fVertices;
43 const PFMetCol *fPFMet;
44
45 MVAMet *fMVAMet;
46 ClassDef(MVAMetMod, 1) // Jet identification module
47 };
48 }
49 #endif