]>
Commit | Line | Data |
---|---|---|
324b1730 | 1 | #ifndef ALI_SURVEY_OBJ_H |
2 | #define ALI_SURVEY_OBJ_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | ///////////////////////////////////////////////////////////////////// | |
8 | // // | |
9 | // class AliSurveyObj // | |
10 | // Retrieve and Convert survey data into ROOT Objects // | |
11 | // // | |
12 | ///////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include <TObject.h> | |
15 | //#include <sstream> | |
16 | ||
17 | #include <TString.h> | |
18 | #include <TObjArray.h> | |
19 | ||
20 | //#include "AliLog.h" | |
21 | #include "AliSurveyPoint.h" | |
22 | ||
23 | class AliSurveyObj: public TObject { | |
24 | ||
25 | public: | |
26 | AliSurveyObj(); | |
27 | ~AliSurveyObj(); | |
28 | Bool_t GetFromLocalFile(const Char_t* filename); | |
29 | Bool_t Get(TString detector, Int_t reportNumber, Int_t reportVersion); | |
30 | ||
31 | ||
32 | Int_t GetEntries() const {return fDataPoints->GetEntries();}; | |
33 | Bool_t IsValid() const {return fIsValid;}; | |
34 | ||
35 | ||
36 | private: | |
37 | TString fTitle; // Report Title | |
38 | TString fDate; // Report Date | |
39 | TString fDetector; // Subdetector (or structure) surveyed | |
40 | TString fURL; // Report URL in EDMS | |
41 | Int_t fReportNr; // Report Number | |
42 | Int_t fVersion; // Report Version | |
43 | TString fObs; // General observations / comments | |
44 | TString fCoordSys; // Measurements coordinate system | |
45 | TString fUnits; // Measurements units | |
46 | Int_t fNrColumns; // Number of columns in data values | |
47 | TString fColNames; // Column names sepparated by commas | |
48 | Bool_t fIsValid; // Is the data valid? (sucessfully parsed) | |
49 | ||
50 | TObjArray *fDataPoints; // Actual Data | |
51 | ||
52 | Bool_t Connect(const char *gridUrl, const char *user); | |
53 | Bool_t OpenFile(TString openString); | |
54 | TString &Sanitize(TString str); | |
55 | Bool_t ParseBuffer(const Char_t* buf); | |
56 | AliSurveyObj (const AliSurveyObj& surveyObj); // copy constructor | |
57 | AliSurveyObj& operator=(const AliSurveyObj& surveyObj); // assignment operator | |
58 | void AddPoint(AliSurveyPoint* point); | |
59 | ClassDef(AliSurveyObj, 1); | |
60 | }; | |
61 | ||
62 | #endif |