1 |
ceballos |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
ceballos |
1.2 |
// $Id: SeparatePileUpMod.h,v 1.1 2012/04/27 21:03:34 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 |
|
|
|
33 |
|
|
protected:
|
34 |
|
|
void Process();
|
35 |
|
|
void SlaveBegin();
|
36 |
|
|
|
37 |
|
|
TString fPFCandidatesName; //name of PF collection (input)
|
38 |
|
|
TString fPFPileUpName; //name of exported PFPileUp collection (output)
|
39 |
|
|
TString fPFNoPileUpName; //name of exported PFNoPileUp collection (output)
|
40 |
ceballos |
1.2 |
TString fAllVertexName; //name of all vertex collection
|
41 |
|
|
TString fVertexName; //name of good vertex collection
|
42 |
ceballos |
1.1 |
const PFCandidateCol *fPFCandidates; //!pfcandidate branch
|
43 |
ceballos |
1.2 |
const VertexCol *fAllVertices; //!all vertices branches
|
44 |
|
|
const VertexCol *fVertices; //!good vertices branches
|
45 |
ceballos |
1.1 |
Bool_t fCheckClosestZVertex; //boolean to use the closest vertex approach
|
46 |
|
|
|
47 |
ceballos |
1.2 |
ClassDef(SeparatePileUpMod, 1) // PFNoPU identification module
|
48 |
ceballos |
1.1 |
};
|
49 |
|
|
}
|
50 |
|
|
#endif
|