ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/TriggerName.h
(Generate patch)

Comparing UserCode/MitAna/DataTree/interface/TriggerName.h (file contents):
Revision 1.4 by loizides, Tue Dec 9 17:47:00 2008 UTC vs.
Revision 1.5 by loizides, Wed Feb 18 15:38:55 2009 UTC

# Line 22 | Line 22 | namespace mithep
22    class TriggerName : public DataBase
23    {
24      public:
25 <      TriggerName() : fId(0) {}
25 >      TriggerName() : fId(0), fHash(0) {}
26        TriggerName(const char *name, UShort_t id) :
27          fName(name), fId(id), fHash(fName.Hash()) {}
28        TriggerName(const std::string &name, UShort_t id) :
29          fName(name), fId(id), fHash(fName.Hash()) {}
30        TriggerName(const TString &name, UShort_t id) :
31          fName(name), fId(id), fHash(fName.Hash()) {}
32      ~TriggerName() {}
32  
33        UShort_t              Id()      const { return fId; }
34        const char           *GetName() const { return fName; }
# Line 43 | Line 42 | namespace mithep
42        UShort_t              fId;          //id
43        UInt_t                fHash;        //hash
44  
45 <    ClassDef(TriggerName, 2) // Trigger name class
45 >    ClassDef(TriggerName, 1) // Trigger name class
46    };
47  
48   //--------------------------------------------------------------------------------------------------
# Line 58 | Line 57 | namespace mithep
57      public:
58        TriggerTable(Int_t capacity = TCollection::kInitHashTableCapacity, Int_t rehash = 0) :
59          THashTable(capacity,rehash) {}
61      ~TriggerTable() {}
60  
61        const TriggerName *Get(const char *name)   const;
62        UShort_t           GetId(const char *name) const;
# Line 87 | Line 85 | inline UShort_t mithep::TriggerTable::Ge
85    Error("GetId", "TriggerName for %s not found. Returning 65535.", name);
86    return 65535;
87   }
90
88   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines