ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/TauIDMod.h
Revision: 1.4
Committed: Thu Apr 9 10:25:02 2009 UTC (16 years ago) by ceballos
Content type: text/plain
Branch: MAIN
Changes since 1.3: +14 -7 lines
Log Message:
more requirements

File Contents

# User Rev Content
1 ceballos 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.4 // $Id: TauIDMod.h,v 1.3 2009/04/09 08:45:48 loizides Exp $
3 ceballos 1.1 //
4     // TauIDMod
5     //
6 loizides 1.3 // This module applies tau identification criteria and exports a pointer to a collection
7 ceballos 1.1 // of "good Taus" according to the specified identification scheme.
8     //
9 loizides 1.3 // Authors: G.Ceballos
10 ceballos 1.1 //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITPHYSICS_MODS_TauIDMOD_H
13     #define MITPHYSICS_MODS_TauIDMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/Collections.h"
17    
18     namespace mithep
19     {
20     class TauIDMod : public BaseMod
21     {
22     public:
23     TauIDMod(const char *name="TauIDMod",
24 loizides 1.3 const char *title="Tau identification module");
25 ceballos 1.1
26     const char *GetCaloTausName() const { return fCaloTausName; }
27 loizides 1.3 Double_t GetEnergyFractionEmMax() const { return fEnergyFractionEmMax; }
28 ceballos 1.1 const char *GetGoodTausName() const { return fGoodTausName; }
29 ceballos 1.4 Double_t GetHCalEtOverPtMin() const { return fHCalEtOverPtMin; }
30 loizides 1.3 Double_t GetIsoTrackPtSumMax() const { return fIsoTrackPtSumMax; }
31 ceballos 1.4 Double_t GetJetPtMin() const { return fJetPtMin; }
32     Double_t GetLeadTrackPtMin() const { return fLeadTrackPtMin; }
33 loizides 1.3 UInt_t GetNIsoTracksMax() const { return fNIsoTracksMax; }
34 ceballos 1.1 UInt_t GetNSignalTracksMax() const { return fNSignalTracksMax; }
35 ceballos 1.4 Double_t GetPtMin() const { return fPtMin; }
36 ceballos 1.1 Double_t GetSignalTracksMassMax() const { return fSignalTracksMassMax; }
37     void SetCaloTausName(const char *n) { fCaloTausName = n; }
38 loizides 1.3 void SetEnergyFractionEmMax(Double_t x){ fEnergyFractionEmMax = x; }
39 ceballos 1.1 void SetGoodTausName(const char *n) { fGoodTausName = n; }
40 ceballos 1.4 void SetHCalEtOverPtMin(Double_t x) { fHCalEtOverPtMin = x; }
41 loizides 1.3 void SetIsoTrackPtSumMax(Double_t x) { fIsoTrackPtSumMax = x; }
42 ceballos 1.4 void SetJetPtMin(Double_t x) { fJetPtMin = x; }
43     void SetLeadTrackPtMin(Double_t x) { fLeadTrackPtMin = x; }
44 loizides 1.3 void SetNIsoTracksMax(Int_t d) { fNIsoTracksMax = d; }
45 ceballos 1.1 void SetNSignalTracksMax(Int_t d) { fNSignalTracksMax = d; }
46 ceballos 1.4 void SetPtMin(Double_t x) { fPtMin = x; }
47 ceballos 1.1 void SetSignalTracksMassMax(Double_t x){ fSignalTracksMassMax = x; }
48    
49     protected:
50     void Process();
51     void SlaveBegin();
52    
53 loizides 1.3 TString fCaloTausName; //name of tau collection (input)
54     TString fGoodTausName; //name of exported "good Tau" collection (output)
55 ceballos 1.4 Double_t fPtMin; //min pt cut
56     Double_t fJetPtMin; //min jet pt cut
57     Double_t fLeadTrackPtMin; //min leading track pt cut
58 ceballos 1.1 UInt_t fNSignalTracksMax; //maximum of signal tracks
59     UInt_t fNIsoTracksMax; //maximum of iso tracks
60     Double_t fSignalTracksMassMax; //maximum of mass for signal tracks
61     Double_t fIsoTrackPtSumMax; //maximum of Pt iso tracks
62 ceballos 1.2 Double_t fEnergyFractionEmMax; //maximum of EnergyFractionEm
63 ceballos 1.4 Double_t fHCalEtOverPtMin; //minimum of HCalEt over Pt for the leading track
64    
65 loizides 1.3 const CaloTauCol *fCaloTaus; //!tau branch
66 ceballos 1.1
67     ClassDef(TauIDMod, 1) // Tau identification module
68     };
69     }
70     #endif