Adding processing of the LHC Data from the GRP.
[u/mrichter/AliRoot.git] / STEER / AliGRPObject.cxx
index 32781f5..ff1ee87 100644 (file)
@@ -106,7 +106,10 @@ AliGRPObject::AliGRPObject():
        fCavernAtmosPressure(0x0),\r
        fCavernAtmosPressure2(0x0),\r
        fSurfaceAtmosPressure(0x0),\r
-       fHallProbes(0x0)\r
+       fHallProbes(0x0),\r
+       fMachineMode(fgkInvalidString),\r
+       fLHCStateArray(0x0),\r
+       fMachineModeArray(0x0)\r
 {\r
 \r
        //\r
@@ -157,7 +160,11 @@ AliGRPObject::AliGRPObject(const AliGRPObject &obj):
        fCavernAtmosPressure(obj.fCavernAtmosPressure),\r
        fCavernAtmosPressure2(obj.fCavernAtmosPressure2),\r
        fSurfaceAtmosPressure(obj.fSurfaceAtmosPressure),\r
-       fHallProbes(0x0)\r
+       fHallProbes(0x0),\r
+       fMachineMode(obj.fMachineMode),\r
+       fLHCStateArray(obj.fLHCStateArray),\r
+       fMachineModeArray(obj.fMachineModeArray)\r
+\r
 \r
 {\r
 \r
@@ -232,6 +239,10 @@ AliGRPObject& AliGRPObject:: operator=(const AliGRPObject & obj)
                this->fCavernTemperature[i] = obj.GetCavernTemperature((Stats)i);\r
        }\r
 \r
+       this->fMachineMode = obj.fMachineMode;\r
+       this->fLHCStateArray = obj.fLHCStateArray;\r
+       this->fMachineModeArray = obj.fMachineModeArray;\r
+\r
        return *this;\r
 }\r
 \r
@@ -271,6 +282,14 @@ AliGRPObject::~AliGRPObject() {
                delete fSurfaceAtmosPressure;\r
                fSurfaceAtmosPressure = 0x0;\r
        }\r
+       if (fLHCStateArray){\r
+               delete fLHCStateArray;\r
+               fLHCStateArray = 0x0;\r
+       }\r
+       if (fMachineModeArray){\r
+               delete fMachineModeArray;\r
+               fMachineModeArray = 0x0;\r
+       }\r
 }\r
 \r
 //-----------------------------------------------------------------------------\r