1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: TriggerObject.h,v 1.14 2009/11/17 20:34:19 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 |
TriggerL1GtExternal = -97,
|
41 |
TriggerPhoton = +81,
|
42 |
TriggerElectron = +82,
|
43 |
TriggerMuon = +83,
|
44 |
TriggerTau = +84,
|
45 |
TriggerJet = +85,
|
46 |
TriggerBJet = +86,
|
47 |
TriggerMET = +87,
|
48 |
TriggerTET = +88,
|
49 |
TriggerTHT = +89,
|
50 |
TriggerMHT = +90,
|
51 |
TriggerTrack = +91,
|
52 |
TriggerCluster = +92,
|
53 |
TriggerMETSig = +93,
|
54 |
TriggerELongit = +94,
|
55 |
TriggerMHTSig = +95,
|
56 |
TriggerHLongit = +96
|
57 |
};
|
58 |
|
59 |
TriggerObject() : fTrgId(0), fTrigName(0), fModName(0), fFilName(0), fTagName(0) {}
|
60 |
TriggerObject(UShort_t tid, Char_t type, Int_t id, const FourVectorM32 &mom) :
|
61 |
TriggerObjectBase(id,type,mom), fTrgId(tid),
|
62 |
fTrigName(0), fModName(0), fFilName(0), fTagName(0) {}
|
63 |
TriggerObject(UShort_t tid, Char_t type, Int_t id,
|
64 |
Double_t pt, Double_t eta, Double_t phi, Double_t mass) :
|
65 |
TriggerObjectBase(id,type,pt,eta,phi,mass),
|
66 |
fTrgId(tid), fTrigName(0), fModName(0), fFilName(0), fTagName(0) {}
|
67 |
|
68 |
const char *FilterName() const { return fFilName; }
|
69 |
ULong_t Hash() const { return fTrgId; }
|
70 |
const char *ModuleName() const { return fModName; }
|
71 |
EObjType ObjType() const { return kTriggerObject; }
|
72 |
void Print(Option_t *opt="") const;
|
73 |
const char *TagName() const { return fTagName; }
|
74 |
UShort_t TrgId() const { return fTrgId; }
|
75 |
const char *TrigName() const { return fTrigName; }
|
76 |
ETriggerObject TriggerType() const
|
77 |
{ return static_cast<ETriggerObject>(Type()); }
|
78 |
void SetFilterName(const char *n) { fFilName = n; }
|
79 |
void SetModuleName(const char *n) { fModName = n; }
|
80 |
void SetTagName(const char *n) { fTagName = n; }
|
81 |
void SetTrigName(const char *n) { fTrigName = n; }
|
82 |
|
83 |
protected:
|
84 |
UShort_t fTrgId; //trigger id
|
85 |
const char *fTrigName; //!trigger name
|
86 |
const char *fModName; //!L3 module name
|
87 |
const char *fFilName; //!L3 filter name
|
88 |
const char *fTagName; //!input tag name
|
89 |
|
90 |
ClassDef(TriggerObject, 3) // Trigger object class
|
91 |
};
|
92 |
}
|
93 |
#endif
|