@@ -143,7 +143,9 @@ struct tofPidFullRun3 {
143143 }
144144 int ncoll = 0 ;
145145 template <o2::track::PID ::ID pid>
146- using ResponseImplementation = o2::pid::tof::ExpTimes<Trks::iterator, pid>;
146+ using ResponseImplementation = o2::pid::tof::ExpTimes<Trks::iterator, pid, false >;
147+ template <typename T, o2::track::PID ::ID pid>
148+ using ResponseImplementationForEvTime = o2::pid::tof::ExpTimes<T, pid, false >;
147149 void process (Coll const & collisions, Trks const & tracks)
148150 {
149151 tableEvTime.reserve (tracks.size ());
@@ -158,7 +160,7 @@ struct tofPidFullRun3 {
158160 constexpr auto responseAl = ResponseImplementation<PID ::Alpha>();
159161
160162 // First make table for event time
161- auto evTime = o2::tof::evTimeMakerFromParam<Trks, Trks::iterator, filterForTOFEventTime, o2::pid::tof::ExpTimes >(tracks, response);
163+ auto evTime = o2::tof::evTimeMakerFromParam<Trks, Trks::iterator, filterForTOFEventTime, ResponseImplementationForEvTime >(tracks, response);
162164 static constexpr bool removebias = true ;
163165 int ngoodtracks = 0 ;
164166 for (auto const & trk : tracks) { // Loop on Tracks
@@ -296,7 +298,7 @@ struct tofPidCollisionTimeQa { /// Task that produces the TOF collision time
296298 histos.fill (HIST (" withtof/length" ), t.length ());
297299 histos.fill (HIST (" withtof/tofSignal" ), t.tofSignal ());
298300 histos.fill (HIST (" withtof/beta" ), t.p (), beta);
299- histos.fill (HIST (" withtof/delta" ), t.p (), t.tofSignal () - t.tofEvTime () - o2::pid::tof::ExpTimes<Trks::iterator, PID ::Pion>::GetExpectedSignal (t));
301+ histos.fill (HIST (" withtof/delta" ), t.p (), t.tofSignal () - t.tofEvTime () - o2::pid::tof::ExpTimes<Trks::iterator, PID ::Pion, false >::GetExpectedSignal (t));
300302 histos.fill (HIST (" withtof/expP" ), t.p (), t.tofExpMom ());
301303 histos.fill (HIST (" withtof/mass" ), mass);
302304 histos.fill (HIST (" withtof/tofSignalPerCollision" ), ncolls % 6000 , t.tofSignal ());
@@ -317,7 +319,7 @@ struct tofPidCollisionTimeQa { /// Task that produces the TOF collision time
317319 histos.fill (HIST (" goodforevtime/length" ), t.length ());
318320 histos.fill (HIST (" goodforevtime/tofSignal" ), t.tofSignal ());
319321 histos.fill (HIST (" goodforevtime/beta" ), t.p (), beta);
320- histos.fill (HIST (" goodforevtime/delta" ), t.p (), t.tofSignal () - t.tofEvTime () - o2::pid::tof::ExpTimes<Trks::iterator, PID ::Pion>::GetExpectedSignal (t));
322+ histos.fill (HIST (" goodforevtime/delta" ), t.p (), t.tofSignal () - t.tofEvTime () - o2::pid::tof::ExpTimes<Trks::iterator, PID ::Pion, false >::GetExpectedSignal (t));
321323 histos.fill (HIST (" goodforevtime/expP" ), t.p (), t.tofExpMom ());
322324 histos.fill (HIST (" goodforevtime/mass" ), mass);
323325 histos.fill (HIST (" goodforevtime/tofSignalPerCollision" ), ncolls % 6000 , t.tofSignal ());
@@ -327,10 +329,10 @@ struct tofPidCollisionTimeQa { /// Task that produces the TOF collision time
327329
328330WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
329331{
330- auto workflow = WorkflowSpec{adaptAnalysisTask<tofSignal>(cfgc),
332+ auto workflow = WorkflowSpec{adaptAnalysisTask<tofSignal< false > >(cfgc),
331333 adaptAnalysisTask<tofPidFullRun3>(cfgc)};
332334 if (cfgc.options ().get <int >(" add-qa" )) {
333- workflow.push_back (adaptAnalysisTask<tofPidFullQa>(cfgc));
335+ workflow.push_back (adaptAnalysisTask<tofPidFullQa< false > >(cfgc));
334336 workflow.push_back (adaptAnalysisTask<tofPidCollisionTimeQa>(cfgc));
335337 }
336338 return workflow;
0 commit comments