forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAliTOFChannel.h
38 lines (31 loc) · 1.27 KB
/
AliTOFChannel.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
#ifndef ALITOFChannel_H
#define ALITOFChannel_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
////////////////////////////////////////////////
// class for TOF calibration //
////////////////////////////////////////////////
#include "TObject.h"
class AliTOFChannel: public TObject {
public:
AliTOFChannel();
AliTOFChannel(Bool_t status, Float_t delay, Float_t* slewingPar);
AliTOFChannel(const AliTOFChannel &chan);
AliTOFChannel& operator= (const AliTOFChannel &chan);
virtual ~AliTOFChannel(){};
Bool_t GetStatus() const {return fStatus;}
Float_t GetDelay() const {return fDelay;}
Float_t GetSlewPar(Int_t index) const {return fSlewPar[index];}
Float_t* GetSlewPar() const {return (float*)fSlewPar;}
void SetStatus(Bool_t status) {fStatus=status;}
void SetDelay(Float_t val) {fDelay=val;}
void SetSlewPar(Int_t index, Float_t val) {fSlewPar[index]=val;}
void SetSlewPar(Float_t* SlewPar);
private:
Bool_t fStatus; // Status of the channel (0:on 1:off)
Float_t fDelay; // Delay
Float_t fSlewPar[6]; // Time slewing parameters
//
ClassDef(AliTOFChannel,1) // TOF Sensor Calibration object
};
#endif