//-----------------------------------------------------------------------------\r
\r
AliGRPObject::AliGRPObject(const AliGRPObject &obj):\r
- TObject(),\r
+ TObject(obj),\r
fPoints(obj.fPoints),\r
fDimension(obj.fDimension),\r
fTimeStart(obj.fTimeStart),\r
// AliGRPObject copy ctor\r
//\r
\r
+ fHallProbes = new Float_t[fDimension]; \r
+\r
for (Int_t nhp=0; nhp< fDimension; nhp++){\r
fHallProbes[nhp] = obj.fHallProbes[nhp];\r
}\r
// AliGRPObject assignment operator\r
//\r
\r
+ if (&obj == this) return *this; \r
+\r
+ TObject::operator=(obj);\r
this->fTimeStart = obj.GetTimeStart();\r
this->fTimeEnd = obj.GetTimeEnd();\r
this->fBeamEnergy = obj.GetBeamEnergy();\r
this->fDipoleCurrent = new Float_t[fPoints];\r
this->fCavernTemperature = new Float_t[fPoints];\r
\r
+ if (this->fHallProbes==NULL) this->fHallProbes = new Float_t[this->fDimension]; \r
for (Int_t nhp=0; nhp< fDimension; nhp++){\r
this->fHallProbes[nhp] = obj.GetHallProbes(nhp);\r
\r
}\r
\r
if(mapGRP->GetValue("fAliceBeamEnergy")){\r
- SetBeamEnergy((((TObjString*)(mapGRP->GetValue("fAliceBeamEnergy")))->GetString()).Atof());\r
+ double be = (((TObjString*)(mapGRP->GetValue("fAliceBeamEnergy")))->GetString()).Atof();\r
+ if (IsBeamEnergyIsSqrtSHalfGeV()) be/=2; // old format was storig sqrt(s)\r
+ SetBeamEnergy(be);\r
}\r
else { \r
AliError(Form("No fAliceBeamEnergy value found in GRP map!"));\r