-
Notifications
You must be signed in to change notification settings - Fork 1
/
AliRPCValueCurrent.h
55 lines (47 loc) · 1.65 KB
/
AliRPCValueCurrent.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// AliRPCValueCurrent.h
// Aliroot project
//
// Created by Gabriele Gaetano Fronzé on 20/11/15.
// Copyright © 2015 Gabriele Gaetano Fronzé. All rights reserved.
//
#ifndef AliRPCValueCurrent_h
#define AliRPCValueCurrent_h
#include <stdio.h>
#include "AliRPCValueDCS.h"
class AliRPCValueCurrent : public AliRPCValueDCS{
public:
AliRPCValueCurrent();
AliRPCValueCurrent(const AliRPCValueCurrent &obj) : AliRPCValueDCS(obj){};
AliRPCValueCurrent(UInt_t runNumber,ULong64_t timeStamp,UInt_t runYear,Double_t iTot,Double_t iDark,Bool_t isCalib, TString beamType, Float_t beamEnergy, TString LHCStatus, UInt_t calibRunNumber,Bool_t isAMANDA=kFALSE);
~AliRPCValueCurrent(){};
inline Double_t GetITot() const { return fITot; };
inline void SetITot(Double_t iTot) { fITot=iTot; };
inline Double_t GetIDark() const { return fIDark; };
inline void SetIDark(Double_t iDark) { fIDark=iDark; };
inline Double_t GetINet() const {
if (fITot-fIDark>0.) return fITot-fIDark;
else return 0.;
};
inline UInt_t GetCalibRunNumber() const { return fCalibRunNumber; };
inline void SetCalibRunNumber(UInt_t calibRunNumber) { fCalibRunNumber=calibRunNumber; };
Double_t GetValue(Int_t whichValue=0) const {
switch (whichValue){
case kITot: return fITot;
case kIDark: return fIDark;
case kINet: return GetINet();
default: return fITot;
}
};
enum {
kITot,
kIDark,
kINet
};
private:
UInt_t fCalibRunNumber;
Double_t fITot;
Double_t fIDark;
ClassDef(AliRPCValueCurrent,2);
};
#endif /* AliRPCValueCurrent_h */