From 82d478f39e8f214203f97e819b6120cc580335b8 Mon Sep 17 00:00:00 2001 From: lintao <lintao51@gmail.com> Date: Sat, 28 Nov 2020 22:14:16 +0800 Subject: [PATCH] WIP: reformat the code at the start of the event execution. comment the event number due to event header does not exists. --- Analysis/TotalInvMass/src/TotalInvMass.cc | 52 +++++++++++------------ 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/Analysis/TotalInvMass/src/TotalInvMass.cc b/Analysis/TotalInvMass/src/TotalInvMass.cc index b4f34b76..46891f1f 100644 --- a/Analysis/TotalInvMass/src/TotalInvMass.cc +++ b/Analysis/TotalInvMass/src/TotalInvMass.cc @@ -191,34 +191,32 @@ StatusCode TotalInvMass::execute() TLorentzVector ArborISR(0, 0, 0, 0); TLorentzVector PandoraISR(0, 0, 0, 0); - _eventNr = evtP->getEventNumber(); - - for(int i0 = 0; i0 < 4; i0++) - { - TotalP_a[i0] = 0; - TotalP_p[i0] = 0; - ChP[i0] = 0; - PhP[i0] = 0; - NeP[i0] = 0; - FrP[i0] = 0; - UdP[i0] = 0; - FrPh[i0] = 0; - FrNe[i0] = 0; - KPF[i0] = 0; - if(i0 < 2) - { - NeCaloE_a[i0] = 0; - NeCaloE_p[i0] = 0; - CluEnCom[i0] = 0; - ElargeP[i0] = 0; - EequP[i0] = 0; - EsmallP[i0] = 0; - } - if(i0 < 3) - { - P[i0] = 0; - } + // TODO: using the event header + // _eventNr = evtP->getEventNumber(); + + for(int i0 = 0; i0 < 4; i0++) { + TotalP_a[i0] = 0; + TotalP_p[i0] = 0; + ChP[i0] = 0; + PhP[i0] = 0; + NeP[i0] = 0; + FrP[i0] = 0; + UdP[i0] = 0; + FrPh[i0] = 0; + FrNe[i0] = 0; + KPF[i0] = 0; + if(i0 < 2) { + NeCaloE_a[i0] = 0; + NeCaloE_p[i0] = 0; + CluEnCom[i0] = 0; + ElargeP[i0] = 0; + EequP[i0] = 0; + EsmallP[i0] = 0; } + if(i0 < 3) { + P[i0] = 0; + } + } nCHPFO_a = 0; nCHPFO_p = 0; -- GitLab