diff --git a/NPLib/Detectors/GeTAMU/TGeTAMUPhysics.cxx b/NPLib/Detectors/GeTAMU/TGeTAMUPhysics.cxx index cffae20d3dda70ff60658ef50df59b1c1b1a9743..bb1a15ff3e55d8944cfa36193c75c14c607bd635 100644 --- a/NPLib/Detectors/GeTAMU/TGeTAMUPhysics.cxx +++ b/NPLib/Detectors/GeTAMU/TGeTAMUPhysics.cxx @@ -52,6 +52,7 @@ ClassImp(TGeTAMUPhysics) ///////////////////////////////////////////////// void TGeTAMUPhysics::BuildPhysicalEvent(){ PreTreat(); + unsigned int c_size_e = m_PreTreatedData->GetMultiplicityCoreE(); unsigned int s_size_e = m_PreTreatedData->GetMultiplicitySegmentE(); unsigned int c_size_t = m_PreTreatedData->GetMultiplicityCoreT(); @@ -107,6 +108,9 @@ for (unsigned i = 0 ; i < m_PreTreatedData->GetMultiplicityCoreT(); i++) ///////////////////////////////////////////////// void TGeTAMUPhysics::PreTreat(){ + + ClearPreTreatedData(); + static CalibrationManager* cal = CalibrationManager::getInstance(); static string name; unsigned int mysizeE = m_EventData->GetMultiplicityCoreE(); @@ -304,6 +308,7 @@ void TGeTAMUPhysics::InitializeRootOutput() { TTree* outputTree = RootOutput::getInstance()->GetTree(); outputTree->Branch( "GeTAMU" , "TGeTAMUPhysics" , &m_EventPhysics ); } + /////////////////////////////////////////////////////////////////////////// void TGeTAMUPhysics::Clear() { AddBack_E.clear(); @@ -318,11 +323,7 @@ void TGeTAMUPhysics::Clear() { AddBack_T.clear(); GeTime.clear(); } -/////////////////////////////////////////////////////////////////////////// -void TGeTAMUPhysics::ClearEventData() { - m_EventData->Clear(); - m_PreTreatedData->Clear(); -} + /////////////////////////////////////////////////////////////////////////// void TGeTAMUPhysics::AddParameterToCalibrationManager(){ CalibrationManager* Cal = CalibrationManager::getInstance(); diff --git a/NPLib/Detectors/GeTAMU/TGeTAMUPhysics.h b/NPLib/Detectors/GeTAMU/TGeTAMUPhysics.h index c060782722395d5f633ad3afe37b075c8c668270..4399a14e1362704e1ec9409933e62220fddb7b46 100644 --- a/NPLib/Detectors/GeTAMU/TGeTAMUPhysics.h +++ b/NPLib/Detectors/GeTAMU/TGeTAMUPhysics.h @@ -72,11 +72,13 @@ class TGeTAMUPhysics : public TObject, public NPL::VDetector{ void BuildSimplePhysicalEvent(){BuildPhysicalEvent();} ; // Clear the Event Physics - void ClearEventPhysics() {Clear();} - void ClearEventData() ; - + void ClearEventPhysics() {Clear();} + void ClearEventData() {m_EventData->Clear();} + public: void PreTreat(); + // clear the pre-treated object + void ClearPreTreatedData() {m_PreTreatedData->Clear();} private: // Root Input and Output tree classes