+ Float_t beamEnergy = grpObject->GetBeamEnergy();
+ if (beamEnergy==AliGRPObject::GetInvalidFloat()) {
+ AliError("GRP/GRP/Data entry: missing value for the beam energy ! Using 0");
+ beamEnergy = 0;
+ }
+
+ TString runType = grpObject->GetRunType();
+ if (runType==AliGRPObject::GetInvalidString()) {
+ AliError("GRP/GRP/Data entry: missing value for the run type ! Using UNKNOWN");
+ runType = "UNKNOWN";
+ }
+
+ Int_t activeDetectors = grpObject->GetDetectorMask();
+ if (activeDetectors==AliGRPObject::GetInvalidInt()) {
+ AliError("GRP/GRP/Data entry: missing value for the detector mask ! Using 1074790399");
+ activeDetectors = 1074790399;
+ }
+
+ fRunInfo = new AliRunInfo(lhcState, beamType, beamEnergy, runType, activeDetectors);
+
+ fRunInfoOwner = kTRUE ;
+
+ // set the event specie
+ fEventSpecie = AliRecoParam::kDefault ;
+ if (strcmp(runType,"PHYSICS")) {
+ // Not a physics run, the event specie is set to kCalib
+ fEventSpecie = AliRecoParam::kCalib ;
+ return;
+ }
+ if (strcmp(lhcState,"STABLE_BEAMS") == 0) {
+ // Heavy ion run (any beam tha is not pp, the event specie is set to kHighMult
+ fEventSpecie = AliRecoParam::kHighMult ;
+ if ((strcmp(beamType,"p-p") == 0) ||
+ (strcmp(beamType,"p-") == 0) ||
+ (strcmp(beamType,"-p") == 0) ||
+ (strcmp(beamType,"P-P") == 0) ||
+ (strcmp(beamType,"P-") == 0) ||
+ (strcmp(beamType,"-P") == 0)) {
+ // Proton run, the event specie is set to kLowMult
+ fEventSpecie = AliRecoParam::kLowMult ;
+ }
+ else if (strcmp(beamType,"-") == 0) {
+ // No beams, we assume cosmic data
+ fEventSpecie = AliRecoParam::kCosmic ;
+ }
+ else if (strcmp(beamType,"UNKNOWN") == 0) {
+ // No LHC beam information is available, we use the default event specie
+ fEventSpecie = AliRecoParam::kDefault ;
+ }
+ }