-
Notifications
You must be signed in to change notification settings - Fork 1
/
AliOCDBRun.h
35 lines (26 loc) · 855 Bytes
/
AliOCDBRun.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Created by Gabriele Gaetano Fronzé on 30/03/2017.
//
#ifndef OCDBRUN_H
#define OCDBRUN_H
#include "TObject.h"
class AliOCDBRun : public TObject{
public:
UInt_t fRunNumber;
Int_t fYear;
inline UInt_t GetRunNumber()const{return fRunNumber;};
AliOCDBRun() : TObject() {};
AliOCDBRun(UInt_t runNumber, Int_t year) : fRunNumber(runNumber), fYear(year), TObject(){};
virtual ~AliOCDBRun(){};
Bool_t IsEqual (const TObject *obj) const{
return fRunNumber == ((AliOCDBRun*)obj)->fRunNumber;
};
Int_t Compare(const TObject *obj) const{
if ( fRunNumber < ((AliOCDBRun*)obj)->fRunNumber ) return -1;
if ( fRunNumber == ((AliOCDBRun*)obj)->fRunNumber ) return 0;
else return 1;
}
Bool_t IsSortable() const { return kTRUE; };
ClassDef(AliOCDBRun,4);
};
#endif //OCDBRUN_H