Skip to content

Commit

Permalink
Changes for report #65804: technical fix for AliGRPPreprocessor.cxx (…
Browse files Browse the repository at this point in the history
…Chiara)
  • Loading branch information
hristov committed Apr 14, 2010
1 parent 419d164 commit 8fc0adb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions STEER/AliGRPPreprocessor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -789,10 +789,12 @@ UInt_t AliGRPPreprocessor::ProcessLHCData(AliGRPObject *grpobj)
TObjString* beamString = beam->GetStringArray(0);
TString beamType = beamString->String();
AliInfo(Form("Beam Type = %s",beamType.Data()));
if (beamType.CompareTo("PROTON",TString::kIgnoreCase)){
if (beamType.CompareTo("PROTON",TString::kIgnoreCase) == 0){
AliInfo("Setting the beam type tp p-p");
grpobj->SetBeamType("p-p");
}
else if (beamType.CompareTo("LEAD82",TString::kIgnoreCase)){
else if (beamType.CompareTo("LEAD82",TString::kIgnoreCase) == 0){
AliInfo("Setting the beam type tp Pb-Pb");
grpobj->SetBeamType("Pb-Pb");
}
else{
Expand Down Expand Up @@ -827,10 +829,12 @@ UInt_t AliGRPPreprocessor::ProcessLHCData(AliGRPObject *grpobj)
TObjString* beamString = beam->GetStringArray(0);
TString beamType = beamString->String();
AliInfo(Form("Beam Type = %s",beamType.Data()));
if (beamType.CompareTo("PROTON",TString::kIgnoreCase)){
if (beamType.CompareTo("PROTON",TString::kIgnoreCase) == 0){
AliInfo("Setting the beam type to p-p");
grpobj->SetBeamType("p-p");
}
else if (beamType.CompareTo("LEAD82",TString::kIgnoreCase)){
else if (beamType.CompareTo("LEAD82",TString::kIgnoreCase) == 0){
AliInfo("Setting the beam type to Pb-Pb");
grpobj->SetBeamType("Pb-Pb");
}
else{
Expand Down

0 comments on commit 8fc0adb

Please sign in to comment.