ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/PFTauIDMod.h
Revision: 1.4
Committed: Wed Mar 9 14:56:26 2011 UTC (14 years, 2 months ago) by dkralph
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029c, Mit_029b, Mit_029a, Mit_028a, Mit_028, Mit_027, Mit_027a, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1
Changes since 1.3: +1 -0 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 ceballos 1.1 //--------------------------------------------------------------------------------------------------
2 dkralph 1.3 // $Id: PFTauIDMod.h,v 1.2 2011/02/17 14:08:49 ceballos Exp $
3 ceballos 1.1 //
4     // PFTauIDMod
5     //
6     // This module applies tau identification criteria and exports a pointer to a collection
7     // of "good Taus" according to the specified identification scheme.
8     //
9     // Authors: G.Ceballos
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITPHYSICS_MODS_PFTauIDMod_H
13     #define MITPHYSICS_MODS_PFTauIDMod_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/PFTauFwd.h"
17    
18     namespace mithep
19     {
20     class PFTauIDMod : public BaseMod
21     {
22     public:
23     PFTauIDMod(const char *name="PFTauIDMod",
24     const char *title="Tau identification module");
25    
26     const char *GetPFTausName() const { return fPFTausName; }
27     const char *GetGoodPFTausName() const { return fGoodPFTausName; }
28     Double_t GetPtMin() const { return fPtMin; }
29     Double_t GetPtLeadChargedHadronPFCandMin() const { return fPtLeadChargedHadronPFCandMin; }
30     UInt_t GetIsoChargedHadronPtSumMax() const { return fIsoChargedHadronPtSumMax; }
31     UInt_t GetIsoGammaEtSumMax() const { return fIsoGammaEtSumMax; }
32     Double_t GetSignalMassMin() const { return fSignalMassMin; }
33     Double_t GetSignalMassMax() const { return fSignalMassMax; }
34 ceballos 1.2 Bool_t GetIsHPSSel() const { return fIsHPSSel; }
35 dkralph 1.4 // note: for safety, tau name is determined by fIsHPSSel in SlaveBegin()
36 ceballos 1.1 void SetPFTausName(const char *n) { fPFTausName = n; }
37     void SetPtMin(Double_t x) { fPtMin = x; }
38     void SetPtLeadChargedHadronPFCandMin(Double_t x){ fPtLeadChargedHadronPFCandMin = x; }
39     void SetIsoChargedHadronPtSumMax(Double_t x) { fIsoChargedHadronPtSumMax = x; }
40     void SetIsoGammaEtSumMax(Double_t x) { fIsoGammaEtSumMax = x; }
41     void SetSignalMassMin(Double_t x) { fSignalMassMin = x; }
42     void SetSignalMassMax(Double_t x) { fSignalMassMax = x; }
43 ceballos 1.2 void SetIsHPSSel(Bool_t b) { fIsHPSSel = b; }
44 dkralph 1.3 void SetHPSIso(const char *i) { fHPSIso = i; }
45 ceballos 1.1
46     protected:
47     void Process();
48     void SlaveBegin();
49    
50     TString fPFTausName; //name of tau collection (input)
51     TString fGoodPFTausName; //name of exported good PFTau collection (output)
52     Double_t fPtMin; //min tau pt cut
53     Double_t fPtLeadChargedHadronPFCandMin; //min LeadChargedHadronPFCand pt cut
54     Double_t fIsoChargedHadronPtSumMax; //maximum of Pt iso tracks
55     Double_t fIsoGammaEtSumMax; //maximum of Pt iso neutrals
56     Double_t fSignalMassMin; //minimum of tau mass
57     Double_t fSignalMassMax; //maximum of tau mass
58 ceballos 1.2 Bool_t fIsHPSSel; //apply HPS Tau selection
59 dkralph 1.3 TString fHPSIso; //isolation tightness: "tight", "medium", "loose"
60 ceballos 1.2 const PFTauCol *fPFTaus; //!tau branch
61 ceballos 1.1
62     ClassDef(PFTauIDMod, 1) // Tau identification module
63     };
64     }
65     #endif