Skip to content

Commit 56e38b6

Browse files
author
wpierozak
committed
FT0 EventsPerBc calibration: storing histograms in float format, updated readme
1 parent 864d008 commit 56e38b6

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Detectors/FIT/FT0/calibration/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ Generates histograms of **Events per Bunch Crossing (BC)**. Events can be filter
1919
## How to Run
2020

2121
### Simulation Data
22+
First, it is important to digitize data with a non-zero run number, orbit, and timestamp. To set these parameters, one can use the `--configKeyValues` option, as shown in the example below.
23+
```
24+
o2-sim-digitizer-workflow \
25+
--onlyDet FT0 \
26+
--configKeyValues="HBFUtils.nHBFPerTF=128;HBFUtils.orbitFirst=128;HBFUtils.orbitFirstSampled=256;HBFUtils.runNumber=560560;HBFUtils.timestamp=1768464099000"
27+
```
28+
2229
To process simulation data, digits must first be converted to RAW format. The `o2-ft0-digi2raw` tool performs this conversion and generates the required configuration file.
2330

2431
Once converted, you can run the calibration either as a single integrated workflow or by spawning as the sender and receiver components separately.

Detectors/FIT/FT0/calibration/include/FT0Calibration/EventsPerBcCalibrator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace o2::ft0
3030
const int32_t mMinAmplitudeSideA;
3131
const int32_t mMinAmplitudeSideC;
3232

33-
std::array<double, o2::constants::lhc::LHCMaxBunches> mTvx{0.0};
33+
std::array<float, o2::constants::lhc::LHCMaxBunches> mTvx{0.0};
3434
size_t entries{0};
3535
long startTimeStamp{0};
3636
long stopTimeStamp{0};

Detectors/FIT/FT0/calibration/src/EventsPerBcCalibrator.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ namespace o2::ft0
1212
{
1313
size_t oldEntries = entries;
1414
for(const auto& digit: data) {
15-
double isVertex = digit.mTriggers.getVertex();
15+
float isVertex = digit.mTriggers.getVertex();
1616
if (digit.mTriggers.getAmplA() < mMinAmplitudeSideA || digit.mTriggers.getAmplC() < mMinAmplitudeSideC) {
1717
continue;
1818
}
1919
mTvx[digit.mIntRecord.bc] += isVertex;
2020
entries += isVertex;
2121
}
22-
LOG(debug) << "Container is filled with " << entries - oldEntries << " new VTX events";
22+
LOG(debug) << "Container is filled with " << entries - oldEntries << " new events";
2323
}
2424

2525
void EventsPerBc::merge(const EventsPerBc* prev)

0 commit comments

Comments
 (0)