]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDFMD.cxx
Reduced QA output (Yves)
[u/mrichter/AliRoot.git] / STEER / AliESDFMD.cxx
index 61f5a68f4480803d615b5c8ea046143e9c438767..9709396907d88b499402b74b0621afbb12cdaa67 100755 (executable)
@@ -43,7 +43,9 @@ AliESDFMD::AliESDFMD()
     fEta(AliFMDFloatMap::kMaxDetectors, 
         AliFMDFloatMap::kMaxRings, 
         1,
-        AliFMDFloatMap::kMaxStrips)
+        AliFMDFloatMap::kMaxStrips), 
+    fNoiseFactor(0),
+    fAngleCorrected(kFALSE)
 {
   // Default CTOR
 }
@@ -52,7 +54,9 @@ AliESDFMD::AliESDFMD()
 AliESDFMD::AliESDFMD(const AliESDFMD& other)
   : TObject(other), 
     fMultiplicity(other.fMultiplicity),
-    fEta(other.fEta)
+    fEta(other.fEta),
+    fNoiseFactor(other.fNoiseFactor),
+    fAngleCorrected(other.fAngleCorrected)
 {
   // Default CTOR
 }
@@ -62,11 +66,33 @@ AliESDFMD&
 AliESDFMD::operator=(const AliESDFMD& other)
 {
   // Default CTOR
-  fMultiplicity = other.fMultiplicity;
-  fEta          = other.fEta;
+  if(this!=&other){
+    TObject::operator=(other);
+    fMultiplicity = other.fMultiplicity;
+    fEta          = other.fEta;
+  }
   return *this;
 }
 
+void AliESDFMD::Copy(TObject &obj) const{
+  // this overwrites the virtual TOBject::Copy()
+  // to allow run time copying without casting
+  // in AliESDEvent
+
+  if(this==&obj)return;
+  AliESDFMD *robj = dynamic_cast<AliESDFMD*>(&obj);
+  if(!robj)return; // not an AliESDFMD
+  *robj = *this;
+}
+
+//____________________________________________________________________
+void
+AliESDFMD::CheckNeedUShort(TFile* file) 
+{
+  fMultiplicity.CheckNeedUShort(file);
+  fEta.CheckNeedUShort(file);
+}
+
 //____________________________________________________________________
 void
 AliESDFMD::Clear(Option_t* )