@@ -150,13 +150,14 @@ double Digitizer::measure_amplitude(const std::vector<float>& times) const
150150void Digitizer::process (const std::vector<o2::ft0::HitType>* hits,
151151 std::vector<o2::ft0::Digit>& digitsBC,
152152 std::vector<o2::ft0::ChannelData>& digitsCh,
153+ std::vector<o2::ft0::DetTrigInput>& digitsTrig,
153154 o2::dataformats::MCTruthContainer<o2::ft0::MCLabel>& label)
154155{
155156 ;
156157 // Calculating signal time, amplitude in mean_time +- time_gate --------------
157158 LOG (DEBUG) << " process firstBCinDeque " << firstBCinDeque << " mIntRecord " << mIntRecord ;
158159 if (firstBCinDeque != mIntRecord ) {
159- flush (digitsBC, digitsCh, label);
160+ flush (digitsBC, digitsCh, digitsTrig, label);
160161 }
161162
162163 Int_t parent = -10 ;
@@ -189,6 +190,7 @@ void Digitizer::process(const std::vector<o2::ft0::HitType>* hits,
189190void Digitizer::storeBC (BCCache& bc,
190191 std::vector<o2::ft0::Digit>& digitsBC,
191192 std::vector<o2::ft0::ChannelData>& digitsCh,
193+ std::vector<o2::ft0::DetTrigInput>& digitsTrig,
192194 o2::dataformats::MCTruthContainer<o2::ft0::MCLabel>& labels)
193195{
194196 if (bc.hits .empty ()) {
@@ -266,8 +268,8 @@ void Digitizer::storeBC(BCCache& bc,
266268 if (nStored > 0 ) {
267269 triggers.setTriggers (is_A, is_C, isVertex, is_Central, is_SemiCentral, int8_t (n_hit_A), int8_t (n_hit_C),
268270 amplA, amplC, timeA, timeC);
269-
270271 digitsBC.emplace_back (first, nStored, firstBCinDeque, triggers, mEventID - 1 );
272+ digitsTrig.emplace_back (firstBCinDeque, is_A, is_C, isVertex, is_Central, is_SemiCentral);
271273 size_t const nBC = digitsBC.size ();
272274 for (auto const & lbl : bc.labels ) {
273275 labels.addElement (nBC - 1 , lbl);
@@ -286,13 +288,14 @@ void Digitizer::storeBC(BCCache& bc,
286288// ------------------------------------------------------------------------
287289void Digitizer::flush (std::vector<o2::ft0::Digit>& digitsBC,
288290 std::vector<o2::ft0::ChannelData>& digitsCh,
291+ std::vector<o2::ft0::DetTrigInput>& digitsTrig,
289292 o2::dataformats::MCTruthContainer<o2::ft0::MCLabel>& labels)
290293{
291294
292295 assert (firstBCinDeque <= mIntRecord );
293296
294297 while (firstBCinDeque < mIntRecord && !mCache .empty ()) {
295- storeBC (mCache .front (), digitsBC, digitsCh, labels);
298+ storeBC (mCache .front (), digitsBC, digitsCh, digitsTrig, labels);
296299 mCache .pop_front ();
297300 ++firstBCinDeque;
298301 }
@@ -301,13 +304,14 @@ void Digitizer::flush(std::vector<o2::ft0::Digit>& digitsBC,
301304
302305void Digitizer::flush_all (std::vector<o2::ft0::Digit>& digitsBC,
303306 std::vector<o2::ft0::ChannelData>& digitsCh,
307+ std::vector<o2::ft0::DetTrigInput>& digitsTrig,
304308 o2::dataformats::MCTruthContainer<o2::ft0::MCLabel>& labels)
305309{
306310
307311 assert (firstBCinDeque <= mIntRecord );
308312 ++mEventID ;
309313 while (!mCache .empty ()) {
310- storeBC (mCache .front (), digitsBC, digitsCh, labels);
314+ storeBC (mCache .front (), digitsBC, digitsCh, digitsTrig, labels);
311315 mCache .pop_front ();
312316 ++firstBCinDeque;
313317 }
0 commit comments