ROOT logo
AliRoot » STEER » STEER » AliSurveyObj

class AliSurveyObj: public TObject


class AliSurveyObj						
Retrieve and Convert survey data into ROOT Objects		


Function Members (Methods)

public:
AliSurveyObj()
virtual~AliSurveyObj()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
Bool_tFill(TString detector, Int_t reportNumber, TString username = "")
Bool_tFill(TString detector, Int_t reportNumber, Int_t reportVersion, TString username = "")
Bool_tFillFromLocalFile(const Char_t* filename)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TObjArray*GetColumnNames() const
TStringGetCoordSys() const
TObjArray*GetData() const
TStringGetDetector() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetEntries() const
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
Int_tGetNrColumns() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
TStringGetObservations() const
virtual Option_t*TObject::GetOption() const
TStringGetReportDate() const
Int_tGetReportNumber() const
TStringGetReportTitle() const
Int_tGetReportVersion() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
TStringGetUnits() const
TStringGetURL() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tIsValid() const
Bool_tTObject::IsZombie() const
Int_tListReports(TString detector = "", Int_t year = -1, Int_t reportNumber = -1, Int_t reportVersion = -1)
static voidListValidDetectors()
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetGridUser(TString username)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
AliSurveyObj(const AliSurveyObj& surveyObj)
voidAddPoint(AliSurveyPoint* point)
Bool_tConnect(const char* gridUrl, const char* user)
TStringFileNamePathToDetector(TString filename) const
Int_tFileNamePathToReportNumber(TString filename) const
Int_tFileNamePathToReportVersion(TString filename) const
Int_tFileNamePathToReportYear(TString filename) const
Bool_tIsValidDetector(TString detector) const
Bool_tOpenFile(TString openString)
AliSurveyObj&operator=(const AliSurveyObj& surveyObj)
Bool_tParseBuffer(const Char_t* buf)
TGridResult*QueryReports(TString detector, Int_t year, Int_t reportNumber, Int_t reportVersion)
TStringRealFolderName(TString detector) const
voidReset()
TString&Sanitize(TString str)

Data Members

private:
TStringfColNamesColumn names sepparated by commas
TStringfCoordSysMeasurements coordinate system
TObjArray*fDataPointsActual Data
TStringfDateReport Date
TStringfDetectorSubdetector (or structure) surveyed
TStringfGridUserUsername to be used for the connection to GRID
Bool_tfIsValidIs the data valid? (sucessfully parsed)
Int_tfNrColumnsNumber of columns in data values
TStringfObsGeneral observations / comments
Int_tfReportNrReport Number
TStringfTitleReport Title
TStringfURLReport URL in EDMS
TStringfUnitsMeasurements units
Int_tfVersionReport Version
static const TStringfgkBaseFolderBase folder
static const TStringfgkGRPDetectorsGRP detectors
static const TStringfgkMUONDetectorsMUON detectors
static const TStringfgkStorageStorage
static const TStringfgkValidDetectorsValid detectors

Class Charts

Inheritance Chart:
TObject
AliSurveyObj

Function documentation

AliSurveyObj()
 constructor
~AliSurveyObj()
destructor
AliSurveyObj(const AliSurveyObj& surveyObj)
 copy constructor
AliSurveyObj& operator=(const AliSurveyObj& surveyObj)
 assignment operator
void AddPoint(AliSurveyPoint* point)
 Adds a point to the TObjArray which containst the list of points
Bool_t Connect(const char* gridUrl, const char* user)
 Connects to the grid
Bool_t OpenFile(TString openString)
 Opens the file and reads it to a buffer
Bool_t FillFromLocalFile(const Char_t* filename)
 Fills the object from a file in a local filesystem
Bool_t IsValidDetector(TString detector) const
 Checks if the detector name is valid
TString RealFolderName(TString detector) const
 Returns the actual folder name for a given detector
 Some "detectors" don't have a folder of their own
Bool_t Fill(TString detector, Int_t reportNumber, TString username = "")
 Fills the object from a file in the default storage location in AliEn.
 The highest version available is selected.
Bool_t Fill(TString detector, Int_t reportNumber, Int_t reportVersion, TString username = "")
 Fills the object from a file in the default storage location in AliEn.
 A specific version is selected.
TString FileNamePathToDetector(TString filename) const
 Get the report number from the complete path in the format:
 /alice/data/Reference/HMPID/RawSurvey/2006/781282_v1.txt
Int_t FileNamePathToReportYear(TString filename) const
 Get the report year from the complete path in the format:
 /alice/data/Reference/HMPID/RawSurvey/2006/781282_v1.txt
Int_t FileNamePathToReportNumber(TString filename) const
 Get the report number from the complete path in the format:
 /alice/data/Reference/HMPID/RawSurvey/2006/781282_v1.txt
Int_t FileNamePathToReportVersion(TString filename) const
 Get the report version from the complete path in the format:
 /alice/data/Reference/HMPID/RawSurvey/2006/781282_v1.txt
void ListValidDetectors()
 List the valid detector names
TGridResult * QueryReports(TString detector, Int_t year, Int_t reportNumber, Int_t reportVersion)
 Queries AliEn for existing reports matching the specified conditions
Int_t ListReports(TString detector = "", Int_t year = -1, Int_t reportNumber = -1, Int_t reportVersion = -1)
 Lists all available reports matching the specified conditions
 Returns the number of reports found
void SetGridUser(TString username)
 Set the username used to connect to the GRID
TString & Sanitize(TString str)
 Cleans up a line of new line and carriage return characters.
 (Specially usefull for files created in Windows.)
Bool_t ParseBuffer(const Char_t* buf)
 Parses a character buffer assuming the format defined with the TS/SU
 http://aliceinfo/Offline/Activities/Alignment/SurveyInformation.html
void Reset()
 Resets the AliSurveyObj to a clean object.
 Used if the same object is filled more than once
Int_t GetEntries() const
 Number of points (AliSurveyPoint) in the TObjArray
{return fDataPoints->GetEntries();}
TString GetReportTitle() const
{return fTitle;}
TString GetReportDate() const
{return fDate;}
TString GetDetector() const
{return fDetector;}
TString GetURL() const
{return fURL;}
Int_t GetReportNumber() const
{return fReportNr;}
Int_t GetReportVersion() const
{return fVersion;}
TString GetObservations() const
 General comments and observations
{return fObs;}
TString GetCoordSys() const
 Coordinate system used for the measurements
{return fCoordSys;}
TString GetUnits() const
 Units used in the measurement
{return fUnits;}
Int_t GetNrColumns() const
 Number of columns read from file (in the "Data" section)
{return fNrColumns;}
TObjArray * GetColumnNames() const
 TObjArray with the names of the columns read
{return fColNames.Tokenize(',');}
TObjArray * GetData() const
 TObjArray with the points read (AliSurveyPoint)
{return fDataPoints;}
Bool_t IsValid() const
{return fIsValid;}