]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawEquipmentV2.cxx
Adding helper functions to define 2012 pp data PS and online trigger selection
[u/mrichter/AliRoot.git] / RAW / AliRawEquipmentV2.cxx
index 8bd2aed0674a456da2c7c07347342fab41261523..46c1ba2c45531429839858d3a32d600b3846e69a 100644 (file)
@@ -87,6 +87,17 @@ void AliRawEquipmentV2::Reset()
    fRawDataRef = NULL;
 }
 
+//______________________________________________________________________________
+void AliRawEquipmentV2::Clear(Option_t*)
+{
+   // Clear the equipment in case it needs to be re-used (avoiding costly
+   // new/delete cycle). Called by AliRawEventV2 Clear method inside the event loop.
+
+   fEqpHdr.Reset();
+   fRawDataRef = NULL;
+   fRawData = NULL;
+}
+
 //______________________________________________________________________________
 AliRawEquipmentV2::~AliRawEquipmentV2()
 {