1010// or submit itself to any jurisdiction.
1111
1212#include " MIDDigitizerSpec.h"
13+
14+ #include < limits>
1315#include " TChain.h"
1416#include " Framework/CCDBParamSpec.h"
1517#include " Framework/ConfigParamRegistry.h"
@@ -64,7 +66,8 @@ class MIDDPLDigitizerTask : public o2::base::BaseDPLDigitizer
6466 }
6567 if (matcher == ConcreteDataMatcher (header::gDataOriginMID , " CHAMBER_HV" , 0 )) {
6668 auto * dpMap = static_cast <DPMAP*>(obj);
67- mDigitizer ->getChamberResponse ().setHV (*dpMap);
69+ LOG (debug) << " Setting HV with startTS: " << mStartTS << " endTS: " << mEndTS ;
70+ mDigitizer ->getChamberResponse ().setHV (*dpMap, mStartTS , mEndTS );
6871 return ;
6972 }
7073 }
@@ -79,6 +82,8 @@ class MIDDPLDigitizerTask : public o2::base::BaseDPLDigitizer
7982
8083 // read collision context from input
8184 auto context = pc.inputs ().get <o2::steer::DigitizationContext*>(" collisioncontext" );
85+ mStartTS = context->getGRP ().getTimeStart ();
86+ mEndTS = context->getGRP ().getTimeEnd ();
8287 // Triggers reading from CCDB
8388 pc.inputs ().get <std::vector<ChEffCounter>*>(" mid_ch_eff" );
8489 pc.inputs ().get <DPMAP*>(" mid_ch_hv" );
@@ -148,6 +153,8 @@ class MIDDPLDigitizerTask : public o2::base::BaseDPLDigitizer
148153 // RS: at the moment using hardcoded flag for continuos readout
149154 o2::parameters::GRPObject::ROMode mROMode = o2::parameters::GRPObject::CONTINUOUS; // readout mode
150155 ElectronicsDelay mElectronicsDelay ; // Electronics delay
156+ uint64_t mStartTS = 0 ; // Start timestamp of run
157+ uint64_t mEndTS = std::numeric_limits<uint64_t >::max(); // End timestamp of run
151158};
152159
153160o2::framework::DataProcessorSpec getMIDDigitizerSpec (int channel, bool mctruth)
0 commit comments