Skip to content

Commit 12ce8ce

Browse files
noferinisawenzel
authored andcommitted
fix in tof sim for large TF offset
1 parent 352bf76 commit 12ce8ce

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Detectors/TOF/simulation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
o2_add_library(TOFSimulation
1313
SOURCES src/Detector.cxx src/Digitizer.cxx src/DigitizerTask.cxx src/TOFSimParams.cxx
1414
PUBLIC_LINK_LIBRARIES O2::DetectorsBase O2::TOFBase
15-
O2::SimulationDataFormat
15+
O2::SimulationDataFormat O2::DetectorsRaw
1616
O2::TOFCalibration)
1717

1818
o2_target_root_dictionary(TOFSimulation

Detectors/TOF/simulation/src/Digitizer.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "TOFSimulation/Digitizer.h"
1313
#include "DetectorsBase/GeometryManager.h"
1414
#include "TOFSimulation/TOFSimParams.h"
15+
#include "DetectorsRaw/HBFUtils.h"
1516

1617
#include "TCanvas.h"
1718
#include "TFile.h"
@@ -67,6 +68,9 @@ digit time = NBC*1024 + Ntdc
6768
void Digitizer::init()
6869
{
6970

71+
// set first readout window in MC production getting
72+
mReadoutWindowCurrent = o2::raw::HBFUtils::Instance().orbitFirstSampled * Geo::NWINDOW_IN_ORBIT;
73+
7074
// method to initialize the parameters neede to digitize and the array of strip objects containing
7175
// the digits belonging to a strip
7276

0 commit comments

Comments
 (0)