]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding conventions.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Jul 2004 11:41:18 +0000 (11:41 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Jul 2004 11:41:18 +0000 (11:41 +0000)
HLT/src/AliL3Vertex.cxx
HLT/src/AliL3Vertex.h

index 4a3ba3be1cff618b0489f9e00bfe78ddad7f0598..29532e9fdb8de136794f7b4e04f071265874cf40 100644 (file)
@@ -4,9 +4,9 @@
 //*-- Copyright &copy ALICE HLT Group
 
 #include "AliL3StandardIncludes.h"
-
 #include "AliL3RootTypes.h"
 #include "AliL3Logging.h"
+#include "AliL3VertexData.h"
 #include "AliL3Vertex.h"
 
 /** \class AliL3Vertex
 */
 
 ClassImp(AliL3Vertex)
+
 AliL3Vertex::AliL3Vertex(){
   //
   // default constructor for the AliL3Vertex class. 
   //
 
-  //Set vertex to zero.
   SetZero();  
 }
 
@@ -35,8 +35,9 @@ AliL3Vertex::~AliL3Vertex(){
   //
 }
 
-void AliL3Vertex::SetZero(){
-  // doit
+void AliL3Vertex::SetZero()
+{
+  // set vertex to zero
   SetX(0);
   SetY(0);
   SetZ(0);
@@ -45,12 +46,12 @@ void AliL3Vertex::SetZero(){
   SetZErr(1);
   fR=0;
   fPhi=0;
-
   fMWxy = 1.;
 }
 
-void AliL3Vertex::Read(AliL3VertexData *vertex){
-  // doit
+void AliL3Vertex::Read(const AliL3VertexData *vertex)
+{
+  // read vertex
   SetX(vertex->fX);
   SetY(vertex->fY);
   SetZ(vertex->fZ);
@@ -59,7 +60,6 @@ void AliL3Vertex::Read(AliL3VertexData *vertex){
   SetZErr(vertex->fZErr);
   fR=0;
   fPhi=0;
-
   fMWxy = 1.;
 }
 
index 1237b9236b4c77c6809e642d69e657daa5cde0fe..bd3d243ba24594219410c55dbc1f47c202b40089 100644 (file)
@@ -1,36 +1,23 @@
 // @(#) $Id$
 
-#ifndef AliL3VERTEX_H
-#define AliL3VERTEX_H
+#ifndef ALIL3VERTEX_H
+#define ALIL3VERTEX_H
 
-#include "AliL3RootTypes.h"
-#include "AliL3VertexData.h"
+class AliL3VertexData;
 
 class AliL3Vertex {
-  private:
-    Double_t fX;
-    Double_t fY;
-    Double_t fZ;
-    Double_t fPhi;
-    Double_t fR;
-
-    Double_t fXErr;
-    Double_t fYErr;
-    Double_t fZErr;
-
-    Double_t fMWxy;
 
   public:
     AliL3Vertex(); 
-    AliL3Vertex(AliL3Vertex&){;}
+
     virtual ~AliL3Vertex();
+
     void SetZero();
-       
-    void Read(AliL3VertexData *vertex);
+    void Read(const AliL3VertexData *vertex);
 
-    Double_t GetX() const {return fX;}
-    Double_t GetY() const {return fY;}
-    Double_t GetZ() const {return fZ;}
+    Double_t GetX()    const {return fX;}
+    Double_t GetY()    const {return fY;}
+    Double_t GetZ()    const {return fZ;}
     Double_t GetXErr() const {return fXErr;}
     Double_t GetYErr() const {return fYErr;}
     Double_t GetZErr() const {return fZErr;}
@@ -43,8 +30,21 @@ class AliL3Vertex {
     void SetXErr(Double_t f) {fXErr=f;}
     void SetYErr(Double_t f) {fYErr=f;}
     void SetZErr(Double_t f) {fZErr=f;}
-
     void SetXYWeight(Double_t f) {fMWxy = f;}
+
+  private:
+    AliL3Vertex(const AliL3Vertex&){;}
+    AliL3Vertex& operator=(const AliL3Vertex&){return *this;}
+
+    Double_t fX;   //x 
+    Double_t fY;   //y 
+    Double_t fZ;   //z 
+    Double_t fPhi; //phi
+    Double_t fR;   //R
+    Double_t fXErr; //error in x
+    Double_t fYErr; //error in z
+    Double_t fZErr; //error in y
+    Double_t fMWxy; //weight
  
     ClassDef(AliL3Vertex,1)  // Vertex base class
 };