]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Getters are constant
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Oct 2006 14:18:15 +0000 (14:18 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Oct 2006 14:18:15 +0000 (14:18 +0000)
RAW/AliRawEventHeaderBase.cxx
RAW/AliRawEventHeaderBase.h

index a4053d745be63c9ca7cd6bfeb90a6ca9222629f9..007d65bc3744b4e0be69b01598633d801be0d8f7 100644 (file)
@@ -277,7 +277,7 @@ Int_t AliRawEventHeaderBase::ReadHeader(char*& data)
 }
 
 //______________________________________________________________________________
-UInt_t AliRawEventHeaderBase::Get(const char *datamember)
+UInt_t AliRawEventHeaderBase::Get(const char *datamember) const
 {
   // The method to get a data member from the header object
   // Except for the data members of the base class, all the
@@ -310,7 +310,7 @@ UInt_t AliRawEventHeaderBase::Get(const char *datamember)
 }
 
 //______________________________________________________________________________
-const UInt_t* AliRawEventHeaderBase::GetP(const char *datamember)
+const UInt_t* AliRawEventHeaderBase::GetP(const char *datamember) const
 {
   // The method to get a data member from the header object
   // Except for the data members of the base class, all the
index 3edb26d811f07fde39908be7f27719ec1c20f52e..ce0692adcb90a592b13bf1c884b78f8d9f0e4e96 100644 (file)
@@ -46,8 +46,8 @@ public:
    const char *  GetTypeName();
    static AliRawEventHeaderBase* Create(char*& data);
    Int_t         ReadHeader(char*& data);
-   UInt_t        Get(const char *datamember);
-   const UInt_t* GetP(const char *datamember);
+   UInt_t        Get(const char *datamember) const;
+   const UInt_t* GetP(const char *datamember) const;
 
    // The following enumeration can be used once the kEventTypeMask has been
    // applied to the raw event type