Skip to content

Commit 8d0cd0e

Browse files
authored
Update CollisionTypeHelper.cxx
1 parent e02f651 commit 8d0cd0e

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

Common/Core/CollisionTypeHelper.cxx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@ std::string o2::common::core::CollisionSystemType::getCollisionSystemName(collTy
3434
return "XeXe";
3535
case kCollSyspPb:
3636
return "pPb";
37+
case kCollSysOO:
38+
return "OO";
39+
case kCollSyspO:
40+
return "pO";
41+
case kCollSysNeNe:
42+
return "NeNe";
43+
case kCollSysUndef:
44+
return "Undefined";
3745
default:
46+
LOG(warning) << "Undefined collision system type: " << collSys;
3847
return "Undefined";
3948
}
4049
}
@@ -43,7 +52,10 @@ int o2::common::core::CollisionSystemType::getCollisionTypeFromGrp(o2::parameter
4352
{
4453
const int ZBeamA = grplhcif->getBeamZ(o2::constants::lhc::BeamDirection::BeamA);
4554
const int ZBeamC = grplhcif->getBeamZ(o2::constants::lhc::BeamDirection::BeamC);
46-
LOG(debug) << "Collision system: " << ZBeamA << " * " << ZBeamC << " detected";
55+
const int ABeamA = grplhcif->getBeamA(o2::constants::lhc::BeamDirection::BeamA);
56+
const int ABeamC = grplhcif->getBeamA(o2::constants::lhc::BeamDirection::BeamC);
57+
LOG(debug) << "Collision system Z: " << ZBeamA << " * " << ZBeamC << " detected = " << ZBeamA * ZBeamC;
58+
LOG(debug) << "Collision system A: " << ABeamA << " * " << ABeamC << " detected = " << ABeamA * ABeamC;
4759
switch (ZBeamA * ZBeamC) {
4860
case 1: // pp 1*1
4961
return kCollSyspp;
@@ -53,8 +65,14 @@ int o2::common::core::CollisionSystemType::getCollisionTypeFromGrp(o2::parameter
5365
return kCollSysXeXe;
5466
case 82: // p-Pb 82*1
5567
return kCollSyspPb;
68+
case 64: // O-O 8*8
69+
return kCollSysOO;
70+
case 8: // p-O 8*1
71+
return kCollSyspO;
72+
case 100: // Ne-Ne 10*10
73+
return kCollSysNeNe;
5674
default:
57-
LOG(fatal) << "Undefined collision system in getCollisionTypeFromGrp with BeamA = " << ZBeamA << " and BeamC = " << ZBeamC;
75+
LOG(fatal) << "Undefined collision system in getCollisionTypeFromGrp with Z of BeamA = " << ZBeamA << " and Z of BeamC = " << ZBeamC << "; A of BeamA = " << ABeamA << " and A of BeamC = " << ABeamC;
5876
return kCollSysUndef;
5977
}
6078
return kCollSysUndef;

0 commit comments

Comments
 (0)