Coding conventions
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Nov 2007 04:05:15 +0000 (04:05 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Nov 2007 04:05:15 +0000 (04:05 +0000)
ESDCheck/AliPMDQATask.cxx
ESDCheck/AliPMDQATask.h
ESDCheck/AliVZEROQATask.cxx
ESDCheck/AliVZEROQATask.h

index bd714624e5565ce9c7566efbf65eab78a5ac35b6..4988a4222dcd07746159f9af91ae79ecb8a9e69a 100644 (file)
@@ -25,7 +25,6 @@
 #include <TCanvas.h>
 #include <TChain.h>
 #include <TFile.h> 
-#include <TH1F.h>
 #include <TH2F.h>
 #include <TLine.h> 
 #include <TROOT.h>
@@ -88,6 +87,63 @@ AliPMDQATask::AliPMDQATask(const char *name) :
   DefineOutput(0,  TObjArray::Class()) ; 
 }
 
+//______________________________________________________________________________
+AliPMDQATask::AliPMDQATask(const  AliPMDQATask& ta) : 
+AliAnalysisTask(ta.GetName(), ""),  
+fChain(ta.fChain),
+fESD(ta.fESD), 
+fhPMDP1(ta.fhPMDP1),
+fhPMDC2(ta.fhPMDC2),
+fhPMDP2(ta.fhPMDP2),
+fhPMDC3(ta.fhPMDC3),
+fhPMDP3(ta.fhPMDP3),
+fhPMDP4(ta.fhPMDP4),
+fhPMDC5(ta.fhPMDC5),
+fhPMDP5(ta.fhPMDP5),
+fhPMDCP0(ta.fhPMDCP0),
+fhPMDCP1(ta.fhPMDCP1),
+fhPMDCP2(ta.fhPMDCP2),
+fhPMDCP3(ta.fhPMDCP3),
+fhPMDCP4(ta.fhPMDCP4),
+fhPMDSM1(ta.fhPMDSM1),
+fhPMDSM2(ta.fhPMDSM2),
+fhPMDSM3(ta.fhPMDSM3),
+fhPMDSM4(ta.fhPMDSM4),
+fhPMDSM5(ta.fhPMDSM5),
+fhPMDSM6(ta.fhPMDSM6),
+fhPMDSM7(ta.fhPMDSM7),
+fhPMDSM8(ta.fhPMDSM8),
+fhPMDSM9(ta.fhPMDSM9),
+fhPMDSM10(ta.fhPMDSM10),
+fhPMDSM11(ta.fhPMDSM11),
+fhPMDSM12(ta.fhPMDSM12),
+fhPMDSM13(ta.fhPMDSM13),
+fhPMDSM14(ta.fhPMDSM14),
+fhPMDSM15(ta.fhPMDSM15),
+fhPMDSM16(ta.fhPMDSM16),
+fhPMDSM17(ta.fhPMDSM17),
+fhPMDSM18(ta.fhPMDSM18),
+fhPMDSM19(ta.fhPMDSM19),
+fhPMDSM20(ta.fhPMDSM20),
+fhPMDSM21(ta.fhPMDSM21),
+fhPMDSM22(ta.fhPMDSM22),
+fhPMDSM23(ta.fhPMDSM23),
+fhPMDSM24(ta.fhPMDSM24),
+fhPMDSM (ta.fhPMDSM)
+{
+       // copy constructor
+}
+
+//_____________________________________________________________________________
+AliPMDQATask& AliPMDQATask::operator = (const AliPMDQATask& ap)
+{
+       // assignment operator
+       
+       this->~AliPMDQATask();
+       new(this) AliPMDQATask(ap);
+       return *this;
+}
+
 //______________________________________________________________________________
 AliPMDQATask::~AliPMDQATask()
 {
@@ -602,7 +658,7 @@ void AliPMDQATask::Terminate(Option_t *)
 }
 
 //______________________________________________________________________________
