]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRawClusterV2.cxx
improved GenEventHeader() method in case of AOD
[u/mrichter/AliRoot.git] / MUON / AliMUONRawClusterV2.cxx
index f0f62b8737405f4d49b818a53c78348af5e62ebb..0051884632f875ed005cbba77d772443916fcb2c 100644 (file)
@@ -25,7 +25,6 @@
 
 
 #include "AliMUONRawClusterV2.h"
-#include "AliMUONConstants.h"
 
 #include "AliLog.h"
 
@@ -43,12 +42,13 @@ AliMUONRawClusterV2::AliMUONRawClusterV2()
     fX(FLT_MAX),
     fY(FLT_MAX),
     fZ(FLT_MAX),
-    fErrX2(AliMUONConstants::DefaultNonBendingReso2()),
-    fErrY2(AliMUONConstants::DefaultBendingReso2()),
+    fErrX2(FLT_MAX),
+    fErrY2(FLT_MAX),
     fQ(0.),
     fChi2(0.),
     fNDigits(0),
-    fDigitsId(0x0)
+    fDigitsId(0x0),
+    fMCLabel(-1)
 {
   /// Default Constructor
 }
@@ -59,12 +59,13 @@ AliMUONRawClusterV2::AliMUONRawClusterV2(Int_t chamberId, Int_t detElemId, Int_t
     fX(FLT_MAX),
     fY(FLT_MAX),
     fZ(FLT_MAX),
-    fErrX2(AliMUONConstants::DefaultNonBendingReso2()),
-    fErrY2(AliMUONConstants::DefaultBendingReso2()),
+    fErrX2(FLT_MAX),
+    fErrY2(FLT_MAX),
     fQ(0.),
     fChi2(0.),
     fNDigits(0),
-    fDigitsId(0x0)
+    fDigitsId(0x0),
+    fMCLabel(-1)
 {
   /// Constructor
 }
@@ -87,7 +88,8 @@ AliMUONRawClusterV2::AliMUONRawClusterV2(const AliMUONRawClusterV2& cluster)
     fQ(cluster.fQ),
     fChi2(cluster.fChi2),
     fNDigits(cluster.fNDigits),
-    fDigitsId(0x0)
+    fDigitsId(0x0),
+    fMCLabel(cluster.fMCLabel)
 
 {
   /// Copy constructor
@@ -118,6 +120,7 @@ AliMUONRawClusterV2 & AliMUONRawClusterV2::operator=(const AliMUONRawClusterV2&
   fQ = cluster.fQ;
   fChi2 = cluster.fChi2;
   SetDigitsId(cluster.fNDigits,cluster.fDigitsId);
+  fMCLabel = cluster.fMCLabel;
 
   return *this;
 }
@@ -158,7 +161,7 @@ void AliMUONRawClusterV2::AddDigitId(UInt_t id)
   UInt_t *digitsIdNew = new UInt_t[fNDigits+1];
   memcpy(digitsIdNew,fDigitsId, fNDigits*sizeof(UInt_t));
   digitsIdNew[fNDigits++] = id;
-  delete fDigitsId;
+  delete[] fDigitsId;
   fDigitsId = digitsIdNew;
 }