1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: TriggerObjectRel.h,v 1.1 2009/07/13 09:42:15 loizides Exp $
|
3 |
//
|
4 |
// TriggerObjectRel
|
5 |
//
|
6 |
// This class holds the relation between HLT trigger bit and objects, as well
|
7 |
// as final assignment of the trigger type.
|
8 |
//
|
9 |
// Authors: C.Loizides
|
10 |
//--------------------------------------------------------------------------------------------------
|
11 |
|
12 |
#ifndef MITANA_DATATREE_TRIGGEROBJECTREL_H
|
13 |
#define MITANA_DATATREE_TRIGGEROBJECTREL_H
|
14 |
|
15 |
#include <THashTable.h>
|
16 |
#include "MitCommon/DataFormats/interface/Vect4M.h"
|
17 |
#include "MitAna/DataTree/interface/Particle.h"
|
18 |
#include "MitAna/DataTree/interface/TriggerName.h"
|
19 |
#include "MitAna/DataTree/interface/TriggerTable.h"
|
20 |
|
21 |
namespace mithep
|
22 |
{
|
23 |
class TriggerObjectRel : public DataObject
|
24 |
{
|
25 |
public:
|
26 |
TriggerObjectRel() : fTrgId(0), fType(0), fObjInd(-1), fModInd(-1), fFilterInd(-1) {}
|
27 |
TriggerObjectRel(UShort_t id, Char_t type, Int_t obj, Int_t mod, Int_t fil) :
|
28 |
fTrgId(id), fType(type), fObjInd(obj), fModInd(mod), fFilterInd(fil) {}
|
29 |
|
30 |
Int_t FilterInd() const { return fFilterInd; }
|
31 |
Int_t ModInd() const { return fModInd; }
|
32 |
Int_t ObjInd() const { return fObjInd; }
|
33 |
EObjType ObjType() const { return kTriggerObjectRel; }
|
34 |
UShort_t TrgId() const { return fTrgId; }
|
35 |
Char_t Type() const { return fType; }
|
36 |
|
37 |
protected:
|
38 |
UShort_t fTrgId; //trigger id
|
39 |
Char_t fType; //trigger type
|
40 |
Int_t fObjInd; //trigger object index
|
41 |
Int_t fModInd; //module label index
|
42 |
Int_t fFilterInd; //filter label index
|
43 |
|
44 |
ClassDef(TriggerObjectRel, 3) // Trigger to trigger object relation class
|
45 |
};
|
46 |
}
|
47 |
#endif
|