-#ifndef AliTOFDataDCS_H
-#define AliTOFDataDCS_H
+#ifndef ALITOFDATADCS_H
+#define ALITOFDATADCS_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
+// AliTOFDataDCS class
+// main aim is to process DCS data
+// in order to obtain the data to be stored in the OCDB
+
#include "TObject.h"
-#include "TString.h"
class TMap;
class TClonesArray;
-class TH2F;
-class TGraph;
-class TF1;
+class TString;
class AliTOFFormatDCS;
-// AliTOFDataDCS class
-// main aim is to process DCS data
-// in order to obtain the data to be stored in the OCDB
-
class AliTOFDataDCS : public TObject {
public:
- enum {kNAliases=10442, kNHV=90, kNLV=576,
- kNFEEthr=1152, kNFEEt=7776, kNFunctions=0,
- kNT=1, kNP=1};
+ enum {kNAliases=360, kNHV=90};
AliTOFDataDCS();
- AliTOFDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime);
+ AliTOFDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime, UInt_t startTimeDCSQuery, UInt_t endTimeDCSQuery );
AliTOFDataDCS(const AliTOFDataDCS & data);
AliTOFDataDCS& operator=(const AliTOFDataDCS & data);
~AliTOFDataDCS();
void SetRun(Int_t run) {fRun = run;}
void SetStartTime(Int_t startTime) {fStartTime = startTime;}
void SetEndTime(Int_t endTime) {fEndTime = endTime;}
+ void SetStartTimeDCSQuery(Int_t startTimeDCSQuery) {fStartTimeDCSQuery = startTimeDCSQuery;}
+ void SetEndTimeDCSQuery(Int_t endTimeDCSQuery) {fEndTimeDCSQuery = endTimeDCSQuery;}
Int_t GetRun() const {return fRun;}
Int_t GetStartTime() const {return fStartTime;}
Int_t GetEndTime() const {return fEndTime;}
+ Int_t GetStartTimeDCSQuery() const {return fStartTimeDCSQuery;}
+ Int_t GetEndTimeDCSQuery() const {return fEndTimeDCSQuery;}
- void ProcessData(TMap& aliasMap);
+ Bool_t ProcessData(TMap& aliasMap);
const char* GetAliasName(Int_t pos) const
{return pos<kNAliases ? fAliasNames[pos].Data() : 0;}
+ void Draw(const Option_t* /*option*/);
- Float_t* GetT() const;
- Float_t* GetP() const;
-
- Float_t GetT(Int_t i) const {return fT[i];}
- Float_t GetP(Int_t i) const {return fP[i];}
- Float_t GetSlopeT() const {return fT[0];}
- Float_t GetInterceptT() const {return fT[1];}
- Float_t GetMaxT()const {return fT[2];}
- Float_t GetSlopeP() const {return fP[0];}
- Float_t GetInterceptP() const {return fP[1];}
- Float_t GetMaxP() const {return fP[2];}
-
- void SetSlopeT(Float_t slopeT) {fT[0]=slopeT;}
- void SetInterceptT(Float_t interceptT) {fT[1]=interceptT;}
- void SetMaxT(Float_t maxT) {fT[2]=maxT;}
- void SetSlopeP(Float_t slopeP) {fP[0]=slopeP;}
- void SetInterceptP(Float_t interceptP) {fP[1]=interceptP;}
- void SetMaxP(Float_t maxP) {fP[2]=maxP;}
-
- void Draw(const Option_t* option);
-
- AliTOFFormatDCS* GetHVvpos(Int_t pos) const
- {return pos<kNHV ? fHVvpos[pos] : 0;}
- AliTOFFormatDCS* GetHVvneg(Int_t pos) const
- {return pos<kNHV ? fHVvneg[pos] : 0;}
- AliTOFFormatDCS* GetHVcpos(Int_t pos) const
- {return pos<kNHV ? fHVcpos[pos] : 0;}
- AliTOFFormatDCS* GetHVcneg(Int_t pos) const
- {return pos<kNHV ? fHVcneg[pos] : 0;}
- AliTOFFormatDCS* GetLVv(Int_t pos) const
- {return pos<kNLV ? fLVv[pos] : 0;}
- AliTOFFormatDCS* GetLVc(Int_t pos) const
- {return pos<kNLV ? fLVc[pos] : 0;}
- AliTOFFormatDCS* GetFEEthr(Int_t pos) const
- {return pos<kNFEEthr ? fFEEthr[pos] : 0;}
- AliTOFFormatDCS* GetFEEt(Int_t pos) const
- {return pos<kNFEEt ? fFEEt[pos] : 0;}
+ AliTOFFormatDCS* GetHVvp(Int_t pos) const
+ {return pos<kNHV ? fHVvp[pos] : 0;}
+ AliTOFFormatDCS* GetHVvn(Int_t pos) const
+ {return pos<kNHV ? fHVvn[pos] : 0;}
+ AliTOFFormatDCS* GetHVip(Int_t pos) const
+ {return pos<kNHV ? fHVip[pos] : 0;}
+ AliTOFFormatDCS* GetHVin(Int_t pos) const
+ {return pos<kNHV ? fHVin[pos] : 0;}
+
+ void SetFDRFlag(Bool_t flag) {fFDR = flag;}
+ Bool_t GetFDRFlag() const {return fFDR;}
private:
void Init();
Int_t fRun; // Run number
Int_t fStartTime; // start time
- Int_t fEndTime; // end time
-
+ Int_t fEndTime; // end time
+ Int_t fStartTimeDCSQuery; // start time DCSQuery
+ Int_t fEndTimeDCSQuery; // end time DCSQuery
- TString fAliasNames[kNAliases]; // aliases for DCS data
- AliTOFFormatDCS *fHVvpos[kNHV]; // HV voltages, positive ch
- AliTOFFormatDCS *fHVvneg[kNHV]; // HV voltages, negative ch
- AliTOFFormatDCS *fHVcpos[kNHV]; // HV currents, positive ch
- AliTOFFormatDCS *fHVcneg[kNHV]; // HV currents, negative ch
- AliTOFFormatDCS *fLVv[kNLV]; // LV voltages
- AliTOFFormatDCS *fLVc[kNLV]; // LV currents
- AliTOFFormatDCS *fFEEthr[kNFEEthr]; // FEE thresholds
- AliTOFFormatDCS *fFEEt[kNFEEt]; // FEE temperatures
- Float_t fT[3]; // environment temperature
- Float_t fP[3]; // environment pressure
+ TString fAliasNames[kNAliases]; // aliases for DCS data
+ AliTOFFormatDCS *fHVvp[kNHV]; // HV voltages, positive ch
+ AliTOFFormatDCS *fHVvn[kNHV]; // HV voltages, negative ch
+ AliTOFFormatDCS *fHVip[kNHV]; // HV currents, positive ch
+ AliTOFFormatDCS *fHVin[kNHV]; // HV currents, negative ch
- Bool_t fIsProcessed; // bool to know processing status
+ Bool_t fIsProcessed; // bool to know processing status
+ Bool_t fFDR; // bool to know whether we are in a FDR run
- ClassDef(AliTOFDataDCS, 2);
+ ClassDef(AliTOFDataDCS, 5);
};
#endif