]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALShishKebabModule.h
Coding conventions (A.Pavlinov)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALShishKebabModule.h
index 596e93a220aab1788961bc48fbcdd849dd2ed741..f2f663c6486af30bde94f4d17a223c32a0b12fd9 100644 (file)
@@ -2,59 +2,72 @@
 #define ALIEMCALSHISHKEBABMODULE_H
 
 /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
+ * See cxx source for full Copyright notice                               *
+ */
 
 /* $Id$ */
-#include "TNamed.h"
-#include "TMath.h"
-#include "TVector2.h"
+
+//_________________________________________________________________________
+// Main class for "twist" geometry of Shish-Kebab case.
+// Author: Aleksei Pavlinov(WSU).
+// Sep 2004.
+
+#include <TNamed.h>
+#include <TVector2.h>
 
 class AliEMCALGeometry;
 
 class AliEMCALShishKebabModule : public TNamed {
  public:
-  AliEMCALShishKebabModule(double theta=TMath::Pi()/2.);
+  AliEMCALShishKebabModule();
   AliEMCALShishKebabModule(AliEMCALShishKebabModule &leftNeighbor);
-  void Init(double A, double B);
+  void Init(Double_t A, Double_t B);
+  AliEMCALShishKebabModule(const AliEMCALShishKebabModule& mod) : TNamed(mod.GetName(),mod.GetTitle()){
+    // cpy ctor: no implementation yet; requested by the Coding Convention
+    Fatal("cpy ctor", "not implemented") ;  
+  }
+  AliEMCALShishKebabModule & operator = (const AliEMCALShishKebabModule& /*rvalue*/)  {
+    Fatal("operator =", "not implemented") ;  
+    return *this ; 
+  }
 
   virtual ~AliEMCALShishKebabModule(void) {}
   Bool_t GetParameters();
-  void DefineName(double theta);
+  void DefineName(Double_t theta);
   void DefineFirstModule();
   void DefineSecondModuleFirstAssumption(); // need for testing
 
   Double_t Solve(Double_t (*fcn)(Double_t*, Double_t*), Double_t xmin=0., Double_t xmax=1.,
   Int_t npar=0, Double_t *par=0, Double_t eps=1.0e-8, Int_t maxIter=1000);
 
-  static Double_t Y2(double *x, double *par);
-  static Double_t YALL(double *x, double *par);
+  static Double_t Y2(Double_t *x, Double_t *par);
+  static Double_t YALL(Double_t *x, Double_t *par);
 
   Double_t GetTheta() const {return fTheta;}
-  Double_t GetThetaInDegree() const {return fTheta*180./TMath::Pi();}
+  Double_t GetThetaInDegree() const;
 
-  Double_t GetPosX() {return fOK.Y();}
-  Double_t GetPosZ() {return fOK.X();}
-  Double_t GetPosXfromR() {return fOK.Y() - fgr;}
-  Double_t GetA() {return fA;}
-  Double_t GetB() {return fB;}
+  Double_t GetPosX() const {return fOK.Y();}
+  Double_t GetPosZ() const {return fOK.X();}
+  Double_t GetPosXfromR() const {return fOK.Y() - fgr;}
+  Double_t GetA() const {return fA;}
+  Double_t GetB() const {return fB;}
+  // service methods
+  void PrintShish(Int_t pri=1) const;  // *MENU*
 
+ protected:
   // geometry info
   static AliEMCALGeometry *fgGeometry; //!
-  static Double_t fga; // default 11.2cm 
-  static Double_t fgb; // 
-  // radius to IP
-  static Double_t fgr;
+  static Double_t fga; // x size of module; default 11.2cm 
+  static Double_t fgb; // y size of module;
+  static Double_t fgr; // radius to IP
 
   TVector2 fOK; // position the module center x->y; z->x;
-  Double_t fA;  // parameters of line = y = A*z + B
-  Double_t fB;  // 
-  // service methods
-  void PrintShish(int pri=1) const;  // *MENU*
- protected:
-  // size of SK module
+  Double_t fA;  // parameters of line; y = A*z + B
+  Double_t fB;  // parameters of line; y = A*z + B
   Double_t fTheta; // theta for SK module
 
-  ClassDef(AliEMCALShishKebabModule,0) // Turned Shish-Kebab module 
+  //public:
+  ClassDef(AliEMCALShishKebabModule,1) // Turned Shish-Kebab module 
 };
 
 #endif