ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PhotonCiCMod.h
Revision: 1.1
Committed: Wed Jun 1 18:11:52 2011 UTC (13 years, 11 months ago) by fabstoec
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_023, Mit_022a, Mit_022
Log Message:
CiC BaseLine Selection

File Contents

# User Rev Content
1 fabstoec 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: PhotonCiCMod.h,v 1.18 2011/05/18 14:01:18 bendavid Exp $
3     //
4     // PhotonCiCMod
5     //
6     // This module applies photon identification criteria and exports a pointer to a collection
7     // of "good photons" according to the specified identification scheme.
8     //
9     // Authors: S.Xie, C.Loizides
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITPHYSICS_MODS_PHOTONCICMOD_H
13     #define MITPHYSICS_MODS_PHOTONCICMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/PhotonFwd.h"
17     #include "MitAna/DataTree/interface/TrackCol.h"
18     #include "MitAna/DataTree/interface/VertexCol.h"
19     #include "MitAna/DataTree/interface/BeamSpotCol.h"
20     #include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
21     #include "MitAna/DataTree/interface/DecayParticleCol.h"
22     #include "MitAna/DataTree/interface/ElectronCol.h"
23    
24     namespace mithep
25     {
26     class PhotonCiCMod : public BaseMod
27     {
28     public:
29     PhotonCiCMod(const char *name="PhotonCiCMod",
30     const char *title="Photon identification module");
31    
32     Bool_t GetApplySpikeRemoval() const { return fApplySpikeRemoval; }
33     const char *GetGoodName() const { return GetGoodPhotonsName(); }
34     const char *GetGoodPhotonsName() const { return fGoodPhotonsName; }
35     const char *GetInputName() const { return fPhotonBranchName; }
36     const char *GetOutputName() const { return GetGoodPhotonsName(); }
37     Double_t GetPtMin() const { return fPhotonPtMin; }
38     Double_t GetAbsEtaMax() const { return fAbsEtaMax; }
39     void SetApplySpikeRemoval(Bool_t b) { fApplySpikeRemoval = b; }
40     void SetGoodName(const char *n) { SetGoodPhotonsName(n); }
41     void SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n; }
42     void SetInputName(const char *n) { fPhotonBranchName= n; }
43     void SetTrackName(const char *n) { fTrackBranchName = n; }
44     void SetOutputName(const char *n) { SetGoodPhotonsName(n); }
45     void SetPtMin(Double_t pt) { fPhotonPtMin = pt; }
46     void SetAbsEtaMax(Double_t x) { fAbsEtaMax = x; }
47    
48     void SetPVName (TString s) {fPVName = s; fPVFromBranch = false;};
49    
50     protected:
51     void Process();
52     void SlaveBegin();
53    
54     TString fPhotonBranchName; //name of photon collection (input)
55     TString fGoodPhotonsName; //name of exported "good photon" collection
56     TString fTrackBranchName; // name of the track collection (only needed for PU corrected isolation)
57     TString fPileUpDenName; //name of the PU density collection
58     TString fElectronName;
59     Double_t fPhotonPtMin; //min pt cut
60     Bool_t fApplySpikeRemoval; //whether apply spike removal
61     Double_t fAbsEtaMax; //max Abs Eta
62     const PhotonCol *fPhotons; //!photon branch
63     const TrackCol *fTracks; //!track branch
64     const PileupEnergyDensityCol *fPileUpDen; //!rho branch
65     const ElectronCol *fElectrons; //!electron branch
66    
67     TString fPVName;
68     const VertexCol *fPV;
69     Bool_t fPVFromBranch;
70    
71     ClassDef(PhotonCiCMod, 1) // Photon identification module
72     };
73     }
74     #endif