ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/SeparatePileUpMod.h
Revision: 1.3
Committed: Fri May 4 20:28:33 2012 UTC (13 years ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.2: +3 -1 lines
Log Message:
use of all vertexes option

File Contents

# User Rev Content
1 ceballos 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.3 // $Id: SeparatePileUpMod.h,v 1.2 2012/04/27 22:41:41 ceballos Exp $
3 ceballos 1.1 //
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 ceballos 1.2 void SetAllVertexName(const char *n) { fAllVertexName = n; }
30 ceballos 1.1 void SetVertexName(const char *n) { fVertexName = n; }
31     void SetCheckClosestZVertex(Bool_t b) { fCheckClosestZVertex = b;}
32 ceballos 1.3 void SetUseAllVerteces(Boot_t b) { fUseAllVertices = b; }
33 ceballos 1.1
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 ceballos 1.2 TString fAllVertexName; //name of all vertex collection
42     TString fVertexName; //name of good vertex collection
43 ceballos 1.1 const PFCandidateCol *fPFCandidates; //!pfcandidate branch
44 ceballos 1.2 const VertexCol *fAllVertices; //!all vertices branches
45     const VertexCol *fVertices; //!good vertices branches
46 ceballos 1.1 Bool_t fCheckClosestZVertex; //boolean to use the closest vertex approach
47 ceballos 1.3 Bool_t fUseAllVertices; //boolean to use all vertices
48 ceballos 1.1
49 ceballos 1.2 ClassDef(SeparatePileUpMod, 1) // PFNoPU identification module
50 ceballos 1.1 };
51     }
52     #endif