-void AliPMDQATask::CalculateSMN( Float_t clsX, Float_t clsY, Int_t & smn)
+void AliPMDQATask::CalculateSMN( Float_t clsX, Float_t clsY, Int_t & smn) const 
 {
   Double_t xcon[96] = {75.133, 54.204, 53.254, 32.326, 31.376,10.447,
                       75.133, 54.204, 53.254, 32.326, 31.376,10.447,
@@ -721,7 +777,7 @@ void AliPMDQATask::CalculateSMN( Float_t clsX, Float_t clsY, Int_t & smn)
  }
 
 //______________________________________________________________________________
-void AliPMDQATask::DrawPMDBoundary()
+void AliPMDQATask::DrawPMDBoundary() const 
 {
   // Draw PMD boundaries 
   
@@ -735,7 +791,7 @@ void AliPMDQATask::DrawPMDBoundary()
 }
 
 //______________________________________________________________________________
-void AliPMDQATask::DrawPMDBoundarySM1()
+void AliPMDQATask::DrawPMDBoundarySM1() const 
 {
   // Draw boundaries of Super Module 1 
 
@@ -749,7 +805,7 @@ void AliPMDQATask::DrawPMDBoundarySM1()
 }
 
 //______________________________________________________________________________
-void AliPMDQATask::DrawPMDBoundarySM2()
+void AliPMDQATask::DrawPMDBoundarySM2() const 
 {
   // Draw boundaries of Super Module 2 
 
@@ -764,7 +820,7 @@ void AliPMDQATask::DrawPMDBoundarySM2()
 
 
 //______________________________________________________________________________
-void AliPMDQATask::DrawPMDBoundarySM3()
+void AliPMDQATask::DrawPMDBoundarySM3() const 
 {
   // Draw boundaries of Super Module 3 
 
@@ -778,7 +834,7 @@ void AliPMDQATask::DrawPMDBoundarySM3()
 }
 
 //______________________________________________________________________________
-void AliPMDQATask::DrawPMDBoundarySM4()
+void AliPMDQATask::DrawPMDBoundarySM4() const 
 {
   // Draw boundaries of Super Module 4 
 
index 6742b1b7b77bd6cb02e93ca3b303148e5d649eb4..7b35ac1f87a1823f2d8f000a2a21d189df23d7fc 100644 (file)
@@ -4,35 +4,40 @@
  * See cxx source for full Copyright notice     */
 //______________________________________________________________________________
 // An analysis task to check the PMD  data in simulated data
+// An analysis task to check the PMD  data in simulated data
+// An analysis task to check the PMD  data in simulated data
 //
 //*-- Yves Schutz 
 //////////////////////////////////////////////////////////////////////////////
 
-#include <TTree.h> 
 #include "AliAnalysisTask.h"  
 
 class AliESD ; 
 class TH2F ; 
 class TH1F ; 
+class TTree ; 
 
 class AliPMDQATask : public AliAnalysisTask {
 
 public:
   AliPMDQATask(const char *name) ;
+  AliPMDQATask(const  AliPMDQATask& ta) ;  
+
   virtual ~AliPMDQATask() ;
-   
+  AliPMDQATask& AliPMDQATask::operator = (const AliPMDQATask& ap) ; 
+
   virtual void Exec(Option_t * opt = "") ;
   virtual void ConnectInputData(Option_t *);
   virtual void CreateOutputObjects();
   virtual void Terminate(Option_t * opt = "") ;
 
 private:
-  void CalculateSMN( Float_t clsX, Float_t clsY, Int_t & smn) ; 
-  void DrawPMDBoundary() ;
-  void DrawPMDBoundarySM1() ;
-  void DrawPMDBoundarySM2() ;
-  void DrawPMDBoundarySM3() ;
-  void DrawPMDBoundarySM4() ;
+  void CalculateSMN( Float_t clsX, Float_t clsY, Int_t & smn) const 
+  void DrawPMDBoundary() const ;
+  void DrawPMDBoundarySM1() const ;
+  void DrawPMDBoundarySM2() const  ;
+  void DrawPMDBoundarySM3() const ;
+  void DrawPMDBoundarySM4() const ;
 
 private:
   TTree   * fChain ;            //!pointer to the analyzed TTree or TChain
index 1313d7294825a802d5f04b994cdb8f0abe19e100..dedde0e86725e02fc9b60c58c2909affa9fd382f 100644 (file)
@@ -1,6 +1,6 @@
 /**************************************************************************
  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
+ *                                                                              *
  * Author: The ALICE Off-line Project.                                    *
  * Contributors are mentioned in the code where appropriate.              *
  *                                                                        *
 /* $Id$ */
 //
 // An analysis task to check the ESD VZERO data in simulated data
+// An analysis task to check the ESD VZERO data in simulated data
+// An analysis task to check the ESD VZERO data in simulated data
+// An analysis task to check the ESD VZERO data in simulated data
+// An analysis task to check the ESD VZERO data in simulated data
 //
 //////////////////////////////////////////////////////////////////////////////
 
 #include <TROOT.h>
 #include <TChain.h>
 #include <TH1.h>
-#include <TH1F.h>
-#include <TH1I.h>
 #include <TCanvas.h>
-#include <TLegend.h> 
-#include <TVector3.h> 
 #include <TFile.h> 
 #include <TString.h> 
 
@@ -55,6 +55,30 @@ AliVZEROQATask::AliVZEROQATask(const char *name) :
   DefineOutput(0,  TObjArray::Class()) ; 
 }
 
+AliVZEROQATask::AliVZEROQATask(const AliVZEROQATask& ta) : 
+AliAnalysisTask(ta.GetName(),""),  
+fChain(ta.fChain),
+fESD(ta.fESD),
+fOutputContainer(ta.fOutputContainer), 
+fhVZERONbPMA(ta.fhVZERONbPMA),
+fhVZERONbPMC(ta.fhVZERONbPMC),
+fhVZEROMultA(ta.fhVZEROMultA),
+fhVZEROMultC(ta.fhVZEROMultC)
+
+{
+       // copy constructor
+}
+
+//_____________________________________________________________________________
+AliVZEROQATask& AliVZEROQATask::operator = (const AliVZEROQATask& ap)
+{
+       // assignment operator
+       
+       this->~AliVZEROQATask();
+       new(this) AliVZEROQATask(ap);
+       return *this;
+}
+
 //______________________________________________________________________________
 AliVZEROQATask::~AliVZEROQATask()
 {
index f3b9c93d7c8461d295c9338b7e1f7deda1a783f2..a3e4b57cc57aca86b1500bd952a867a93fe09c32 100644 (file)
@@ -5,27 +5,32 @@
 //___________________________________________________________________________
 //
 //   An analysis task to check the VZERO data in simulated data
+//   An analysis task to check the VZERO data in simulated data
+//   An analysis task to check the VZERO data in simulated data
+//   An analysis task to check the VZERO data in simulated data
 //
 //___________________________________________________________________________
 
-#include <TTree.h> 
 #include "AliAnalysisTask.h" 
 
 class AliESD; 
 class TH1I; 
+class TTree ; 
 
 class AliVZEROQATask : public AliAnalysisTask {
 
 public:
   AliVZEROQATask(const char *name);
+  AliVZEROQATask(const AliVZEROQATask& ta) ;  
   virtual  ~AliVZEROQATask();
-   
+  AliVZEROQATask& AliVZEROQATask::operator = (const AliVZEROQATask& ap) ; 
+
   virtual void Exec(Option_t * opt = "");
   virtual void ConnectInputData(Option_t *); 
   virtual void CreateOutputObjects();
   virtual void Terminate(Option_t * opt = "");
 
-public:
+private:
   
   TTree   * fChain;             //! pointer to the analyzed TTree or TChain
   AliESD  * fESD;               //! declaration of leave types