]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix Coverity
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Dec 2011 13:50:01 +0000 (13:50 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Dec 2011 13:50:01 +0000 (13:50 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoEventCutEstimators.cxx
PWG2/FEMTOSCOPY/AliFemto/AliFemtoEventCutEstimators.h

index 5cf58d666cb12dbfce47acac21b0019c894d4cb6..f9d8b99bc40ee25cc3cb8d0d6452ffc7efb3f3fb 100644 (file)
@@ -46,6 +46,24 @@ AliFemtoEventCutEstimators::AliFemtoEventCutEstimators() :
 AliFemtoEventCutEstimators::~AliFemtoEventCutEstimators(){
   // Default destructor
 }
+//------------------------------
+AliFemtoEventCutEstimators& AliFemtoEventCutEstimators::operator=(AliFemtoEventCutEstimators& c)
+{
+  if (this != &c) {
+    fEventMultEst1[0] = c.fEventMultEst1[0];  fEventMultEst1[1] = c.fEventMultEst1[1];
+    fEventMultEst2[0] = c.fEventMultEst2[0];  fEventMultEst2[1] = c.fEventMultEst2[1];
+    fEventMultEst3[0] = c.fEventMultEst3[0];  fEventMultEst3[1] = c.fEventMultEst3[1];
+    fEventCentEst1[0] = c.fEventCentEst1[0];  fEventCentEst1[1] = c.fEventCentEst1[1];
+    fEventCentEst2[0] = c.fEventCentEst2[0];  fEventCentEst2[1] = c.fEventCentEst2[1];
+    fEventCentEst3[0] = c.fEventCentEst3[0];  fEventCentEst3[1] = c.fEventCentEst3[1];
+    fEventCentEst4[0] = c.fEventCentEst4[0];  fEventCentEst4[1] = c.fEventCentEst4[1];
+    fVertZPos[0] = c.fVertZPos[0];
+    fVertZPos[1] = c.fVertZPos[1];
+  }
+
+  return *this;
+}
+
 //------------------------------
 bool AliFemtoEventCutEstimators::Pass(const AliFemtoEvent* event){
   // Pass events if they fall within the multiplicity and z-vertex
index cda7b6613442dbb8cfdf110b3d560bd27bd9f627..a868436bafae64a529444511edda735585bd717d 100644 (file)
@@ -23,6 +23,7 @@ public:
   AliFemtoEventCutEstimators();
   AliFemtoEventCutEstimators(AliFemtoEventCutEstimators& c);
   virtual ~AliFemtoEventCutEstimators();
+  AliFemtoEventCutEstimators& operator=(AliFemtoEventCutEstimators& c);
 
   void SetMultEst1Range(const unsigned short &lo, const unsigned short &hi);
   void SetMultEst2Range(const unsigned short &lo, const unsigned short &hi);