ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/TriggerObject.h
Revision: 1.13
Committed: Mon Jul 13 13:44:07 2009 UTC (15 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, Mit_010
Changes since 1.12: +11 -8 lines
Log Message:
Added constness

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: TriggerObject.h,v 1.12 2009/07/13 09:42:15 loizides Exp $
3 //
4 // TriggerObject
5 //
6 // This class holds the HLT trigger object information obtained by the HLTFwkMod module from
7 // TriggerObjectBase and TriggerObjectRel.
8 //
9 // Authors: C.Loizides
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITANA_DATATREE_TRIGGEROBJECT_H
13 #define MITANA_DATATREE_TRIGGEROBJECT_H
14
15 #include "MitAna/DataTree/interface/TriggerObjectBase.h"
16
17 namespace mithep
18 {
19 class TriggerObject : public TriggerObjectBase
20 {
21 public:
22 enum ETriggerObject { // see DataFormats/HLTReco/interface/TriggerTypeDefs.h
23 None = 0,
24 TriggerL1Mu = -81,
25 TriggerL1NoIsoEG = -82,
26 TriggerL1IsoEG = -83,
27 TriggerL1CenJet = -84,
28 TriggerL1ForJet = -85,
29 TriggerL1TauJet = -86,
30 TriggerL1ETM = -87,
31 TriggerL1ETT = -88,
32 TriggerL1HTT = -89,
33 TriggerL1HTM = -90,
34 TriggerL1JetCounts = -91,
35 TriggerL1HfBitCounts = -92,
36 TriggerL1HfRingEtSums = -93,
37 TriggerL1TechTrig = -94,
38 TriggerL1Castor = -95,
39 TriggerL1BPTX = -96,
40 TriggerPhoton = +81,
41 TriggerElectron = +82,
42 TriggerMuon = +83,
43 TriggerTau = +84,
44 TriggerJet = +85,
45 TriggerBJet = +86,
46 TriggerMET = +87,
47 TriggerTET = +88,
48 TriggerTHT = +89,
49 TriggerMHT = +90,
50 TriggerTrack = +91,
51 TriggerCluster = +92,
52 TriggerMETSig = +93,
53 TriggerELongit = +94,
54 TriggerMHTSig = +95,
55 TriggerHLongit = +96
56 };
57
58 TriggerObject() : fTrgId(0), fTrigName(0), fModName(0), fFilName(0), fTagName(0) {}
59 TriggerObject(UChar_t tid, Char_t type, Int_t id, const FourVectorM32 &mom) :
60 TriggerObjectBase(id,type,mom), fTrgId(tid),
61 fTrigName(0), fModName(0), fFilName(0), fTagName(0) {}
62 TriggerObject(UChar_t tid, Char_t type, Int_t id,
63 Double_t pt, Double_t eta, Double_t phi, Double_t mass) :
64 TriggerObjectBase(id,type,pt,eta,phi,mass),
65 fTrgId(tid), fTrigName(0), fModName(0), fFilName(0), fTagName(0) {}
66
67 const char *FilterName() const { return fFilName; }
68 ULong_t Hash() const { return fTrgId; }
69 const char *ModuleName() const { return fModName; }
70 EObjType ObjType() const { return kTriggerObject; }
71 void Print(Option_t *opt="") const;
72 const char *TagName() const { return fTagName; }
73 UChar_t TrgId() const { return fTrgId; }
74 const char *TrigName() const { return fTrigName; }
75 ETriggerObject TriggerType() const
76 { return static_cast<ETriggerObject>(Type()); }
77 void SetFilterName(const char *n) { fFilName = n; }
78 void SetModuleName(const char *n) { fModName = n; }
79 void SetTagName(const char *n) { fTagName = n; }
80 void SetTrigName(const char *n) { fTrigName = n; }
81
82 protected:
83 UChar_t fTrgId; //trigger id
84 const char *fTrigName; //!trigger name
85 const char *fModName; //!L3 module name
86 const char *fFilName; //!L3 filter name
87 const char *fTagName; //!input tag name
88
89 ClassDef(TriggerObject, 2) // Trigger object class
90 };
91 }
92 #endif