1 |
ceballos |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: SeparatePileUpMod.h,v 1.6 2009/06/15 15:00:21 loizides 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 SetVertexName(const char *n) { fVertexName = n; }
|
30 |
|
|
void SetCheckClosestZVertex(Bool_t b) { fCheckClosestZVertex = b;}
|
31 |
|
|
|
32 |
|
|
protected:
|
33 |
|
|
void Process();
|
34 |
|
|
void SlaveBegin();
|
35 |
|
|
|
36 |
|
|
TString fPFCandidatesName; //name of PF collection (input)
|
37 |
|
|
TString fPFPileUpName; //name of exported PFPileUp collection (output)
|
38 |
|
|
TString fPFNoPileUpName; //name of exported PFNoPileUp collection (output)
|
39 |
|
|
TString fVertexName; //name of vertex collection
|
40 |
|
|
const PFCandidateCol *fPFCandidates; //!pfcandidate branch
|
41 |
|
|
const VertexCol *fVertices; //!vertices branches
|
42 |
|
|
Bool_t fCheckClosestZVertex; //boolean to use the closest vertex approach
|
43 |
|
|
|
44 |
|
|
ClassDef(SeparatePileUpMod, 1) // Tau identification module
|
45 |
|
|
};
|
46 |
|
|
}
|
47 |
|
|
#endif
|