--- DarthVader/CalorimeterLevel2/src/CaloLevel2.cpp 2006/05/19 13:15:49 1.1 +++ DarthVader/CalorimeterLevel2/src/CaloLevel2.cpp 2006/06/30 09:21:53 1.2 @@ -114,6 +114,41 @@ estrip = TArrayF(0,NULL); }; +void CaloLevel2::Clear() { + // + CaloTrk->Clear(); + // + nstrip = 0; + qtot = 0.; + impx = 0.; + impy = 0.; + tanx = 0.; + tany = 0.; + qmax = 0.; + nx22 = 0; + qx22 = 0.; + elen = 0.; + selen = 0.; + for (Int_t i = 0; i<4 ; i++){ + qq[i] = 0.; + perr[i] = 0; + swerr[i] = 0; + crc[i] = 0; + if ( i < 2 ){ + planemax[i] = 0; + varcfit[i] = 0.; + npcfit[i] = 0; + for ( Int_t j = 0; j<22; j++){ + cibar[j][i] = 0; + cbar[j][i] = 0.; + }; + }; + }; + good = 0; + selftrigger = 0; + estrip = TArrayF(0,NULL); +}; + /** * Gives the detected energy for the given strip once loaded the event **/