ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/SeparatePileUpMod.h
Revision: 1.4
Committed: Fri May 4 20:29:12 2012 UTC (13 years ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029c, Mit_029b, Mit_029a, Mit_028a, Mit_028, Mit_027, Mit_027a, HEAD
Changes since 1.3: +2 -2 lines
Log Message:
use of all vertexes option

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: SeparatePileUpMod.h,v 1.3 2012/05/04 20:28:33 ceballos Exp $
3 //
4 // SeparatePileUpMod
5 //
6 // This module applies PFNoPU selection
7 //
8 // Authors: G.Ceballos
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITPHYSICS_MODS_SEPARATEPILEUPMOD_H
12 #define MITPHYSICS_MODS_SEPARATEPILEUPMOD_H
13
14 #include "MitAna/TreeMod/interface/BaseMod.h"
15 #include "MitAna/DataTree/interface/VertexFwd.h"
16 #include "MitAna/DataTree/interface/PFCandidateFwd.h"
17
18 namespace mithep
19 {
20 class SeparatePileUpMod : public BaseMod
21 {
22 public:
23 SeparatePileUpMod(const char *name="SeparatePileUpMod",
24 const char *title="PFNoPU identification module");
25
26 void SetPFCandidatesName(const char *n) { fPFCandidatesName = n; }
27 void SetPFPileUpName(const char *n) { fPFPileUpName = n; }
28 void SetPFNoPileUpName(const char *n) { fPFNoPileUpName = n; }
29 void SetAllVertexName(const char *n) { fAllVertexName = n; }
30 void SetVertexName(const char *n) { fVertexName = n; }
31 void SetCheckClosestZVertex(Bool_t b) { fCheckClosestZVertex = b;}
32 void SetUseAllVerteces(Bool_t b) { fUseAllVertices = b; }
33
34 protected:
35 void Process();
36 void SlaveBegin();
37
38 TString fPFCandidatesName; //name of PF collection (input)
39 TString fPFPileUpName; //name of exported PFPileUp collection (output)
40 TString fPFNoPileUpName; //name of exported PFNoPileUp collection (output)
41 TString fAllVertexName; //name of all vertex collection
42 TString fVertexName; //name of good vertex collection
43 const PFCandidateCol *fPFCandidates; //!pfcandidate branch
44 const VertexCol *fAllVertices; //!all vertices branches
45 const VertexCol *fVertices; //!good vertices branches
46 Bool_t fCheckClosestZVertex; //boolean to use the closest vertex approach
47 Bool_t fUseAllVertices; //boolean to use all vertices
48
49 ClassDef(SeparatePileUpMod, 1) // PFNoPU identification module
50 };
51 }
52 #endif