]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding violations
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Apr 2004 20:50:31 +0000 (20:50 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Apr 2004 20:50:31 +0000 (20:50 +0000)
31 files changed:
STEER/AliCluster.h
STEER/AliDebugVolume.h
STEER/AliDigit.h
STEER/AliESDCaloTrack.h
STEER/AliESDPmdTrack.cxx
STEER/AliESDPmdTrack.h
STEER/AliFieldMap.h
STEER/AliGausCorr.h
STEER/AliGenEventHeader.h
STEER/AliHeader.h
STEER/AliHit.h
STEER/AliLego.cxx
STEER/AliMCQA.cxx
STEER/AliMagF.h
STEER/AliMagFC.h
STEER/AliMagFCM.cxx
STEER/AliMagFCM.h
STEER/AliMagFDM.cxx
STEER/AliMagFDM.h
STEER/AliMagFMaps.cxx
STEER/AliMagFMaps.h
STEER/AliMemoryWatcher.h
STEER/AliMergeCombi.h
STEER/AliPDG.h
STEER/AliPoints.cxx
STEER/AliPoints.h
STEER/AliReconstructor.h
STEER/AliTrackMapper.cxx
STEER/AliTrackReference.cxx
STEER/AliTrackReference.h
STEER/AliVertexer.cxx

index 54cb37c1517ae9f27da87f30af451f1d7d1d375d..4320266542c8766b097e965fb7ec927c28980faf 100644 (file)
@@ -7,7 +7,7 @@
 
 //-------------------------------------------------------------------------
 //                          Class AliCluster
-//
+//                Generic class for clusters
 //       Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
 //-------------------------------------------------------------------------
 
index 22f0c90e9bc446ebb320aa6116224b07ca08983f..f3f82e0d3982c242daf93acd64d2bd824b4cefcf 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+//-----------------------------------------------------------------------
+//    Class to debug entry and exit from a volume
+//    Used by AliLego class
+//    Author: A.Morsch
+//-----------------------------------------------------------------------
+
 #include "TNamed.h"
 class AliDebugVolume : public TNamed  {
 
index 9c33568b80e2ba34bb95101b9f0398b1d926f18b..5839821622ee03c571b74119c4a33bd42f53d812 100644 (file)
@@ -17,7 +17,7 @@ public:
   AliDigit();
   AliDigit(Int_t *track);
   virtual ~AliDigit() {}
-  virtual Int_t *GetTracks() {return &fTracks[0];}
+  virtual Int_t *GetTracks() {return fTracks;}
   virtual Int_t GetTrack(Int_t i) const 
   {assert(0<=i&&i<=2); return fTracks[i];}
   
index 32a034939bf0aba3dfe7663396949373a1f88eca..dfa0375d7fa68c00e701569db1d478a422705a50 100644 (file)
@@ -19,17 +19,21 @@ class AliESDCaloTrack : public TObject {
 
 public:
   AliESDCaloTrack(): TObject(), fRecParticle(0) {}
+  AliESDCaloTrack(const AliESDCaloTrack &act): TObject(act)
+    {fRecParticle = act.fRecParticle;}
   virtual ~AliESDCaloTrack() {
     //PH    delete fRecParticle;
   }
   AliESDCaloTrack(TParticle* recpart);
-  Float_t Px() { return fRecParticle->Px(); }
-  Float_t Py() { return fRecParticle->Py(); }
-  Float_t Pz() { return fRecParticle->Pz(); }
+  Float_t Px() const { return fRecParticle->Px(); }
+  Float_t Py() const { return fRecParticle->Py(); }
+  Float_t Pz() const { return fRecParticle->Pz(); }
 
-  TParticle * GetRecParticle() {return fRecParticle;}
+  TParticle * GetRecParticle() const {return fRecParticle;}
 
 private:
+  AliESDCaloTrack & operator=(const AliESDCaloTrack &)
+    {Fatal("= operator","Not implemented\n"); return *this;}
   TParticle *fRecParticle; // reconstructed particle from PHOS or EMCAL
 
   ClassDef(AliESDCaloTrack,2)  //ESD calorimeter track class 
index e93a8e54fb601716af1696fdfddf056e8f729ee9..45dadc8ff14045b8995eba9f559feb7b793e344c 100644 (file)
@@ -1,5 +1,28 @@
+/**************************************************************************
+ * 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.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id$ */
+
 #include "AliESDPmdTrack.h"
 
+// Event Data Summary Class
+// For pmd tracks
+// This is part of the reconstructed
+// ESD events
+// for the PMD detector
+
 ClassImp(AliESDPmdTrack)
 
 AliESDPmdTrack::AliESDPmdTrack (const AliESDPmdTrack& PMDTrack):TObject(PMDTrack)
index 4982b86f79798c0a9b5f45374694bdb439b5a03f..e2b7b84b11e904ea974a71dabc563f5a0a65555c 100644 (file)
@@ -1,6 +1,15 @@
 #ifndef ALIESDPMDTRACK_H
 #define ALIESDPMDTRACK_H
 
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+// Event Data Summary Class for pmd tracks
+// This is part of the reconstructed ESD events
+// for the PMD detector
+
 #include "TObject.h"
 
 class AliESDPmdTrack : public TObject {
index 76a913df96ffe338173ff42864f19504ceb2d3e5..d42ab3ebdd9bf4d86e86928a97b965daef6eaa47 100644 (file)
@@ -9,7 +9,7 @@
 // Author: Andreas Morsch <andreas.morsch@cern.ch>
 //
 #include <TNamed.h>
-class TVector;
+#include <TVector.h>
 
 class AliFieldMap : public TNamed
 {
index 31d9cca054f845b098c6ae7cf2739a5463d30ba6..4c25128b2e0cb6749e394107974b1846c405c35a 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+////////////////////////////////////////////////////////////////////////
+// Class used to generate correlated gaussian numbers with mean
+// zero and known covariance matrix.
+// M.Masera 15.03.2001 9:30 - modified on 26.02.2002 17:40
+////////////////////////////////////////////////////////////////////////
+
 #include <TMatrixD.h>
 class TArrayD;
 
index 33345d1e173edcbfdd95594e411f499b67205471..c40ef93a1d10da028106638d90951e050e887099 100644 (file)
@@ -6,6 +6,12 @@
 
 /* $Id$ */
 
+//---------------------------------------------------------------------
+// Event header base class for generator. 
+// Stores generated event information
+// Author: andreas.morsch@cern.ch
+//---------------------------------------------------------------------
+
 #include <TNamed.h>
 #include <TArrayF.h>
 
index 114838eced7971ed3e82b528184fafa4d676721a..68d2447ff45630014d9a0c1a35e8a0d47256a6cf 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+//-----------------------------------------------------------------------
+//     Simulation event header class
+//     Collaborates with AliRun, AliStack, and AliGenReaderTreeK classes
+//     Many other classes depend on it
+//-----------------------------------------------------------------------
+
 #include <TObject.h>
 
 class AliStack;
index 3985ab4eeb8b031757cf43bd7430b00a2315b5fb..b0e1886e28c55fa576600deba576eb601abb1b4c 100644 (file)
@@ -5,6 +5,10 @@
 
 /* $Id$ */
 
+// Base class for hits
+// This class is used as a base class for 
+// hits in the different detectors
+
 #include "TObject.h"
 
 class AliHit : public TObject {
index 4a4bff9bf6a1e355e47461a29484e09c3e63d9e6..81e9ccd70c858c39aec154dcf94d68d6ebd76d4a 100644 (file)
 #include "TString.h"
 #include "TVirtualMC.h"
 
-#include "AliConst.h"
 #include "AliDebugVolume.h"
 #include "AliLego.h"
 #include "AliLegoGenerator.h"
-#include "AliRun.h"
 #include "AliMC.h"
+#include "AliRun.h"
 
 ClassImp(AliLego)
 
index 735e43d531679251370ebef67c85038ffb4615f7..a3e1b8057745253756ec1852d21f636ae722bcb8 100644 (file)
 #include <TLorentzVector.h>
 #include <TMath.h>
 #include <TObjArray.h>
-#include <TPad.h>
 #include <TPaveLabel.h>
 #include <TROOT.h>
 #include <TVirtualMC.h>
 
+#include "AliMC.h"
 #include "AliMCQA.h"
 #include "AliModule.h"
 #include "AliRun.h"
-#include "AliMC.h"
 
 ClassImp(AliMCQA)
 
index 7b54cdfca5a493386b2c1f865e9e657114a90897..6bf3de6bc2fe68fe6717e116e50f2d36a61c69a4 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+//----------------------------------------------------------------------
+// Basic magnetic field class
+// Used in all the detectors, and also in the traking classes
+// Author:
+//----------------------------------------------------------------------
+
 #include "TNamed.h"
 
 enum Field_t {kUndef=1, kConst=1, kConMesh=2, kDipoMap=3};
index f8418cb974c27464eced7c4cfee0c7abb3f145de..3d50bcea736ed49fd44fbf6e9fa77d812cbedf37 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+//-------------------------------------------------------------------------
+//     Constant magnetic field class
+//     Used by AliRun class
+//     Author:
+//-------------------------------------------------------------------------
+
 #include "AliMagF.h"
 
 class AliMagFC  : public AliMagF
index c5742e05531565d51bdd84cd994dc55445e645eb..4b0a1fdc5c605f96477757f8e7320924fc83a7b9 100644 (file)
@@ -20,6 +20,7 @@
 //  Used in the configuration macros (macros/Config.C, etc.)
 //  Author:
 //-----------------------------------------------------------------------
+
 #include "TSystem.h"
 
 #include "TVector.h"
index e2bdc19060fbbf25596ebf28722d8857a2d065ff..18ea9594bf84ac392b5c944d736491a13bd5f3f6 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+//-----------------------------------------------------------------------
+//  Class for Alice magnetic field with constant mesh
+//  Used in the configuration macros (macros/Config.C, etc.)
+//  Author:
+//-----------------------------------------------------------------------
+
 #include "AliMagFC.h"
 class TVector;
 
index 5604727cbac68f08273663e47b5fecbd32fec476..7e9bfa2f8254caf14d097a49c03d3445d61471c6 100644 (file)
@@ -21,8 +21,6 @@
 //   Author:
 //-------------------------------------------------------------------------
 
-#include <stdlib.h>
-
 #include "TSystem.h"
 
 #include "AliMagFDM.h"
@@ -375,10 +373,10 @@ Double_t AliMagFDM::Ba(Int_t kaai,Double_t zaa1, Double_t zaa2,
   //
   // Calculation of field componet for case (keps <r0<= fRdel) at a given axis
   //
-  Double_t fa11,fa12,fa13;
-  Double_t fa21,fa22,fa23;
-  Double_t faY1,faY2;
-  Double_t bba;
+  Double_t fa11=0,fa12=0,fa13=0;
+  Double_t fa21=0,fa22=0,fa23=0;
+  Double_t faY1=0,faY2=0;
+  Double_t bba=0;
 
   switch (kaai) {
   case 0:
@@ -407,7 +405,6 @@ Double_t AliMagFDM::Ba(Int_t kaai,Double_t zaa1, Double_t zaa2,
     break;
   default:
     Fatal("Ba","Invalid value of kaai %d\n",kaai);
-    exit(1);
   }                            
   faY1=alf1*fa11+alf2*fa12+alf3*fa13;
   faY2=alf1*fa21+alf2*fa22+alf3*fa23;
@@ -423,11 +420,11 @@ Double_t AliMagFDM::Bb(Double_t z1,Double_t z2, Double_t y1,Double_t y2,
   //
   // Calculation of field componet at a given axis (general case)
   //
-  Double_t fy1, fy2, ffy;
-  Double_t gy1,gy2,ggy;
-  Double_t bbi;
-  Double_t bf11,bf12,bf21,bf22;
-  Double_t bg11,bg12,bg21,bg22;
+  Double_t fy1=0,fy2=0,ffy=0;
+  Double_t gy1=0,gy2=0,ggy=0;
+  Double_t bbi=0;
+  Double_t bf11=0,bf12=0,bf21=0,bf22=0;
+  Double_t bg11=0,bg12=0,bg21=0,bg22=0;
 
   
   /*-----------------Polar part ------------------*/
@@ -508,7 +505,6 @@ Double_t AliMagFDM::Bb(Double_t z1,Double_t z2, Double_t y1,Double_t y2,
 
   default:
     Fatal("Bb","Invalid value of kv %d\n",kv);
-    exit(1);
   }  
   
   
@@ -687,7 +683,6 @@ printf("fZpdl %e, fPhid %e, fRdel %e, fZpmx %e, fZpmn %e,fRmax %e,fRmin %e \n",
     }
 //
   } else { 
-    printf("File %s not found !\n",fTitle.Data());
-    exit(1);
+    Fatal("ReadField","File %s not found !\n",fTitle.Data());
   }
 }
index 170a0e5bf0b8308c681f11e91ff5df064fd0371d..4e4ed938cfbae2e25ea4278c00eebe755e5154b8 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+//-------------------------------------------------------------------------
+//   Field with Magnetic Field map
+//   Used by AliRun class
+//   Author:
+//-------------------------------------------------------------------------
+
 #include "AliMagFC.h"
 //
 class AliMagFDM : public AliMagFC
index aa43984d1c3aef1fe61d4cc13a9cfbe907cc6c36..59a933e9b47b4a85134b0e6d0b26bc59ccf402dd 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <TFile.h>
 #include <TSystem.h>
-#include <TVector.h>
 
 #include "AliFieldMap.h"
 #include "AliMagFMaps.h"
index 1b36b1272bf7a8c27f968f1d5ad1ea503f0f1fac..5546c0cfe9910cbab70f566534a20ca6bf9a4a20 100644 (file)
@@ -6,6 +6,8 @@
 /* $Id$ */
 
 //
+// Magnetic field composed by 3 maps: the L3 magnet, extended region, and
+// dipole magnet
 // Author: Andreas Morsch <andreas.morsch@cern.ch>
 //
 
index 090ef0d8193709a2c02793c47454bd867736a4ef..6b529f75d0f0a96397fc1b6916bf41cb600e4f52 100644 (file)
@@ -2,40 +2,44 @@
 #define ALIMEMORYWATCHER_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice     */
+
 /* $Id$ */
+
 //_________________________________________________________________________
-/*Basic Memory Leak utility.
-    
-    You can use this tiny class to *see* if your program is leaking.
-    Usage:
-    AliMemoryWatcher memwatcher;
-    some program loop on events here {
-      if ( nevents % x == 0 ) 
-      {
-      // take a sample every x events
-        memwatcher.watch(nevents);
-      }
-    }
-    TFile f("out.root","RECREATE");
-    memwatcher.write();
-    f.Close();
-    In the output root file you'll get 3 graphs representing
-    the evolAliPHOSon, as a function of the number of events, of :
-    - VSIZE is the virtual size (in KBytes) of your program, that is sort of
-    the total memory used
-    - RSSIZE is the resident size (in KBytes), that is, the part of your 
-    program which is really in physical memory.
-    - TIME is an estimate of time per event (really it's the time elasped
-    between two calls to watch method)
-    WARNING: this is far from a bulletproof memory report (it's basically 
-    using UNIX command ps -h -p [PID] -o vsize,rssize to do its job).
-    It has only been tested on Linux so far.
-    
-    But by fitting the VSIZE by a pol1 under ROOT, you'll see right away
-    by how much your program is leaking.
-*/             
+//Basic Memory Leak utility.
+//  
+//  You can use this tiny class to *see* if your program is leaking.
+//  Usage:
+//  AliMemoryWatcher memwatcher;
+//  some program loop on events here {
+//    if ( nevents % x == 0 ) 
+//    {
+//    // take a sample every x events
+//      memwatcher.watch(nevents);
+//    }
+//  }
+//  TFile f("out.root","RECREATE");
+//  memwatcher.write();
+//  f.Close();
+//  In the output root file you'll get 3 graphs representing
+//  the evolAliPHOSon, as a function of the number of events, of :
+//  - VSIZE is the virtual size (in KBytes) of your program, that is sort of
+//  the total memory used
+//  - RSSIZE is the resident size (in KBytes), that is, the part of your 
+//  program which is really in physical memory.
+//  - TIME is an estimate of time per event (really it's the time elasped
+//  between two calls to watch method)
+//  WARNING: this is far from a bulletproof memory report (it's basically 
+//  using UNIX command ps -h -p [PID] -o vsize,rssize to do its job).
+//  It has only been tested on Linux so far.
+//  
+//  But by fitting the VSIZE by a pol1 under ROOT, you'll see right away
+//  by how much your program is leaking.
+//
 //*-- Author: Laurent Aphecetche(SUBATECH)
+
 // --- ROOT system ---
+
 #include "TObject.h" 
 class TH2;
 class TGraph;
index c9980a55d8fbe53d5483d1b27acc792354103139..782d804f0f626ffdeb6d720740d34008b14efbeb 100644 (file)
@@ -8,7 +8,7 @@
 ////////////////////////////////////////////////////////////////////////
 //
 //  Class to make combination for merging
-//                  
+//  Returns combination of input event numbers                
 //  Author: Jiri Chudoba (CERN), 2001
 //
 ////////////////////////////////////////////////////////////////////////
index b4cbd84f23d9e5f724c84cdca191bd784ef5693e..b5f62d00395cf0f4edc2e558675c45e81e8b1ea5 100644 (file)
@@ -7,6 +7,10 @@
 
 #include "TObject.h"
 
+// Class to encapsulate the ALICE updates to TDatabasePDG.h
+// Can be used by TGeant3 and TGeant4
+// Comments to: andreas.morsch@cern.ch 
+
 class AliPDG : public TObject {
 public:
     static void AddParticlesToPdgDataBase();
index 15d535ddf2d22e23f3a3ffa1975057fb4874e6ef..8e7e9ffc7cb57a199041d34be1393d3446684395 100644 (file)
@@ -33,9 +33,9 @@
 #include "TView.h"
 
 #include "AliDetector.h"
+#include "AliMC.h"
 #include "AliPoints.h"
 #include "AliRun.h"
-#include "AliMC.h"
  
 ClassImp(AliPoints)
 
index 5dbd214a1568ddc2be3a044069caf461bef3a6f3..90a15d5785e6e3540ec838ee8c5f6aec8ad63adb 100644 (file)
@@ -5,6 +5,10 @@
 
 /* $Id$ */
 
+// This class contains the points
+// that are used for the ALICE
+// event display
+
 #include "TPolyMarker3D.h"
 class AliDetector;
 class TParticle;
index afcffdc5cc356ee08ec5e2162791aae832b54167..6419dd4bf51f058cfd0f9de34c58f98d2fa425a2 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+//
+// base class for reconstruction algorithm
+// Derived classes should implement a default constructor and
+// the virtual methods
+//
+
 #include <TObject.h>
 
 class AliRunLoader;
index cf2c2fb12fdc430391d1befbf06b0869004654ea..f644ff01722633c497d033b8b954955109685379 100644 (file)
 
 #include <Riostream.h>
 
-#include "TTree.h"
+#include "TError.h"
 #include "TFile.h"
 #include "TStopwatch.h"
-#include "TError.h"
+#include "TTree.h"
 
 #include "AliDetector.h"
-#include "AliTrackMapper.h"
-#include "AliTrackMap.h"
+#include "AliHit.h"
+#include "AliLoader.h"
 #include "AliRun.h"
 #include "AliRunLoader.h"
-#include "AliLoader.h"
-#include "AliHit.h"
+#include "AliTrackMap.h"
+#include "AliTrackMapper.h"
 
 ClassImp(AliTrackMapper)
 
index 7c3fb26a5d643a0f75a297b00438fa3cc1fe3bb6..504960186d194c4dc9e734e013b96fc69a538aef 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+/* $Id$ */
 
-#include "AliTrackReference.h"
+#include "TLorentzVector.h"
 #include "TVirtualMC.h"
-#include "TParticle.h"
+
 #include "AliRun.h"
-#include "TLorentzVector.h"
+#include "AliTrackReference.h"
 
 // 
 // Track Reference object is created every time particle is 
index fc8117b14abbb10aa784f4f36bc88b8c18ae2e4b..4ab594004f779aa5a8dd39e21935b9c852355bc7 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+// 
+// Track Reference object is created every time particle is 
+// crossing detector bounds. 
+// The object is created by Step Manager
+//
+
 #include "TObject.h"
 #include "TMath.h"
 
index 1125ff7787c77d03ab95a7a73d426e34f9907dfd..c4c9d48409ed3ab6e3a60a74a50f150cd91075fc 100644 (file)
@@ -1,4 +1,20 @@
-#include <AliESDVertex.h>
+/**************************************************************************
+ * 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.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id$ */
+
 #include <AliVertexer.h>
 
 ClassImp(AliVertexer)