15 return "PbPb2024_Shadowing";
17 return "PbPb2024_NoShadowing";
27 return std::string(
"UNKNOWN HI DATA TAKING PERIOD ") +
28 std::to_string(
static_cast<uint8_t
>(when));
41 return std::string(
"UNKNOWN PU VARIATION ") +
42 std::to_string(
static_cast<uint8_t
>(variation));
52 return StatusCode::SUCCESS;
75 for (
auto slice : *es) {
76 const static std::set fcalLayers({21, 22, 23});
77 if (fcalLayers.contains(slice->layer()))
85 for (
auto module : *zdcModules) {
86 e += calibEnergyAccessor(*module);
101 const float cut =
zdcCutValue(when, fcalEt, variation);
108 const float cut =
ntrkCutValue(when, fcalEt, variation);
120 const float peakPositionA = -56;
121 const float peakPositionC = -156;
122 const float peakWidthA = 51.8;
123 const float peakWidthC = 51.8;
131 if (presamplerA > (peakPositionA + sigma * peakWidthA) and
132 presamplerC > (peakPositionC + sigma * peakWidthC)) {
144 unsigned int nPrimary = 0;
151 return (nPrimary == 1);
157 throw std::runtime_error(
158 std::to_string(fcalEt) +
159 " the energy that is given to zdcCutValue is well above 100 TeV?, "
160 "likely you call it not converting energy to TeV");
164 auto cutFunction = [](
float et) {
165 const static double a = 334.29, b = -20.39,
167 return a + b *
et + c *
et *
et;
170 float cut = cutFunction(fcalEt);
172 cut = cutFunction(1.0);
174 cut = cutFunction(4.0);
184 throw std::runtime_error(std::string(
"period of id ") +
HI::toString(when) +
200 uint32_t
run)
const {
202 throw std::runtime_error(std::to_string(
run) +
203 " not handled by selection tool");
219 throw std::runtime_error(std::to_string(
run) +
220 " not handled by selection tool");
Helper class to provide constant type-safe access to aux data.
@ Tile
The Tile calorimeter.
@ Pixel
The pixel tracker.
@ LAr
The LAr calorimeter.
@ Error
The sub-detector issued an error.
uint32_t runNumber() const
The current event's run number.
EventFlagErrorState errorState(EventFlagSubDet subDet) const
Get the error state for a particular sub-detector.
std::string toString(IonDataType)
ZdcModuleContainer_v1 ZdcModuleContainer
EventInfo_v1 EventInfo
Definition of the latest event info version.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.
Extra patterns decribing particle interation process.
int run(int argc, char *argv[])