ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/TriggerName.h
Revision: 1.1
Committed: Wed Sep 17 04:07:28 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Trigger names and objects.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: TriggerName.h,v 1.2 2008/07/08 14:41:01 loizides Exp $
3 //
4 // TriggerName
5 //
6 // Todo
7 //
8 // Authors: C.Loizides
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITANA_DATATREE_TRIGGERNAME_H
12 #define MITANA_DATATREE_TRIGGERNAME_H
13
14 #include <TObject.h>
15 #include <TString.h>
16 #include "MitAna/DataTree/interface/Types.h"
17
18 namespace mithep
19 {
20 class TriggerName : public TObject
21 {
22 public:
23 TriggerName() : fId(0) {}
24 TriggerName(const char *name, UShort_t id) : fName(name), fId(id) {}
25 ~TriggerName() {}
26
27 UShort_t Id() const { return fId; }
28 const char *GetName() const { return fName; }
29 ULong_t Hash() const { return fName.Hash(); }
30 const char *Name() const { return fName; }
31 void Print(Option_t *opt="") const;
32
33 protected:
34 TString fName; //name
35 UShort_t fId; //id
36
37 ClassDef(TriggerName, 1) // Trigger name class
38 };
39 }
40 #endif