ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Mods/interface/TauIDMod.h
Revision: 1.1
Committed: Wed Apr 8 10:11:44 2009 UTC (16 years, 1 month ago) by ceballos
Content type: text/plain
Branch: MAIN
Log Message:
new tau selection

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: TauIDMod.h,v 1.7 2009/03/23 14:23:06 loizides Exp $
3 //
4 // TauIDMod
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: S.Xie, C.Loizides
10 //--------------------------------------------------------------------------------------------------
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 const char *title="Tau identification module");
25
26 const char *GetCaloTausName() const { return fCaloTausName; }
27 const char *GetGoodTausName() const { return fGoodTausName; }
28 Double_t GetPtMin() const { return fTauPtMin; }
29 Double_t GetJetPtMin() const { return fTauJetPtMin; }
30 UInt_t GetNSignalTracksMax() const { return fNSignalTracksMax; }
31 UInt_t GetNIsoTracksMax() const { return fNIsoTracksMax; }
32 Double_t GetSignalTracksMassMax() const { return fSignalTracksMassMax; }
33 Double_t GetIsoTrackPtSumMax() const { return fIsoTrackPtSumMax; }
34
35 void SetCaloTausName(const char *n) { fCaloTausName = n; }
36 void SetGoodTausName(const char *n) { fGoodTausName = n; }
37 void SetPtMin(Double_t x) { fTauPtMin = x; }
38 void SetJetPtMin(Double_t x) { fTauJetPtMin = x; }
39 void SetNSignalTracksMax(Int_t d) { fNSignalTracksMax = d; }
40 void SetNIsoTracksMax(Int_t d) { fNIsoTracksMax = d; }
41 void SetSignalTracksMassMax(Double_t x){ fSignalTracksMassMax = x; }
42 void SetIsoTrackPtSumMax(Double_t x) { fIsoTrackPtSumMax = x; }
43
44 protected:
45 void Process();
46 void SlaveBegin();
47
48 TString fCaloTausName; //name of Tau collection (input)
49 const CaloTauCol *fCaloTaus; //!Tau branch
50 TString fGoodTausName; //name of exported "good Tau" collection
51 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
58 ClassDef(TauIDMod, 1) // Tau identification module
59 };
60 }
61 #endif