ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/TauIDMod.h
Revision: 1.3
Committed: Thu Apr 9 08:45:48 2009 UTC (16 years ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.2: +15 -16 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 ceballos 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.3 // $Id: TauIDMod.h,v 1.2 2009/04/08 17:48:12 ceballos 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 loizides 1.3 Double_t GetIsoTrackPtSumMax() const { return fIsoTrackPtSumMax; }
30 ceballos 1.2 Double_t GetJetPtMin() const { return fTauJetPtMin; }
31 loizides 1.3 UInt_t GetNIsoTracksMax() const { return fNIsoTracksMax; }
32 ceballos 1.1 UInt_t GetNSignalTracksMax() const { return fNSignalTracksMax; }
33 loizides 1.3 Double_t GetPtMin() const { return fTauPtMin; }
34 ceballos 1.1 Double_t GetSignalTracksMassMax() const { return fSignalTracksMassMax; }
35     void SetCaloTausName(const char *n) { fCaloTausName = n; }
36 loizides 1.3 void SetEnergyFractionEmMax(Double_t x){ fEnergyFractionEmMax = x; }
37 ceballos 1.1 void SetGoodTausName(const char *n) { fGoodTausName = n; }
38 loizides 1.3 void SetIsoTrackPtSumMax(Double_t x) { fIsoTrackPtSumMax = x; }
39 ceballos 1.1 void SetJetPtMin(Double_t x) { fTauJetPtMin = x; }
40 loizides 1.3 void SetNIsoTracksMax(Int_t d) { fNIsoTracksMax = d; }
41 ceballos 1.1 void SetNSignalTracksMax(Int_t d) { fNSignalTracksMax = d; }
42 loizides 1.3 void SetPtMin(Double_t x) { fTauPtMin = x; }
43 ceballos 1.1 void SetSignalTracksMassMax(Double_t x){ fSignalTracksMassMax = x; }
44    
45     protected:
46     void Process();
47     void SlaveBegin();
48    
49 loizides 1.3 TString fCaloTausName; //name of tau collection (input)
50     TString fGoodTausName; //name of exported "good Tau" collection (output)
51 ceballos 1.1 Double_t fTauPtMin; //min pt cut
52     Double_t fTauJetPtMin; //min jet pt cut
53     UInt_t fNSignalTracksMax; //maximum of signal tracks
54     UInt_t fNIsoTracksMax; //maximum of iso tracks
55     Double_t fSignalTracksMassMax; //maximum of mass for signal tracks
56     Double_t fIsoTrackPtSumMax; //maximum of Pt iso tracks
57 ceballos 1.2 Double_t fEnergyFractionEmMax; //maximum of EnergyFractionEm
58 loizides 1.3 const CaloTauCol *fCaloTaus; //!tau branch
59 ceballos 1.1
60     ClassDef(TauIDMod, 1) // Tau identification module
61     };
62     }
63     #endif