X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliDCSSensor.h;h=a9f9eea0ed5a0c42df9085479f2500d0d570593e;hb=c4460410202661b3feb05b611a25f70c09a33ede;hp=072e6750d4b01cf6eacf73a7ff249e7ccb446ea2;hpb=8cb8848e1b4101363943c693ede5ccc1ffae9b0c;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliDCSSensor.h b/STEER/AliDCSSensor.h index 072e6750d4b..a9f9eea0ed5 100644 --- a/STEER/AliDCSSensor.h +++ b/STEER/AliDCSSensor.h @@ -38,6 +38,7 @@ public: Int_t GetId() const {return fId; } Int_t GetIdDCS() const {return fIdDCS; } + const TString& GetStringID() const {return fStringID; } Double_t GetX() const {return fX; } Double_t GetY() const {return fY; } @@ -52,6 +53,7 @@ public: void SetId (Int_t id) {fId = id; } void SetIdDCS (Int_t iddcs) {fIdDCS = iddcs; } + void SetStringID (const TString& stringID) {fStringID = stringID; } void SetX (Double_t x) {fX = x; } void SetY (Double_t y) {fY = y; } @@ -63,19 +65,18 @@ public: void SetStartTime (TTimeStamp time) {fStartTime = time.GetSec(); } void SetEndTime (UInt_t stime) {fEndTime = stime; } void SetEndTime (TTimeStamp time) {fEndTime = time.GetSec(); } - Double_t GetValue(UInt_t timeSec); - Double_t GetValue(TTimeStamp time); - Double_t Eval(const TTimeStamp& time) const; - TGraph *MakeGraph (Int_t nPoints=100) const; + Double_t GetValue(UInt_t timeSec); // timeSec offset for individual sensor map + Double_t GetValue(TTimeStamp time); // use this for absolute time stamp + Double_t Eval(const TTimeStamp& time, Bool_t inside=true) const; + Double_t EvalGraph(const Double_t& timeHour) const; + TGraph *MakeGraph (Int_t nPoints=100, Bool_t debug=kFALSE) const; + static TClonesArray * ReadTree(TTree *tree); - -// static TClonesArray * ReadList(const char *fname); -// static TClonesArray * ReadListInd(const char *fname, -// Int_t& firstSensor, Int_t& lastSensor); protected: - Int_t fId; // Internal number of sensor id (array index) - Int_t fIdDCS; // ID number in DCS + Int_t fId; // Internal number of sensor id (array index) + Int_t fIdDCS; // ID number in DCS + TString fStringID; // Amanda String ID UInt_t fStartTime; // start time for DCS map/fit UInt_t fEndTime; // end time for DCS map/fit TGraph * fGraph; // graph with values @@ -84,6 +85,7 @@ protected: Double_t fY; //Y-position of the sensor Double_t fZ; //Z-position of the sensor - ClassDef(AliDCSSensor,2); + ClassDef(AliDCSSensor,3); }; #endif +