Cleanup of STEER coding conventions
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Jan 2003 10:50:20 +0000 (10:50 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Jan 2003 10:50:20 +0000 (10:50 +0000)
95 files changed:
CRT/AliCRTv1.cxx
CRT/AliGenCRT.cxx
EMCAL/AliEMCALGeometry.cxx
EMCAL/AliEMCALJetFinder.cxx
EVGEN/AliDimuCombinator.cxx
EVGEN/AliGenBox.cxx
EVGEN/AliGenCocktail.cxx
EVGEN/AliGenFLUKAsource.cxx
EVGEN/AliGenFixed.cxx
EVGEN/AliGenGeVSim.cxx
EVGEN/AliGenGeVSim.h
EVGEN/AliGenGrayParticles.cxx
EVGEN/AliGenHBTprocessor.h
EVGEN/AliGenHIJINGpara.cxx
EVGEN/AliGenHIJINGparaBa.cxx
EVGEN/AliGenHalo.cxx
EVGEN/AliGenHaloProtvino.cxx
EVGEN/AliGenHijing.cxx
EVGEN/AliGenHijingEventHeader.h
EVGEN/AliGenMC.cxx
EVGEN/AliGenPMDlib.cxx
EVGEN/AliGenPythia.cxx
EVGEN/AliGenThetaSlice.cxx
EVGEN/AliMevSimParticle.h
HBTAN/AliHBTLLWeights.cxx
ITS/AliCascadeVertex.cxx
ITS/AliCascadeVertexer.cxx
ITS/AliV0vertex.cxx
ITS/AliV0vertexer.cxx
MUON/AliMUONDigitizer.cxx
MUON/AliMUONMerger.cxx
MUON/AliMUONv0.cxx
MUON/AliMUONv1.cxx
RICH/AliRICH.cxx
STEER/AliCollisionGeometry.h
STEER/AliConfig.cxx
STEER/AliConfig.h
STEER/AliDebugVolume.cxx
STEER/AliDetector.cxx
STEER/AliDigit.cxx
STEER/AliDigit.h
STEER/AliDigitNew.cxx
STEER/AliDigitizer.h
STEER/AliDisplay.cxx
STEER/AliDisplay.h
STEER/AliESD.cxx
STEER/AliESD.h
STEER/AliFieldMap.cxx
STEER/AliFieldMap.h
STEER/AliGausCorr.cxx
STEER/AliGausCorr.h
STEER/AliGenEventHeader.h
STEER/AliGenerator.cxx
STEER/AliGenerator.h
STEER/AliGeometry.h
STEER/AliHeader.cxx
STEER/AliHit.cxx
STEER/AliKalmanTrack.cxx
STEER/AliKalmanTrack.h
STEER/AliLegoGenerator.cxx
STEER/AliLegoGeneratorEta.cxx
STEER/AliLegoGeneratorPhiZ.cxx
STEER/AliLegoGeneratorXYZ.cxx
STEER/AliMCQA.cxx
STEER/AliMagF.cxx
STEER/AliMagFC.cxx
STEER/AliMagFDM.cxx
STEER/AliMagFDM.h
STEER/AliMagFMaps.cxx
STEER/AliMergeCombi.cxx
STEER/AliMergeCombi.h
STEER/AliModule.cxx
STEER/AliModule.h
STEER/AliPDG.h
STEER/AliPoints.cxx
STEER/AliPoints.h
STEER/AliRndm.cxx
STEER/AliRndm.h
STEER/AliRun.cxx
STEER/AliRun.h
STEER/AliRunDigitizer.cxx
STEER/AliRunDigitizer.h
STEER/AliStack.h
STEER/AliStream.cxx
STEER/AliStream.h
STEER/AliTrackMap.cxx
STEER/AliTrackMapper.cxx
STEER/AliTrackMapper.h
STEER/AliTrackReference.cxx
STEER/AliTrackReference.h
STEER/AliTracker.cxx
TPC/AliSimDigits.cxx
TPC/AliTPCv2.cxx
TPC/AliTPCv3.cxx
ZDC/AliGenZDC.cxx

index cda4a1a3c5c902e1f04b70e66269322d8d4f6c72..fe1d896e0b1e1cba2a866f6f445e02edfecf31e7 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2002/11/21 19:34:52  alibrary
+Removing AliMC and AliMCProcess
+
 Revision 1.3  2002/10/23 06:47:56  alibrary
 Introducing Riostream.h
 
@@ -60,20 +63,20 @@ First version, stand alone detector
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
-#include <Riostream.h>
 
-#include <TGeometry.h>
+#include <Riostream.h>
 #include <TBRIK.h>
-#include <TNode.h>
+#include <TGeometry.h>
 #include <TLorentzVector.h>
+#include <TNode.h>
+#include <TPDGCode.h>
 
-#include "AliRun.h"
-#include "AliMagF.h"
-#include "AliConst.h"
-#include "AliPDG.h"
 
-#include "AliCRTv1.h"
 #include "AliCRTConstants.h"
+#include "AliCRTv1.h"
+#include "AliConst.h"
+#include "AliMagF.h"
+#include "AliRun.h"
 
 ClassImp(AliCRTv1)
  
index eb26ac5b937cbabbafc100fb635781bcd403e7b6..735b350a4d558f50c1328c0b51d6212cc483b3ab 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2002/11/21 19:34:52  alibrary
+Removing AliMC and AliMCProcess
+
 Revision 1.3  2002/10/23 06:47:56  alibrary
 Introducing Riostream.h
 
@@ -51,13 +54,13 @@ First version, generation of cosmic muons on the surface
 /////////////////////////////////////////////////////////////////////////////
 
 #include <Riostream.h>
-#include "TMCProcess.h"
+#include <TMCProcess.h>
+#include <TPDGCode.h>
 
-#include "AliRun.h"
-#include "AliConst.h"
-#include "AliPDG.h"
 
+#include "AliConst.h"
 #include "AliGenCRT.h"
+#include "AliRun.h"
 
 ClassImp(AliGenCRT)
 
index 4cfc070a04fc7bac4013d2ead56353f3278d1cd1..c639c3773d3f3077297c2b9ef78f78ea61227a26 100644 (file)
@@ -35,7 +35,9 @@
 #include <stdlib.h> 
 
 // --- AliRoot header files ---
+#include <TError.h>
 #include <TMath.h>
+#include <TVector3.h>
 
 // -- ALICE Headers.
 #include "AliConst.h"
index 37f823d2da9ce7a816e0127e18f8dfb0fe9918db..c91e60eb1c7bd866c710721b8bca192c1d97dbdd 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.33  2003/01/10 10:48:19  morsch
+SetSamplingFraction() removed from constructor.
+
 Revision 1.32  2003/01/10 10:26:40  morsch
 Sampling fraction initialized from geometry class.
 
@@ -125,39 +128,39 @@ Revision 1.3  2002/01/18 05:07:56  morsch
 
 #include <stdio.h>
 // From root ...
-#include <TROOT.h>
-#include <TClonesArray.h>
-#include <TTree.h>
+#include <TArrayF.h>
+#include <TAxis.h>
 #include <TBranchElement.h>
+#include <TCanvas.h>
+#include <TClonesArray.h>
 #include <TFile.h>
 #include <TH1.h>
 #include <TH2.h>
-#include <TArrayF.h>
-#include <TCanvas.h>
 #include <TList.h>
+#include <TPDGCode.h>
 #include <TPad.h>
-#include <TPaveText.h>
-#include <TAxis.h>
-#include <TStyle.h>
 #include <TParticle.h>
 #include <TParticlePDG.h>
+#include <TPaveText.h>
 #include <TPythia6Calls.h>
+#include <TROOT.h>
+#include <TStyle.h>
+#include <TTree.h>
 
 // From AliRoot ...
-#include "AliEMCALJetFinder.h"
-#include "AliEMCALFast.h"
-#include "AliEMCALGeometry.h"
-#include "AliEMCALHit.h"
+#include "AliEMCAL.h"
 #include "AliEMCALDigit.h"
 #include "AliEMCALDigitizer.h"
+#include "AliEMCALFast.h"
+#include "AliEMCALGeometry.h"
 #include "AliEMCALHadronCorrection.h"
+#include "AliEMCALHit.h"
+#include "AliEMCALJetFinder.h"
 #include "AliEMCALJetMicroDst.h"
-#include "AliRun.h"
+#include "AliHeader.h"
 #include "AliMagF.h"
 #include "AliMagFCM.h"
-#include "AliEMCAL.h"
-#include "AliHeader.h"
-#include "AliPDG.h"
+#include "AliRun.h"
 
 // Interface to FORTRAN
 #include "Ecommon.h"
index 12f70e2283f2c5b6a46d4aa6786fc5495a272856..ce061153c266463f9a9c8f4cea4f6680d295956e 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.11  2001/11/27 12:18:05  morsch
+Fully commented version by Bruno Espagnon.
+
 Revision 1.10  2001/03/27 11:14:54  morsch
 Weight calculation for correlated particles updated:
 - Decay probability is counted once if muons are decay products
@@ -51,15 +54,15 @@ Introduction of the Copyright and cvs Log
  andreas.morsch@cern.ch
 */
 
-
-#include "AliDimuCombinator.h" 
-#include "AliPDG.h" 
-#include "AliRun.h" 
-#include <TRandom.h>
 #include <TClonesArray.h>
 #include <TParticle.h>
+#include <TPDGCode.h> 
+#include <TRandom.h>
 #include <TTree.h>
 
+#include "AliDimuCombinator.h" 
+#include "AliRun.h" 
+
 //
 ClassImp(AliDimuCombinator)
     AliDimuCombinator::AliDimuCombinator() 
index 416c5c0dd709dde1922b8b490391e9495dc7a0df..72a7259846456af0e370102923217001fd1df794 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2002/02/08 16:50:50  morsch
+Add name and title in constructor.
+
 Revision 1.6  2001/07/27 17:09:35  morsch
 Use local SetTrack, KeepTrack and SetHighWaterMark methods
 to delegate either to local stack or to stack owned by AliRun.
@@ -62,10 +65,11 @@ All coding rule violations except RS3 corrected (AM)
 //                                                               //
 ///////////////////////////////////////////////////////////////////
 
+#include "TPDGCode.h"
+
+#include "AliConst.h"
 #include "AliGenBox.h"
 #include "AliRun.h"
-#include "AliConst.h"
-#include "AliPDG.h"
 
 ClassImp(AliGenBox)
 
index a711aa065fbf49dac04305fa9434722942e0a662..b9edd43873cf5701a7bb04b673466a42038c8056 100644 (file)
 
 /*
 $Log$
+Revision 1.15  2003/01/07 14:13:22  morsch
+Communication between generators provising and requesting collision
+geometries.
+
 Revision 1.14  2002/02/08 16:50:50  morsch
 Add name and title in constructor.
 
@@ -59,10 +63,12 @@ Introduction of the Copyright and cvs Log
 // Author: andreas.morsch@cern.ch 
 //
 
+#include <TList.h>
+#include <TObjArray.h>
+
 #include "AliGenCocktail.h"
 #include "AliGenCocktailEntry.h"
 #include "AliRun.h"
-#include <TList.h>
 
 ClassImp(AliGenCocktail)
 
index 06edd2551095ab7819929000f64363b8d6833d67..8cf95bd5b018db7bdd2ec3dc0c629af6f5eb9334 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.16  2002/11/21 16:22:35  alibrary
+Removing AliMCProcess and AliMC
+
 Revision 1.15  2001/07/27 17:09:36  morsch
 Use local SetTrack, KeepTrack and SetHighWaterMark methods
 to delegate either to local stack or to stack owned by AliRun.
@@ -58,9 +61,10 @@ Introduction of the Copyright and cvs Log
 // Files can be chained. 
 // Author: andreas.morsch@cern.ch
 
+#include "TPDGCode.h"
+
 #include "AliGenFLUKAsource.h"
 #include "AliRun.h"
-#include "AliPDG.h"
 
 
 #include <TFile.h>
index 923678aa415917676a952808e115191baa961905..7bef151ec5564c2f23f8423746d8c8c3c4f70bf5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2001/10/30 11:27:35  morsch
+fExplicit member data correctly initialized.
+
 Revision 1.6  2001/07/27 17:09:36  morsch
 Use local SetTrack, KeepTrack and SetHighWaterMark methods
 to delegate either to local stack or to stack owned by AliRun.
@@ -58,9 +61,10 @@ All coding rule violations except RS3 corrected (AM)
 //                                                               //
 ///////////////////////////////////////////////////////////////////
 
+#include "TPDGCode.h"
+
 #include "AliGenFixed.h"
 #include "AliRun.h"
-#include "AliPDG.h"
   
 ClassImp(AliGenFixed)
 
index d39e278efc1a47d8d3ba4e6cab9b73eb79d0ca45..37e23bd60f42157cb9ea211f8a44537562c67294 100644 (file)
 ////////////////////////////////////////////////////////////////////////////////
 
 
-#include "Riostream.h"
+#include <Riostream.h>
+#include <TCanvas.h>
+#include <TF1.h>
+#include <TF2.h>
+#include <TH1.h>
+#include <TH2.h>
+#include <TObjArray.h>
+#include <TPDGCode.h>
+#include <TParticle.h>
+#include <TROOT.h>
 
-#include "TROOT.h"
-#include "TCanvas.h"
-#include "TParticle.h"
-#include "TObjArray.h"
-#include "TF1.h"
-#include "TF2.h"
-#include "TH1.h"
-#include "TH2.h"
 
-#include "AliRun.h"
-#include "AliPDG.h"
-#include "AliGenerator.h"
-
-#include "AliGenGeVSim.h"
 #include "AliGeVSimParticle.h"
+#include "AliGenGeVSim.h"
 #include "AliGenGeVSimEventHeader.h"
+#include "AliGenerator.h"
+#include "AliRun.h"
 
 
 ClassImp(AliGenGeVSim);
index 08848bcb23e0f1ee6674bb3d7f5000f52b2292c6..6a02c587b910a58957de349ed86a0a4a2b022eb1 100644 (file)
@@ -59,6 +59,8 @@ class TH2D;
 class TObjArray;
 class AliGeVSimParticle;
 
+#include "AliGenerator.h"
+
 
 class AliGenGeVSim : public AliGenerator {
 
index 20f5f7cd5b0c01505dc2fe2f93c295e827ad7bd1..4bf739245c66717fd3abae99b08333b7c6b837d9 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  2003/01/07 14:11:43  morsch
+Comminication with gray particle model and collision geometry added.
+
 Revision 1.4  2003/01/06 10:09:57  morsch
 Use AliGrayParticleModel.
 
@@ -39,11 +42,13 @@ Gray particle generator, first commit.
   Source is modelled by a relativistic Maxwell distributions.
   Original code by  Ferenc Sikler  <sikler@rmki.kfki.hu>
  */
+
+#include <TDatabasePDG.h>
+#include <TPDGCode.h>
+
+#include "AliCollisionGeometry.h"
 #include "AliGenGrayParticles.h"
 #include "AliGrayParticleModel.h"
-#include "AliCollisionGeometry.h"
-#include "AliPDG.h"
-#include <TDatabasePDG.h>
 
  ClassImp(AliGenGrayParticles)
     
index a1bbc669a66f30abaeece784ee7b3e2c91a39896..fd142657a769cc9324db655dbfed7e3bcb743b49 100644 (file)
@@ -11,8 +11,9 @@
 #ifndef ALIGENHBTPROCESSOR_H
 #define ALIGENHBTPROCESSOR_H
 
+#include <TPDGCode.h>
+
 #include "AliGenerator.h"
-#include "AliPDG.h"
 
 class THBTprocessor;
 class TClonesArray;
index 94550daff7891d70000b18d824c53463c3295d53..ba8100c98d09ffa3cd631c803950321139ea65e9 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.18  2002/12/11 11:58:11  morsch
+Bug in formula for pi0 energy for decay corrected.
+
 Revision 1.17  2002/12/10 17:44:57  morsch
 Correct mother child relation for pi0.
 
@@ -99,19 +102,19 @@ All coding rule violations except RS3 corrected (AM)
 //                                                               //
 ///////////////////////////////////////////////////////////////////
 
-#include "AliGenHIJINGpara.h"
-#include "AliGenEventHeader.h"
-#include "AliRun.h"
-#include "AliConst.h"
-#include "AliDecayer.h"
-#include "AliDecayerPythia.h"
-#include "AliPDG.h"
-
-#include <TF1.h>
 #include <TArrayF.h>
-#include <TDatabasePDG.h>
 #include <TClonesArray.h>
+#include <TDatabasePDG.h>
+#include <TF1.h>
 #include <TParticle.h>
+#include <TPDGCode.h>
+
+#include "AliConst.h"
+#include "AliDecayer.h"
+#include "AliDecayerPythia.h"
+#include "AliGenEventHeader.h"
+#include "AliGenHIJINGpara.h"
+#include "AliRun.h"
 
 ClassImp(AliGenHIJINGpara)
 
index 18e115c0e7ff966f47b9016dce78f60e538e019f..20256cf49aec452311105be5f3b6ac025586d624 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.1  2002/01/08 09:47:28  morsch
+HIJING parameterisation including baryons, first commit.
+
 */
 ///////////////////////////////////////////////////////////////////
 // Parameterisation of pi, K, n and p eta and pt distributions   //
@@ -24,14 +27,14 @@ $Log$
 //                                                               //
 ///////////////////////////////////////////////////////////////////
 
-#include "AliGenHIJINGparaBa.h"
+#include <TArrayF.h>
+#include <TF1.h>
+#include <TPDGCode.h>
+
+#include "AliConst.h"
 #include "AliGenEventHeader.h"
+#include "AliGenHIJINGparaBa.h"
 #include "AliRun.h"
-#include "AliConst.h"
-#include "AliPDG.h"
-
-#include <TF1.h>
-#include <TArrayF.h>
 
 ClassImp(AliGenHIJINGparaBa)
 
index cb0c814aeaafd1bd2308545fdc311fe55243e288..78d18e355bfe17c93e29d1cd8689f1c484d92798 100644 (file)
 
 /*
 $Log$
+Revision 1.11  2001/07/27 17:09:36  morsch
+Use local SetTrack, KeepTrack and SetHighWaterMark methods
+to delegate either to local stack or to stack owned by AliRun.
+(Piotr Skowronski, A.M.)
+
 Revision 1.10  2000/12/21 16:24:06  morsch
 Coding convention clean-up
 
@@ -44,12 +49,13 @@ Introduction of the Copyright and cvs Log
 // for this purpose.
 // Author: andreas.morsch@cern.ch
 
-#include "AliGenHalo.h"
-#include "AliRun.h"
-#include "AliPDG.h"
+#include <stdlib.h>
 
 #include <TDatabasePDG.h>
-#include <stdlib.h>
+#include <TPDGCode.h>
+
+#include "AliGenHalo.h"
+#include "AliRun.h"
 
  ClassImp(AliGenHalo)
      AliGenHalo::AliGenHalo()
index e7fdcbb17bc96f7fab3b658b01744f20bd93a4ca..2eb40d2cf4bfbe8b41e9d857a5aa274060aab7fb 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.12  2002/11/21 16:22:35  alibrary
+Removing AliMCProcess and AliMC
+
 Revision 1.11  2002/10/14 14:55:35  hristov
 Merging the VirtualMC branch to the main development branch (HEAD)
 
@@ -63,13 +66,14 @@ Generator to read beam halo file from Protvino group.
 // for this purpose.
 // Author: andreas.morsch@cern.ch
 
-#include "AliGenHaloProtvino.h"
-#include "AliRun.h"
-#include "AliPDG.h"
+#include <stdlib.h>
 
 #include <TDatabasePDG.h>
+#include <TPDGCode.h>
 #include <TSystem.h>
-#include <stdlib.h>
+
+#include "AliGenHaloProtvino.h"
+#include "AliRun.h"
 
  ClassImp(AliGenHaloProtvino)
      AliGenHaloProtvino::AliGenHaloProtvino()
index 498e964e3f8e05fc2cea6912a367d4dff4af3843..156cd52b87cd18be4ed9c9616beebc685d43fe60 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.46  2003/01/07 14:12:33  morsch
+Provides collision geometry.
+
 Revision 1.45  2002/12/16 09:44:49  morsch
 Default for fRadiation is 3.
 
@@ -176,19 +179,19 @@ AliGenerator interface class to HIJING using THijing (test version)
 //
 // andreas.morsch@cern.ch
 
-#include "AliGenHijing.h"
-#include "AliGenHijingEventHeader.h"
-#include "AliRun.h"
-#include "AliPDG.h"
-
 #include <TArrayI.h>
-#include <TParticle.h>
-#include <THijing.h>
 #include <TGraph.h>
+#include <THijing.h>
 #include <TLorentzVector.h>
+#include <TPDGCode.h>
+#include <TParticle.h>
+
+#include "AliGenHijing.h"
+#include "AliGenHijingEventHeader.h"
+#include "AliRun.h"
 
 
- ClassImp(AliGenHijing)
 ClassImp(AliGenHijing)
 
 AliGenHijing::AliGenHijing()
                  :AliGenMC()
index 8b5ef9fea0deb6580c8689c524ecfe3524e2bad1..00054711926140e5b205c2372e7c82e0eacc285b 100644 (file)
@@ -6,9 +6,10 @@
 
 /* $Id$ */
 
+#include <TLorentzVector.h>
+
 #include "AliGenEventHeader.h"
 #include "AliCollisionGeometry.h"
-#include <TLorentzVector.h>
 
 class AliGenHijingEventHeader : public AliGenEventHeader, public AliCollisionGeometry
 {
index c9f932a4196bf7a1448165ee99d081ed5f78620a..e5c67ae17515c93d7764c270588141281edc95c2 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.13  2002/10/14 14:55:35  hristov
+Merging the VirtualMC branch to the main development branch (HEAD)
+
 Revision 1.5.4.2  2002/07/24 08:56:28  alibrary
 Updating EVGEN on TVirtulaMC
 
@@ -63,11 +66,12 @@ AliGenMC base class for AliGenParam and AliGenPythia commonalities.
 // decay products and particle selection.
 // andreas.morsch@cern.ch
 
-#include "AliGenMC.h"
-#include "AliPDG.h"
 #include <TMath.h>
+#include <TPDGCode.h>
 #include <TParticle.h>
 
+#include "AliGenMC.h"
+
  ClassImp(AliGenMC)
 
 AliGenMC::AliGenMC()
index 977021c6a60cb6dd709ed96fcefb02b7ffb5cf7a..6a6c6f556e1c42d50478aa557df3737b0ce7d39b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  2002/10/14 14:55:35  hristov
+Merging the VirtualMC branch to the main development branch (HEAD)
+
 Revision 1.3.10.1  2002/06/10 14:57:41  hristov
 Merged with v3-08-02
 
@@ -34,9 +37,10 @@ THIS VERSION IS JUST A TEMPLATE THE PT AND Y DISTRIBUTIONS HAVE TO BE CORRECTED
 
 */
 
+#include <TMath.h>
+#include <TPDGCode.h>
+
 #include "AliGenPMDlib.h"
-#include "AliPDG.h"
-#include "TMath.h"
 
 ClassImp(AliGenPMDlib)
 //
index b2566db6a7b48729c4184644225d905439d58808..0dc99ac09a6e265855a8715ffd892daef29340f8 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.68  2002/12/11 09:16:16  morsch
+Use GetJets to fill header.
+
 Revision 1.67  2002/12/09 15:24:09  morsch
 Same trigger routine can use Pycell or Pyclus.
 
@@ -214,18 +217,18 @@ Introduction of the Copyright and cvs Log
 // andreas.morsch@cern.ch
 //
 
+#include <TDatabasePDG.h>
+#include <TParticle.h>
+#include <TPDGCode.h>
+#include <TSystem.h>
+#include <TTree.h>
 
+#include "AliConst.h"
+#include "AliDecayerPythia.h"
 #include "AliGenPythia.h"
 #include "AliGenPythiaEventHeader.h"
-#include "AliDecayerPythia.h"
-#include "AliRun.h"
 #include "AliPythia.h"
-#include "AliPDG.h"
-#include "AliConst.h"
-#include <TParticle.h>
-#include <TSystem.h>
-#include <TTree.h>
-#include <TDatabasePDG.h>
+#include "AliRun.h"
 
  ClassImp(AliGenPythia)
 
index 13819b2293dd4cbea3213d11242e0d0628c83b18..ba4237a63aa61a835d9634bfacd2f83bc4c245aa 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.1  2002/03/11 10:56:06  morsch
+AliGenThetaSlice, first commit. (Jiri Chudoba)
+
 */
 ////////////////////////////////////////////////////////////////////////
 //
@@ -31,10 +34,11 @@ $Log$
 //
 ////////////////////////////////////////////////////////////////////////
 
+#include <TPDGCode.h>
+
+#include "AliConst.h"
 #include "AliGenThetaSlice.h"
 #include "AliRun.h"
-#include "AliConst.h"
-#include "AliPDG.h"
 
 ClassImp(AliGenThetaSlice)
 
index 7786a4edb89dfc4c4360985f5a67b68b3ccabaa2..40dd522dd9a3be9fe326689f3836080de3f2075f 100644 (file)
@@ -7,9 +7,10 @@
 
 /* $Id$ */
 
-#include "AliPDG.h"
-#include "TMevSimPartTypeParams.h"
+#include <TPDGCode.h>
+
 #include "TMevSimConverter.h"
+#include "TMevSimPartTypeParams.h"
 
 class AliMevSimParticle :public TMevSimPartTypeParams {
 
index fb6b40ced91f617413a3de263ad523299c96817f..4724b8d9f99cc9e647687e162d5cc2d04d1ddc05 100644 (file)
@@ -1,10 +1,11 @@
+#include <TList.h>
+#include <TMath.h>
+#include <TPDGCode.h>
+#include <TRandom.h>
+
 #include "AliHBTLLWeights.h"
-#include "AliPDG.h"
 #include "AliHBTPair.h"
 #include "AliHBTParticle.h"
-#include <TList.h>
-#include <TRandom.h>                                                                     
-#include <TMath.h>                                                                       
 
 /*******************************************************************/
 /******      ROUTINES    USED    FOR     COMMUNUCATION      ********/
index fe759f15b8a42835a689b2114827f21960798165..cdb05085b20671d9b1419067ae4069af0deb23c2 100644 (file)
 //-------------------------------------------------------------------------
 #include <Riostream.h>
 #include <TMath.h>
+#include <TPDGCode.h>
 
 #include "AliCascadeVertex.h"
-#include "AliV0vertex.h"
 #include "AliITStrackV2.h"
+#include "AliV0vertex.h"
 
 ClassImp(AliCascadeVertex)
 
index 29977eb9cd4d581488f018e187d7f00832f82ead..ac76ea36fa8e391e6314ae1e848cb23faf4937fc 100644 (file)
 //
 //    Origin: Christian Kuhn, IReS, Strasbourg, christian.kuhn@ires.in2p3.fr
 //-------------------------------------------------------------------------
+#include <Riostream.h>
 #include <TFile.h>
-#include <TTree.h>
 #include <TObjArray.h>
-#include <Riostream.h>
+#include <TPDGCode.h>
+#include <TTree.h>
 
 #include "AliCascadeVertex.h"
 #include "AliCascadeVertexer.h"
-#include "AliV0vertex.h"
 #include "AliITStrackV2.h"
+#include "AliV0vertex.h"
 
 ClassImp(AliCascadeVertexer)
 
index 20ff34d2a113c5b585345c61202d801db1007204..f663e2f8520df38b6203a62b447a3d41b331848d 100644 (file)
@@ -20,6 +20,7 @@
 //-------------------------------------------------------------------------
 #include <Riostream.h>
 #include <TMath.h>
+#include <TPDGCode.h>
 
 #include "AliV0vertex.h"
 #include "AliITStrackV2.h"
index ae44cabf57f8cb0850d3681cb9abd3411d51fdc7..207648f6853498310975a02b4157658966284b14 100644 (file)
 //
 //     Origin: Iouri Belikov, IReS, Strasbourg, Jouri.Belikov@cern.ch
 //-------------------------------------------------------------------------
+#include <Riostream.h>
 #include <TFile.h>
-#include <TTree.h>
+#include <TPDGCode.h>
 #include <TObjArray.h>
-#include "Riostream.h"
+#include <TTree.h>
 
+#include "AliITStrackV2.h"
 #include "AliV0vertex.h"
 #include "AliV0vertexer.h"
-#include "AliITStrackV2.h"
 
 ClassImp(AliV0vertexer)
 
index 85f14baeb1dd5ee66a6243865b7706b88a7a5733..e998b3fbf8d10e6e787c2f51b8cb8fa322578890 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.11  2002/10/23 07:24:56  alibrary
+Introducing Riostream.h
+
 Revision 1.10  2002/03/13 07:55:04  jchudoba
 Correction of the errourness last commit.
 
@@ -40,23 +43,23 @@ Revision 1.1  2001/07/27 15:41:01  jchudoba
 merging/digitization classes
 
 */
-#include <TTree.h> 
-#include <TObjArray.h>
-#include <TFile.h>
-#include <TDirectory.h>
 #include <Riostream.h>
+#include <TDirectory.h>
+#include <TFile.h>
+#include <TObjArray.h>
+#include <TPDGCode.h>
+#include <TTree.h> 
 
-#include "AliMUONDigitizer.h"
-#include "AliMUONConstants.h"
-#include "AliMUONChamber.h"
-#include "AliMUONHitMapA1.h"
 #include "AliMUON.h"
+#include "AliMUONChamber.h"
+#include "AliMUONConstants.h"
+#include "AliMUONDigit.h"
+#include "AliMUONDigitizer.h"
 #include "AliMUONHit.h"
+#include "AliMUONHitMapA1.h"
 #include "AliMUONPadHit.h"
-#include "AliMUONDigit.h"
 #include "AliMUONTransientDigit.h"
 #include "AliRun.h"
-#include "AliPDG.h"
 #include "AliRunDigitizer.h"
 
 ClassImp(AliMUONDigitizer)
index eeea21a8893454b14b8a4900c1afd2b0e198a897..d4a2121f6e4074ce6e26a16b91abf0f566e4bf48 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2002/03/13 07:04:11  jchudoba
+Connect only MUON branches when reading the event to speed up digitisation.
+
 Revision 1.8  2002/02/22 12:14:21  morsch
 Validate pad hit before digitization.
 
@@ -42,23 +45,23 @@ AliMUONMerger prototype to be called by the merge manager.
 
 */
 
-#include <TTree.h> 
-#include <TObjArray.h>
-#include <TFile.h>
 #include <TDirectory.h>
+#include <TFile.h>
+#include <TObjArray.h>
+#include <TPDGCode.h>
+#include <TTree.h> 
 
-#include "AliMUONMerger.h"
-#include "AliMUONConstants.h"
-#include "AliMUONChamber.h"
 #include "AliHitMap.h"
-#include "AliMUONHitMapA1.h"
 #include "AliMUON.h"
+#include "AliMUONChamber.h"
+#include "AliMUONConstants.h"
+#include "AliMUONDigit.h"
 #include "AliMUONHit.h"
+#include "AliMUONHitMapA1.h"
+#include "AliMUONMerger.h"
 #include "AliMUONPadHit.h"
-#include "AliMUONDigit.h"
 #include "AliMUONTransientDigit.h"
 #include "AliRun.h"
-#include "AliPDG.h"
 
 ClassImp(AliMUONMerger)
 
index 9e7d985555cf74eb3908147e89b4a777743d6cda..6f51ccd43e16ca5d86969250599f5d9ef6e7e306 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.24  2002/11/21 17:01:56  alibrary
+Removing AliMCProcess and AliMC
+
 Revision 1.23  2002/10/23 07:24:57  alibrary
 Introducing Riostream.h
 
@@ -91,11 +94,12 @@ Gammas and neutrons are also scored in the stepmanager
 //  Manager and hits classes for set:MUON version 0    //
 /////////////////////////////////////////////////////////
 
-#include <TTUBE.h>
+#include <Riostream.h>
+#include <TClonesArray.h>
+#include <TLorentzVector.h> 
 #include <TNode.h> 
 #include <TRandom.h> 
-#include <TLorentzVector.h> 
-#include <Riostream.h>
+#include <TTUBE.h>
 
 #include "AliMUONv0.h"
 #include "AliMUONChamber.h"
index 33958284bf902fa02942b5c43df4ced33cbd0068..a04ebd21728bec49effcac4c3af73fdf95e333ab 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.38  2002/11/21 17:01:56  alibrary
+Removing AliMCProcess and AliMC
+
 Revision 1.37  2002/10/23 07:24:57  alibrary
 Introducing Riostream.h
 
@@ -169,11 +172,12 @@ Log messages included.
 //  Manager and hits classes for set:MUON version 0    //
 /////////////////////////////////////////////////////////
 
-#include <TTUBE.h>
+#include <Riostream.h>
+#include <TClonesArray.h>
+#include <TLorentzVector.h> 
 #include <TNode.h> 
 #include <TRandom.h> 
-#include <TLorentzVector.h> 
-#include <Riostream.h>
+#include <TTUBE.h>
 
 #include "AliMUONv1.h"
 #include "AliRun.h"
index d8e50af2793c7c5bc8eaff68c5535a08aabc3b88..6ee2d7866930241c8214067ebe3cad0db2d80a7e 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
   $Log$
+  Revision 1.64  2002/11/21 22:54:07  alibrary
+  Removing AliMC and AliMCProcess
+
   Revision 1.63  2002/11/04 09:02:52  morsch
   Further corrcetions on Fresnel and Grid losses.
 
 //  Manager and hits classes for set:RICH     //
 ////////////////////////////////////////////////
 
-#include <TBRIK.h>
-#include <TTUBE.h>
-#include <TNode.h> 
-#include <TRandom.h> 
-#include <TObject.h>
-#include <TVector.h>
-#include <TObjArray.h>
+#include <strings.h>
+
+#include <Riostream.h>
 #include <TArrayF.h>
+#include <TBRIK.h>
+#include <TCanvas.h>
+#include <TF1.h>
 #include <TFile.h>
-#include <TParticle.h>
 #include <TGeometry.h>
-#include <TTree.h>
 #include <TH1.h>
 #include <TH2.h>
-#include <TCanvas.h>
+#include <TNode.h> 
+#include <TObjArray.h>
+#include <TObject.h>
+#include <TParticle.h>
+#include <TPDGCode.h>
+#include <TRandom.h> 
 #include <TStyle.h>
-#include <TF1.h>
-
-#include <Riostream.h>
-#include <strings.h>
+#include <TTUBE.h>
+#include <TTree.h>
+#include <TVector.h>
 
+#include "AliConst.h"
+#include "AliMagF.h"
+#include "AliPoints.h"
 #include "AliRICH.h"
-#include "AliSegmentation.h"
-#include "AliRICHSegmentationV0.h"
-#include "AliRICHHit.h"
 #include "AliRICHCerenkov.h"
-#include "AliRICHSDigit.h"
+#include "AliRICHClusterFinder.h"
 #include "AliRICHDigit.h"
-#include "AliRICHTransientDigit.h"
+#include "AliRICHDigitizer.h"
+#include "AliRICHHit.h"
+#include "AliRICHHitMapA1.h"
+#include "AliRICHMerger.h"
 #include "AliRICHRawCluster.h"
 #include "AliRICHRecHit1D.h"
 #include "AliRICHRecHit3D.h"
-#include "AliRICHHitMapA1.h"
-#include "AliRICHClusterFinder.h"
-#include "AliRICHMerger.h"
-#include "AliRICHDigitizer.h"
+#include "AliRICHSDigit.h"
+#include "AliRICHSegmentationV0.h"
+#include "AliRICHTransientDigit.h"
 #include "AliRun.h"
 #include "AliRunDigitizer.h"
-#include "AliMagF.h"
-#include "AliConst.h"
-#include "AliPDG.h"
-#include "AliPoints.h"
+#include "AliSegmentation.h"
 
 
 
index 612ce78108679cd59b260436a1dcf0053515d556..fe4ed3454a1060f28f8ab3f49c8f358ffa50b4aa 100644 (file)
@@ -5,7 +5,7 @@
 
 /* $Id$ */
 
-#include <TClassTable.h>
+#include <Rtypes.h>
 
 class AliCollisionGeometry
 {
index b820e1a3423bed560b1431bfd861c4ef48f4346c..0a3a2c2e68c3c3fb715e5af207545bd25e539cdc 100644 (file)
@@ -32,7 +32,7 @@
 
 ClassImp(AliConfig)
 
-AliConfig* AliConfig::fInstance = 0;
+AliConfig* AliConfig::fgInstance = 0;
 
 //____________________________________________________________________________
 AliConfig* AliConfig::Instance ()
@@ -40,9 +40,9 @@ AliConfig* AliConfig::Instance ()
   //
   // Instance method for singleton class
   //
-  if(!fInstance) fInstance = new AliConfig ("Folders","Alice data exchange");
+  if(!fgInstance) fgInstance = new AliConfig ("Folders","Alice data exchange");
 
-  return fInstance;
+  return fgInstance;
 }
 
 //____________________________________________________________________________
@@ -59,7 +59,7 @@ AliConfig::AliConfig():
   //
   // Default constructor, mainly to keep coding conventions
   //
-  fInstance=0;
+  fgInstance=0;
     
   Fatal("ctor",
    "Constructor should not be called for a singleton\n");
@@ -80,7 +80,7 @@ AliConfig::AliConfig(const AliConfig& conf):
   //
   // Copy constructor, mainly to keep coding conventions
   //
-  fInstance=0;
+  fgInstance=0;
     
   Fatal("copy ctor",
    "Copy constructor should not be called for a singleton\n");
@@ -101,7 +101,7 @@ AliConfig::AliConfig(const char *name, const char *title):
   //
   // Constructor
   //
-  fInstance=this;
+  fgInstance=this;
   
   fDetectorFolder[0] = "Run/Conditions/Calibration" ;
   fDetectorFolder[1] = "Run/Event/Data" ;
@@ -161,38 +161,38 @@ AliConfig::AliConfig(const char *name, const char *title):
   subfolder =
     event->AddFolder ("RecData", "Detectors reconstucted data");
   
-  TFolder *run_mc =
+  TFolder *runMC =
     fTopFolder->AddFolder ("RunMC", "MonteCarlo run dependent folders");
   
-  TFolder *configuration_mc =
-    run_mc->AddFolder ("Configuration","MonteCarlo run configuration");
+  TFolder *configurationMC =
+    runMC->AddFolder ("Configuration","MonteCarlo run configuration");
   
   subfolder =
-    configuration_mc->AddFolder ("Generators","list of generator objects");
+    configurationMC->AddFolder ("Generators","list of generator objects");
   
   subfolder =
-    configuration_mc->AddFolder ("VirtualMC", "the Virtual MC");
+    configurationMC->AddFolder ("VirtualMC", "the Virtual MC");
   
-  TFolder *event_mc =
-    run_mc->AddFolder ("Event", "MonteCarlo event folders");
+  TFolder *eventMC =
+    runMC->AddFolder ("Event", "MonteCarlo event folders");
   
   subfolder =
-    event_mc->AddFolder ("Header", "MonteCarlo event header");
+    eventMC->AddFolder ("Header", "MonteCarlo event header");
   
   //           subfolder =
-  //               event_mc->AddFolder ("Kinematics", "MonteCarlo generated particles");
+  //               eventMC->AddFolder ("Kinematics", "MonteCarlo generated particles");
   
-  TFolder *data_mc =
-    event_mc->AddFolder ("Data", "MonteCarlo data");
+  TFolder *dataMC =
+    eventMC->AddFolder ("Data", "MonteCarlo data");
   
   subfolder = 
-    data_mc->AddFolder ("Hits", "MonteCarlo Hits") ; 
+    dataMC->AddFolder ("Hits", "MonteCarlo Hits") ; 
  
  subfolder = 
-    data_mc->AddFolder ("SDigits", "MonteCarlo SDigits") ; 
+    dataMC->AddFolder ("SDigits", "MonteCarlo SDigits") ; 
 
  subfolder = 
-    data_mc->AddFolder ("TrackReferences", "MonteCarlo track references") ; 
+    dataMC->AddFolder ("TrackReferences", "MonteCarlo track references") ; 
 
 
   
@@ -311,10 +311,10 @@ void    AliConfig::Add (char *list)
 {
   char *path;
   
-  const char   *conf_path = gSystem->Getenv ("ALICE_CONFIG_PATH");
-  if  (conf_path) {
-    path = new char[strlen (conf_path)];
-    strcpy (path, conf_path);
+  const char   *confPath = gSystem->Getenv ("ALICE_CONFIG_PATH");
+  if  (confPath) {
+    path = new char[strlen (confPath)];
+    strcpy (path, confPath);
   } else {
     const char   *alice = gSystem->Getenv ("ALICE_ROOT");
     path = new char[strlen (alice) + 32];
index c55ca1b11a5477be30b75edfd042395d07601696..358a01e7d0ecce01eda198cb60a392d4233319ad 100644 (file)
@@ -17,6 +17,8 @@ class AliGenerator;
 class AliModule;
 class AliTasks;
 
+#include <TNamed.h>
+
 class AliConfig : public TNamed {
   
 public:
@@ -38,24 +40,24 @@ private:
 
   enum {kFolders=8, kTasks=5};
   AliConfig(const char * name, const char * title);
-  AliConfig(const AliConfig&);
+  AliConfig(const AliConfig& conf);
   void  AddInFolder (const char * dir, TObject *obj);
   void  AddSubFolder(const char * dir[], TObject *obj);
   void  AddSubTask(const char * dir[], TObject *obj);
   TObject* FindInFolder (const char *dir, const char *name);
   AliConfig& operator = (const AliConfig&) {return *this;}
   
-  TFolder  *fTopFolder;
-  AliTasks *fTasks;
+  TFolder  *fTopFolder;                // Pointer of the top folder
+  AliTasks *fTasks;                    // Pointer for the tasks
   // folders
-  const char*  fPDGFolder ; 
-  const char*  fGeneratorFolder ; 
-  const char*  fMCFolder ; 
-  const char*  fModuleFolder ; 
-  const char** fDetectorFolder ; 
-  const char** fDetectorTask ; 
-
-  static AliConfig*  fInstance;
+  const char*  fPDGFolder ;            // Names of the PDG folders
+  const char*  fGeneratorFolder ;      // Names of the Generator folders
+  const char*  fMCFolder ;             // Names of MC folders
+  const char*  fModuleFolder ;         // Names of Module folders
+  const char** fDetectorFolder ;       // Names of Detector folders
+  const char** fDetectorTask ;         // Names of Detector Task folders
+
+  static AliConfig*  fgInstance;       // Instance of the singleton
     
     ClassDef(AliConfig,1) //Configuration class for AliRun
 };                             // end class AliConfig
index 950a0714a5b59f60a2bec606b31b6bf539bc5e2f..3f439f9ceaca5d81863e0296c4e4ab88ae061083 100644 (file)
 
 /* $Header$ */
 
+//-----------------------------------------------------------------------
+//
+//    Class to debug entry and exit from a volume
+//
+//-----------------------------------------------------------------------
+
+
 #include "AliDebugVolume.h"
 
 ClassImp(AliDebugVolume)
index 85304fa0a0672ea0dbf73040bb74e3afbd25ae0f..53db7289cb904b5ad14161f06475e01294835e9d 100644 (file)
 
 #include <assert.h>
 
+#include <Riostream.h>
 #include <TBrowser.h>
 #include <TFile.h>
 #include <TFolder.h>
 #include <TROOT.h>
 #include <TTree.h>
-#include <Riostream.h>
 
 #include "AliConfig.h"
 #include "AliDetector.h"
index fc673c15c5acafd2594c021bea901153f35f384f..008f4f0c5351d4eed974726f2a91dfcf927e6cd2 100644 (file)
 
 /* $Header$ */
 
+//------------------------------------------------------------------------
+//
+//             Main digit class
+//
+//------------------------------------------------------------------------
+
 #include "AliDigit.h"
  
 ClassImp(AliDigit)
index 3365e30de673c8711b65fe942398bb22cc0fa085..d32afa8e6e6b0087f9923f30c43a09e385806ca6 100644 (file)
@@ -13,7 +13,7 @@
 #include "TObject.h"
 
 class AliDigit : public TObject {
-public:
+protected:
   Int_t     fTracks[3];   //tracks number making this digit (up to 3)
 
 public:
index decce4de608c935677872e7c703f587407ef4e5c..59157b54bc9adbc8d45c92de4b9f46ae5368a650 100644 (file)
 
 /* $Header$ */
 
+//-----------------------------------------------------------------------
+//
+//    Proposal for a new digitisation abstract class
+//
+//-----------------------------------------------------------------------
+
 #include "AliDigitNew.h"
  
 ClassImp(AliDigitNew)
index d2ed25bba61e6a33de4a25f92dbb5c540514bcce..bfe10c5ef5790b766479dc6adf81e938987ef5a3 100644 (file)
@@ -33,14 +33,14 @@ class AliDigitizer: public TTask {
       {dig.Copy(*this);return *this;}
       
     virtual ~AliDigitizer();
-    virtual Bool_t Init() {return kTRUE;}
+    virtual Bool_t Init() const {return kTRUE;}
 //    virtual void Digitize() = 0;
 
 protected:
     Int_t GetNInputStreams() const;
     void Copy(AliDigitizer &dig) const;
 
-    AliRunDigitizer *fManager;
+    AliRunDigitizer *fManager;   // Pointer to the Digitizer manager
     
     ClassDef(AliDigitizer,1) // Base class for detector digitizers
 };
index 8d216142b2da2db4f07cd43d089aeda838e64dac..40c5aae6c792136e1b02811fc57f6d2ecdc26209 100644 (file)
@@ -391,7 +391,8 @@ void AliDisplay::ShowTrack(Int_t idx)
 }
 
 //----------------------------------------------------------------------------
-void AliDisplay::HideTrack(Int_t idx) {
+void AliDisplay::HideTrack(Int_t idx) const
+{
   //
   // Hide track on display
   //
index b1b7ac9a0c862f101371059de8ee2fd995ba8ce7..c9205c5ef51d4eb1a06f7ef9338970351595ebbf 100644 (file)
@@ -35,7 +35,7 @@ public:
    virtual void      Clear(Option_t *option="");
    TSlider          *CutSlider() {return fCutSlider;}
    virtual void      ShowTrack(Int_t trackNumber); // *MENU*
-   virtual void      HideTrack(Int_t trackNumber); // *MENU*
+   virtual void      HideTrack(Int_t trackNumber) const; // *MENU*
            void      Copy(AliDisplay &disp) const;
    virtual void      DisableDetector(const char *name); // *MENU*
    virtual void      DisplayButtons();
index 69d69236270c49f32287964b136879fc0d5a6b6b..a913837c8e5a4a4295d82decda97f756ce5b0f3e 100644 (file)
@@ -17,6 +17,7 @@
 
 /////////////////////////////////////////////////////////////////////////
 //                                                                     //
+//       Prototype ESD class                                           //
 //                                                                     //
 /////////////////////////////////////////////////////////////////////////
 
index ea933079734ceac85304780757904492485e8855..7b5777b21c0c16c7fc817f51e48d5813969f2de5 100644 (file)
@@ -57,7 +57,7 @@ protected:
   Float_t   fPIDprobE;           // PID probability for e
 
 private:
-  AliESDTrack(const AliESDTrack &);
+  AliESDTrack(const AliESDTrack & esdt);
   AliESDTrack & operator=(const AliESDTrack &) {return (*this);}
   
   ClassDef(AliESDTrack,1)  //ESDTrack 
@@ -78,7 +78,7 @@ protected:
   Float_t      fEffectiveMass;          // Effective Mass
   Float_t      fEffectiveMassError;     // Effective Mass Error
 private:
-  AliESDVertex(const AliESDVertex &);
+  AliESDVertex(const AliESDVertex & esdv);
   AliESDVertex & operator=(const AliESDVertex &) {return (*this);}
   
   ClassDef(AliESDVertex,1)  //ESDVertex 
index 8f4b3f3ff2e58f0f4cfd1cfed8a341b91914412f..b6899b810e036087d8d315262426e4b71c3d859d 100644 (file)
 
 /* $Header$ */
 
+//-----------------------------------------------------------------------
 //
 // Author: Andreas Morsch <andreas.morsch@cern.ch>
 //
+//-----------------------------------------------------------------------
 
+#include <TSystem.h>
 #include <TVector.h>
+
 #include "AliFieldMap.h"
-#include "TSystem.h"
 
 ClassImp(AliFieldMap)
 
index bfe0563f571276d0ec02f16348d01bab8e16fe1a..24adf72622e8f0ded89bf9272bc82d65f2e31d3f 100644 (file)
@@ -9,8 +9,7 @@
 // Author: Andreas Morsch <andreas.morsch@cern.ch>
 //
 #include <TNamed.h>
-#include <TVector.h>
-#include <TBuffer.h>
+class TVector;
 
 class AliFieldMap : public TNamed
 {
@@ -35,25 +34,25 @@ public:
        return (*fB)(3*(ix*(fZn*fYn)+iy*fZn+iz)+2);
     }
 
-    Bool_t Inside(Float_t x, Float_t y, Float_t z) 
+    Bool_t Inside(Float_t x, Float_t y, Float_t z) const
        { return (x > fXbeg && x <= fXend &&
                  y > fYbeg && y <= fYend &&
                  z > fZbeg && z <= fZend);
        }
-    Float_t Xmin()  {return fXbeg;}
-    Float_t Xmax()  {return fXend;}
-    Float_t DelX()  {return fXdel;}
-    Float_t DeliX() {return fXdeli;}
+    Float_t Xmin()  const {return fXbeg;}
+    Float_t Xmax()  const {return fXend;}
+    Float_t DelX()  const {return fXdel;}
+    Float_t DeliX() const {return fXdeli;}
     
-    Float_t Ymin()  {return fYbeg;}
-    Float_t Ymax()  {return fYend;}
-    Float_t DelY()  {return fYdel;}
-    Float_t DeliY() {return fYdeli;}
+    Float_t Ymin()  const {return fYbeg;}
+    Float_t Ymax()  const {return fYend;}
+    Float_t DelY()  const {return fYdel;}
+    Float_t DeliY() const {return fYdeli;}
     
-    Float_t Zmin()  {return fZbeg;}
-    Float_t Zmax()  {return fZend;}
-    Float_t DelZ()  {return fZdel;}
-    Float_t DeliZ() {return fZdeli;}
+    Float_t Zmin()  const {return fZbeg;}
+    Float_t Zmax()  const {return fZend;}
+    Float_t DelZ()  const {return fZdel;}
+    Float_t DeliZ() const {return fZdeli;}
     void    SetLimits(Float_t xmin, Float_t xmax, Float_t ymin, Float_t ymax,
                      Float_t zmin, Float_t zmax)
        {
@@ -61,8 +60,6 @@ public:
            fZbeg = zmin; fZend = zmax;
        }
     void SetWriteEnable(Int_t flag = 1) {fWriteEnable = flag;}
- private:
-    void    ReadField();
  protected:
     
     Float_t    fXbeg;         // Start of mesh in x
@@ -83,6 +80,9 @@ public:
     Int_t      fWriteEnable;  // Enable flag for writing of field data.
     TVector*   fB;            // Field map
     
+ private:
+    void    ReadField();
+
     ClassDef(AliFieldMap,3)  //Class for Field Map
 };
 
index 016ded2e074ea0f9b8cf8301ca6561686f21627b..6ac5e6381f9758e4658a02534574367e72fd805f 100644 (file)
@@ -26,8 +26,8 @@
 
 #include <Riostream.h>
 #include <TArrayD.h>
-#include <TMatrixD.h>
 #include <TRandom.h>
+
 #include "AliGausCorr.h"
 
 ClassImp(AliGausCorr)
index eec37dbf1bb7273d56f790521c46d4c25b046a69..31d9cca054f845b098c6ae7cf2739a5463d30ba6 100644 (file)
@@ -9,15 +9,8 @@
 class TArrayD;
 
 
-class AliGausCorr : public TObject {
-////////////////////////////////////////////////////////////////////////
-// Class used to generate correlated gaussian numbers with mean
-// zero and known covariance matrix.
-// Adapted from the Fortran code in Cernlib V122 (corset, corgen)
-// F. James, Monte Carlo theory and practice, 
-// Rep. Prog. Phys. 43 (1980) 1145-1189. 
-// M.Masera 14.03.2001 19:30 - last mod. 26.02.2002 17:45
-////////////////////////////////////////////////////////////////////////
+class AliGausCorr : public TObject 
+{
  public:
   //
   AliGausCorr();
index 44c346a418059f1a107e83e04b3913338285bb2d..33345d1e173edcbfdd95594e411f499b67205471 100644 (file)
@@ -9,11 +9,6 @@
 #include <TNamed.h>
 #include <TArrayF.h>
 
-// Event header base class for generator. 
-// Stores as a minimum the date, run number, event number, number of particles produced  
-// and the impact parameter
-// Author: andreas.morsch@cern.ch
-
 class AliGenEventHeader : public TNamed
 {
  public:
@@ -22,7 +17,7 @@ class AliGenEventHeader : public TNamed
   AliGenEventHeader();
   virtual ~AliGenEventHeader() {}
   // Getters
-  virtual Int_t           NProduced()         {return fNProduced;}
+  virtual Int_t           NProduced()  const   {return fNProduced;}
   virtual void            PrimaryVertex(TArrayF &o) const;
   
   // Setters
index 2e8044aeee889a7f94756e0202d4dfa19cfb95ec..1e6da896623dfe49e19a6c9b849c498287a6d2bf 100644 (file)
 //End_Html
 //                                                               //
 ///////////////////////////////////////////////////////////////////
-#include "TGenerator.h"
+#include <TGenerator.h>
 
+#include "AliCollisionGeometry.h"
 #include "AliConfig.h"
 #include "AliGenerator.h"
-#include "AliCollisionGeometry.h"
 #include "AliRun.h"
 #include "AliStack.h"
 
@@ -382,6 +382,9 @@ void  AliGenerator::SetTrack(Int_t done, Int_t parent, Int_t pdg,
                                Float_t tof, TMCProcess mech, Int_t &ntr,
                                Float_t weight, Int_t is)
 {
+  //
+  // Loads one track on the stack
+  //
 
   if (fStack)
     fStack->SetTrack(done, parent, pdg, pmom, vpos, polar, tof,
@@ -398,6 +401,9 @@ void  AliGenerator::SetTrack(Int_t done, Int_t parent, Int_t pdg,
                       Double_t polx, Double_t poly, Double_t polz,
                       TMCProcess mech, Int_t &ntr, Float_t weight, Int_t is)
 {
+  //
+  // Loads one track on the stack
+  //
   
   if (fStack)
      fStack->SetTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,
@@ -411,6 +417,9 @@ void  AliGenerator::SetTrack(Int_t done, Int_t parent, Int_t pdg,
 //_______________________________________________________________________
 void AliGenerator:: KeepTrack(Int_t itrack)
 {
+  //
+  // Declare a track permanent on the stack
+  //
   if (fStack)
      fStack->KeepTrack(itrack);
   else 
@@ -421,6 +430,9 @@ void AliGenerator:: KeepTrack(Int_t itrack)
 //_______________________________________________________________________
 void AliGenerator:: SetHighWaterMark(Int_t nt)
 {
+  //
+  // Internal function to set the maximum index used in the stack
+  //
   if (fStack)
      fStack->SetHighWaterMark(nt);
   else 
index d3af8caff9e58a5adb0fd2ce4c420ca403e16387..1b37afbe2374d2c18be3b7b865ce331f6ae43441 100644 (file)
 //                                                       //
 ///////////////////////////////////////////////////////////
 
-#include "TLorentzVector.h"
-#include "TArrayF.h"
-#include "TMCProcess.h"
-#include "AliCollisionGeometry.h"
+#include <TArrayF.h>
+#include <TLorentzVector.h>
+#include <TMCProcess.h>
+
 #include "AliRndm.h"
 
-class TGenerator;
+class AliCollisionGeometry;
 class AliStack;
 
+class TGenerator;
+
 
 
 typedef enum { kNoSmear, kPerEvent, kPerTrack } VertexSmear_t;
@@ -78,8 +80,8 @@ class AliGenerator : public TNamed, public AliRndm
     void SetStack (AliStack *stack) {fStack = stack;}
     AliStack* GetStack(){return fStack;}
   // Collision Geometry
-    virtual Bool_t ProvidesCollisionGeometry() {return kFALSE;}
-    virtual Bool_t NeedsCollisionGeometry()    {return kFALSE;}    
+    virtual Bool_t ProvidesCollisionGeometry() const {return kFALSE;}
+    virtual Bool_t NeedsCollisionGeometry()    const {return kFALSE;}    
     virtual AliCollisionGeometry* CollisionGeometry() {return fCollisionGeometry;}
     virtual void SetCollisionGeometry(AliCollisionGeometry* geom) {fCollisionGeometry = geom;}
  protected:
index eda899fe6e38551263adec66a013148099fc268a..a2d9d3ab4e416a22f4221cd47e6510465265ae6a 100644 (file)
 ////////////////////////////////////////////////
 
 // --- ROOT system ---
-#include "TParticle.h"
 #include "TNamed.h"
-class TVector3;
-class TMatrix;
+
 class AliRecPoint;
+class TMatrix;
+class TParticle;
+class TVector3;
 
 class AliGeometry : public TNamed {
 
index a59bb54a993023e6ea8f583d9ee44ab7b3a85a9d..b8e8e47ca418c2edc8a778fdf15bf2e252f061b7 100644 (file)
 
 /* $Header$ */
 
+//-----------------------------------------------------------------------
+//
+//     Simulation event header class
+//
+//-----------------------------------------------------------------------
+
 #include <stdio.h>
 
 #include "AliHeader.h"
index 22cf0f06ded8bc0b70166e7f891ec5a27410149d..b7e4a0193ce0ad48d32a02fd809d24e767acba1b 100644 (file)
 
 /* $Header$ */
 
+//-----------------------------------------------------------------------
+//
+//    Base Hit class for all detectors
+//
+//-----------------------------------------------------------------------
+
 #include "TParticle.h"
 
 #include "AliHit.h"
index d6e0b53d5361865751c13e66f3022e4712aaa70e..03160822632b1272c4f010f6d9d007c6ed9d1d17 100644 (file)
@@ -25,7 +25,7 @@
 
 ClassImp(AliKalmanTrack)
 
-Double_t AliKalmanTrack::fConvConst;
+Double_t AliKalmanTrack::fgConvConst;
 
 //_______________________________________________________________________
 AliKalmanTrack::AliKalmanTrack():
@@ -34,7 +34,10 @@ AliKalmanTrack::AliKalmanTrack():
   fMass(0.13957),
   fN(0)
 {
-    if (fConvConst==0) 
+  //
+  // Default constructor
+  //
+    if (fgConvConst==0) 
       Fatal("AliKalmanTrack()","The magnetic field has not been set !\n"); 
 }
 
@@ -46,7 +49,10 @@ AliKalmanTrack::AliKalmanTrack(const AliKalmanTrack &t):
   fMass(t.fMass),
   fN(t.fN)
 {
-  if (fConvConst==0) 
+  //
+  // Copy constructor
+  //
+  if (fgConvConst==0) 
     Fatal("AliKalmanTrack(const AliKalmanTrack&)",
           "The magnetic field has not been set !\n"); 
 }
index dd187572ea4fdcd389455393ed765104be62cd9a..e586fd57a0a11b43862dd97292b9e191bd96dcc3 100644 (file)
@@ -44,13 +44,13 @@ public:
     Int_t PropagateTo(Double_t /*xr*/, Double_t /*x0*/, Double_t /*rho*/) {return 0;}
   virtual Int_t Update(const AliCluster*, Double_t /*chi2*/, UInt_t) {return 0;}
 
-  static void SetConvConst(Double_t cc) {fConvConst=cc;}
-  Double_t GetConvConst() const {return fConvConst;}
+  static void SetConvConst(Double_t cc) {fgConvConst=cc;}
+  Double_t GetConvConst() const {return fgConvConst;}
 
   static void SetMagneticField(Double_t f) {// f - Magnetic field in T
-    fConvConst=100/0.299792458/f;
+    fgConvConst=100/0.299792458/f;
   }
-  Double_t GetMagneticField() const {return 100/0.299792458/fConvConst;}
+  Double_t GetMagneticField() const {return 100/0.299792458/fgConvConst;}
 
 protected:
   void SetChi2(Double_t chi2) {fChi2=chi2;} 
@@ -63,7 +63,7 @@ private:
   Double_t fMass;         // mass hypothesis
   Int_t fN;               // number of associated clusters
 
-  static Double_t fConvConst; //conversion constant cm -> GeV/c
+  static Double_t fgConvConst; //conversion constant cm -> GeV/c
 
   ClassDef(AliKalmanTrack,1)    // Reconstructed track
 };
index 14d580084f69fee3baf72d8c2df93cbafeccce53..95e879fe522110049b99eaae49c153c332dd39d7 100644 (file)
 
 /* $Header$ */
 
+//------------------------------------------------------------------------
+//
+//        Generic Lego generator code
+//
+//------------------------------------------------------------------------
+
 #include "AliLegoGenerator.h"
 #include "AliRun.h"
 
index 74db157b643021a42f79d12c439ac83f46eeffed..2d3fc91d37545520d139f164319540c7eb24df03 100644 (file)
 
 /* $Header$ */
 
+//------------------------------------------------------------------------
+//
+//    Lego generator in Eta bins
+//
+//------------------------------------------------------------------------
+
 #include "AliLegoGeneratorEta.h"
 #include "AliRun.h"
 
index 946a9a7558c1e8f5cf37c537389b9c14028298eb..24a3807e285666a0facd9966f44a6b7b098f76fa 100644 (file)
 
 /* $Header$ */
 
+//-------------------------------------------------------------------------
+//
+//    Lego generator in Phi - Z bins
+//
+//-------------------------------------------------------------------------
+
 #include "AliLegoGeneratorPhiZ.h"
 #include "AliRun.h"
 
index 62a04355e260485a41460174c336be55969afd23..d3ae6bd7a3ac46ce7a10a2f689ede3cd6657fb00 100644 (file)
 
 /* $Header$ */
 
+//-------------------------------------------------------------------------
+//
+//      Lego generator in x - y - z bins
+//
+//-------------------------------------------------------------------------
+
 #include "AliLegoGeneratorXYZ.h"
 #include "AliRun.h"
 
index d55f7d4be1b320e904d36a8d1df2dac1127051cf..f7415e091ffecac882c615610d91d4ae3cfc2863 100644 (file)
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
+// Quality Assurance class                                                   //
+// Provides standard histograms for every element of the detector            //
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
 
 #include <strings.h>
 
-#include "TObjArray.h"
-#include "TH1.h"
-#include "TList.h"
-#include "TROOT.h"
-#include "TBrowser.h"
-#include "TMath.h"
-#include "TLorentzVector.h"
-#include "TDatabasePDG.h"
-#include "TMath.h"
-#include "TPad.h"
-#include "TExec.h"
-#include "TPaveLabel.h"
-#include "TCanvas.h"
+#include <TBrowser.h>
+#include <TCanvas.h>
+#include <TDatabasePDG.h>
+#include <TExec.h>
+#include <TH1.h>
+#include <TList.h>
+#include <TLorentzVector.h>
+#include <TMath.h>
+#include <TMath.h>
+#include <TObjArray.h>
+#include <TPad.h>
+#include <TPaveLabel.h>
+#include <TROOT.h>
 
 #include "AliMCQA.h"
-#include "AliRun.h"
 #include "AliModule.h"
+#include "AliRun.h"
 
 ClassImp(AliMCQA)
 
@@ -173,7 +175,11 @@ void AliMCQA::Copy(AliMCQA &) const
 }
 
 //_______________________________________________________________________
-AliMCQA::~AliMCQA() {
+AliMCQA::~AliMCQA() 
+{
+  //
+  // Destructor
+  //
   gROOT->GetListOfBrowsables()->Remove(this);
   if (fQAList) {
     fQAList->Delete();
index 41e8085b8626eed12f08201d3b8d2e60f4a628b9..f17dfee92ec6a900fac160dba7ab79cc8b1da596 100644 (file)
@@ -15,6 +15,9 @@
 
 /* $Header$ */
 
+//
+// Basic magnetic field class
+//
 
 #include "AliMagF.h"
 
index 073ee052e238ebbc4054c96667208b297fafac19..b775bec3f5c9edd3ed8a4d6f37e5af55b45cff36 100644 (file)
 
 /* $Header$ */
 
+//-------------------------------------------------------------------------
+//
+//     Constant magnetic field class
+//
+//-------------------------------------------------------------------------
+
 #include <stdlib.h>
 
 #include "AliMagFC.h"
index 350ebb7cb53a3108792b7a85a819066a82121059..056aed15f01557ce4649cbaed9d8e14e50272fbd 100644 (file)
 
 /* $Header$ */
 
+//-------------------------------------------------------------------------
+//
+//   Field with Magnetic Field map
+//
+//-------------------------------------------------------------------------
+
 #include <stdlib.h>
 
 #include "TSystem.h"
@@ -109,7 +115,7 @@ void AliMagFDM::Field(Float_t *xfi, Float_t *b)
   // Main routine to compute the field in a point
   //
   const Double_t keps=0.1E-06;
-  const Double_t PI2=2.*TMath::Pi();
+  const Double_t kPI2=2.*TMath::Pi();
   const Double_t kone=1;
   
   const    Int_t  kiip=33; 
@@ -200,10 +206,10 @@ if ((kfZbg/100<xL3[2] && xL3[2]<=zCmin && r0<=rPmax) || ((zCmin<xL3[2] && xL3[2]
         kcphi=777;
        } 
        ph0=TMath::ACos(cphi);
-       if (xL3[0] < 0 && yyp > 0 ) {ph0=PI2/2 - ph0;}  
-       if (xL3[0] < 0 && yyp < 0 ) {ph0=PI2/2 + ph0;} 
-       if (xL3[0] > 0 && yyp < 0 ) {ph0=PI2 - ph0;}  
-       if (ph0 > PI2) {       ph0=ph0 - PI2;}
+       if (xL3[0] < 0 && yyp > 0 ) {ph0=kPI2/2 - ph0;}  
+       if (xL3[0] < 0 && yyp < 0 ) {ph0=kPI2/2 + ph0;} 
+       if (xL3[0] > 0 && yyp < 0 ) {ph0=kPI2 - ph0;}  
+       if (ph0 > kPI2) {       ph0=ph0 - kPI2;}
        if (kcphi==777) {
         printf("xL3[0] %e, xL3[1] %e, xL3[2] %e, yyp %e, r0 %e, ph0 %e\n",xL3[0],xL3[1],xL3[2],yyp,r0,ph0);
        }  
@@ -370,7 +376,7 @@ if ((kfZbg/100<xL3[2] && xL3[2]<=zCmin && r0<=rPmax) || ((zCmin<xL3[2] && xL3[2]
 
 //_______________________________________________________________________
 Int_t AliMagFDM::FZ(Double_t temp, Float_t *Ar, 
-                    Float_t delu, Int_t ik,Int_t nk)
+                    Float_t delu, Int_t ik,Int_t nk) const
 {
   //
   // Quest of a point position at x,y,z (Cartensian) and R,Phi,z (Polar) axises
index 755f81c3c3b6ffb237d5c7997717a67378014fad..1ed8223b5a48e26f1001b93330f10b9d2cd981a4 100644 (file)
@@ -20,7 +20,7 @@ public:
   virtual void ReadField(); 
   virtual void SetSolenoidField(Float_t field = 2.) {fSolenoid = field;}
   virtual Float_t SolenoidField() const {return fSolenoid;}
-  Int_t FZ(Double_t u, Float_t *Ar, Float_t du, Int_t ki, Int_t nu);
+  Int_t FZ(Double_t u, Float_t *Ar, Float_t du, Int_t ki, Int_t nu) const;
   Double_t Ba(Int_t kai, Double_t za1, Double_t za2, Double_t al1, Double_t al2, Double_t al3, Int_t ka, Int_t ma);
   Double_t Bb(Double_t z1, Double_t z2, Double_t y1, Double_t y2, Double_t x1, Double_t x2, Int_t kvr, Int_t k, Int_t l, Int_t m); 
 
index eb905098554ce0edf9a717ea96b52e71cea82b5c..d9cb6fc51860f3a5ca6e8531dcc49bb71a4166b9 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <TFile.h>
 #include <TSystem.h>
+#include <TVector.h>
 
 #include "AliFieldMap.h"
 #include "AliMagFMaps.h"
index 61308c8e844c1f1d828f92a86be938429c0eead4..b7936f34c455fe1874488e6e633d16941f943ccb 100644 (file)
@@ -18,8 +18,8 @@
 ////////////////////////////////////////////////////////////////////////
 //
 // AliMergeCombi.cxx
-//
-// returns combinations of input event numbers
+// class to
+// return combinations of input event numbers
 //
 ////////////////////////////////////////////////////////////////////////
 
@@ -58,6 +58,9 @@ AliMergeCombi::~AliMergeCombi()
 //_______________________________________________________________________
 Bool_t AliMergeCombi::Combination(Int_t /* evNumber */ [], Int_t delta[])
 {
+  //
+  // Combination method
+  //
   delta[0] = 1;
   for (Int_t i=1; i<fDim; i++) {
     if (fCounter%fSperb == 0) {
index 137ce851005ee5986c1ed901aad0f6324c1a1acc..c9980a55d8fbe53d5483d1b27acc792354103139 100644 (file)
 ////////////////////////////////////////////////////////////////////////
 
 // --- ROOT system ---
-#include "TNamed.h"
-#include "TObjString.h"
-#include "TArrayI.h"
-#include "TClonesArray.h"
+
+#include <TNamed.h>
 
 // --- AliRoot header files ---
 
index d616526ec29b56973413a731850faa6cdc50d921..705084d411ba21a51d23e11d327ec10fd28df00e 100644 (file)
@@ -33,7 +33,8 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 #include <TNode.h>
-#include "TSystem.h"
+#include <TObjArray.h>
+#include <TSystem.h>
 
 #include "AliModule.h"
 #include "AliRun.h"
@@ -173,7 +174,7 @@ void AliModule::Disable()
 }
 
 //_______________________________________________________________________
-Int_t AliModule::DistancetoPrimitive(Int_t, Int_t)
+Int_t AliModule::DistancetoPrimitive(Int_t, Int_t) const
 {
   //
   // Return distance from mouse pointer to object
@@ -225,7 +226,7 @@ void AliModule::AliMaterial(Int_t imat, const char* name, Float_t a,
 //_______________________________________________________________________
 void AliModule::AliGetMaterial(Int_t imat, char* name, Float_t &a, 
                                Float_t &z, Float_t &dens, Float_t &radl,
-                               Float_t &absl)
+                               Float_t &absl) const
 {
   //
   // Store the parameters for a material
index 2829ca884978650c520e982045022fe7a8913bbb..16c6305f0cf3a981c66d3525ae894368af5d7a73 100644 (file)
@@ -52,7 +52,7 @@ public:
                           Float_t absl, Float_t *buf=0, Int_t nwbuf=0) const;
   virtual void AliGetMaterial(Int_t imat, char* name, Float_t &a, 
                                Float_t &z, Float_t &dens, Float_t &radl,
-                               Float_t &absl);
+                               Float_t &absl) const;
   virtual void AliMixture(Int_t imat, const char *name, Float_t *a,
                          Float_t *z, Float_t dens, Int_t nlmat,
                          Float_t *wmat) const;
@@ -83,7 +83,7 @@ public:
   virtual void        CreateGeometry() {}
   virtual void        CreateMaterials() {}
   virtual void        Disable();
-  virtual Int_t       DistancetoPrimitive(Int_t px, Int_t py);
+  virtual Int_t       DistancetoPrimitive(Int_t px, Int_t py) const;
   virtual void        Enable();
   virtual void        PreTrack(){}
   virtual void        PostTrack(){}
@@ -109,7 +109,7 @@ public:
   virtual Float_t     GetTimeGate() const {return 1.e10;}
   virtual void        StepManager() {}
   virtual void        DisableStepManager() {fEnable = kFALSE;}
-  virtual Bool_t      StepManagerIsEnabled() {return fEnable;}
+  virtual Bool_t      StepManagerIsEnabled() const {return fEnable;}
   virtual void        SetBufferSize(Int_t) {}  
   virtual Float_t     ZMin() const;
   virtual Float_t     ZMax() const;
index a395d3accc3787f530691043aa134e67ea50a1b0..b4cbd84f23d9e5f724c84cdca191bd784ef5693e 100644 (file)
@@ -5,7 +5,6 @@
 
 /* $Id$ */
 
-#include "TPDGCode.h"
 #include "TObject.h"
 
 class AliPDG : public TObject {
index 18e9a927f6efcc5cc3c0adf31d275ed523a59f7a..f877b4d8eed1968177e3531d02a66816ccbc8305 100644 (file)
@@ -116,7 +116,7 @@ Int_t AliPoints::DistancetoPrimitive(Int_t px, Int_t py)
 }
 
 //_______________________________________________________________________
-void AliPoints::DumpParticle()
+void AliPoints::DumpParticle() const
 {
   //
   //   Dump particle corresponding to this point
index 69f1b0bd3799d812e393434ec116aa6749fd1d98..74e883fd75fdcbac7241655ffa4c65df20f3f5bd 100644 (file)
@@ -22,7 +22,7 @@ public:
   TParticle            *GetParticle() const;
   virtual const Text_t *GetName() const;
   virtual void          InspectParticle(); // *MENU*
-  virtual void          DumpParticle(); // *MENU*
+  virtual void          DumpParticle() const; // *MENU*
   virtual Text_t       *GetObjectInfo(Int_t px, Int_t py) const;
   AliPoints &           operator=(const AliPoints &pts)
     {pts.Copy(*this); return (*this);}
index 7dccd41ed2bbf6fba71261112e22ef80d9b6f5ea..04237891a5d7daa83c1a917d0c4c7cb9517bb3c1 100644 (file)
@@ -17,6 +17,7 @@
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
+//   Wrapper for the root random number generator                            //
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
index 75ad8a0713f823d8fd567a10100441e33cbc70d7..04d98780568bada43bfe1a5fd93b09ec10f40f49 100644 (file)
@@ -19,7 +19,7 @@ class AliRndm
 {
 public:
   AliRndm();
-  AliRndm(const AliRndm &);
+  AliRndm(const AliRndm &rnd);
   virtual ~AliRndm() {fRandom=sRandom=0;}
   AliRndm & operator=(const AliRndm& rn) 
     {rn.Copy(*this); return (*this);}
index 7bbf4fd2682ef8b4b289c1025a2555e7a95d17c2..093bf1ac985ad36a621cf1038ee2c3e1f66cd809 100644 (file)
@@ -51,9 +51,7 @@
 #include "TFile.h"
 #include "TFolder.h"
 #include "TGeometry.h"
-#include "TKey.h"
 #include "TNode.h"
-#include "TObjectTable.h"
 #include "TParticle.h"
 #include "TRandom3.h"
 #include "TROOT.h"
 #include "AliConfig.h"
 #include "AliDetector.h"
 #include "AliDisplay.h"
-#include "AliGenEventHeader.h"
 #include "AliGenerator.h"
 #include "AliHeader.h"
-#include "AliHit.h"
 #include "AliLego.h"
 #include "AliLegoGenerator.h"
 #include "AliMCQA.h"
@@ -412,7 +408,7 @@ void AliRun::CleanDetectors()
 }
 
 //_______________________________________________________________________
-Int_t AliRun::DistancetoPrimitive(Int_t, Int_t)
+Int_t AliRun::DistancetoPrimitive(Int_t, Int_t) const
 {
   //
   // Return the distance from the mouse to the AliRun object
@@ -1691,14 +1687,17 @@ void AliRun::BeginPrimary()
 //_______________________________________________________________________
 void AliRun::PreTrack()
 {
-     TObjArray &dets = *fModules;
-     AliModule *module;
-
-     for(Int_t i=0; i<=fNdets; i++)
-       if((module = dynamic_cast<AliModule*>(dets[i])))
-        module->PreTrack();
-
-     fMCQA->PreTrack();
+  //
+  // Method called before each track
+  //
+  TObjArray &dets = *fModules;
+  AliModule *module;
+  
+  for(Int_t i=0; i<=fNdets; i++)
+    if((module = dynamic_cast<AliModule*>(dets[i])))
+      module->PreTrack();
+  
+  fMCQA->PreTrack();
 }
 
 //_______________________________________________________________________
@@ -1732,12 +1731,15 @@ void AliRun::Stepping()
 //_______________________________________________________________________
 void AliRun::PostTrack()
 {
-     TObjArray &dets = *fModules;
-     AliModule *module;
-
-     for(Int_t i=0; i<=fNdets; i++)
-       if((module = dynamic_cast<AliModule*>(dets[i])))
-        module->PostTrack();
+  //
+  // Called after a track has been trasported
+  //
+  TObjArray &dets = *fModules;
+  AliModule *module;
+  
+  for(Int_t i=0; i<=fNdets; i++)
+    if((module = dynamic_cast<AliModule*>(dets[i])))
+      module->PostTrack();
 }
 
 //_______________________________________________________________________
@@ -1820,18 +1822,22 @@ void AliRun::FinishEvent()
 //_______________________________________________________________________
 void AliRun::Field(const Double_t* x, Double_t *b) const
 {
-   Float_t xfloat[3];
-   for (Int_t i=0; i<3; i++) xfloat[i] = x[i]; 
-
-   if (Field()) {
-         Float_t bfloat[3];
-         Field()->Field(xfloat,bfloat);
-         for (Int_t j=0; j<3; j++) b[j] = bfloat[j]; 
-   } 
-   else {
-         printf("No mag field defined!\n");
-         b[0]=b[1]=b[2]=0.;
-   }
+  //
+  // Returns the magnetic field at point x[3]
+  // Units are kGauss
+  //
+  Float_t xfloat[3];
+  for (Int_t i=0; i<3; i++) xfloat[i] = x[i]; 
+  
+  if (Field()) {
+    Float_t bfloat[3];
+    Field()->Field(xfloat,bfloat);
+    for (Int_t j=0; j<3; j++) b[j] = bfloat[j]; 
+  } 
+  else {
+    printf("No mag field defined!\n");
+    b[0]=b[1]=b[2]=0.;
+  }
 
 }      
 
index 5f5a96a1f9b663c0ffd6604a1ae70266d617e27f..ec389affca3a56fdbc0f9edb090ecd82447e85c5 100644 (file)
@@ -5,13 +5,13 @@
 
 /* $Id$ */
 
-#include <TClonesArray.h>
 #include <TArrayF.h>
 #include <TArrayI.h>
 #include <TMCProcess.h>
 #include <TStopwatch.h>
 #include <TVirtualMC.h>
 #include <TVirtualMCApplication.h>
+
 class TBranch;
 class TBrowser;
 class TDatabasePDG;
@@ -35,7 +35,6 @@ class AliMagF;
 class AliModule;
 class AliStack;
 
-
 enum {kKeepBit=1, kDaughtersBit=2, kDoneBit=4};
 
 
@@ -60,7 +59,7 @@ public:
    TObjArray     *Modules() const {return fModules;}
    Int_t          CurrentTrack() const;
    AliDisplay    *Display() { return fDisplay;}
-   virtual  Int_t DistancetoPrimitive(Int_t px, Int_t py);
+   virtual  Int_t DistancetoPrimitive(Int_t px, Int_t py) const;
    virtual  void  DumpPart (Int_t i) const;
    virtual  void  DumpPStack () const;
    virtual AliMagF *Field() const {return fField;}
index e62af6970880b9243c3d0e0d45d798bf95353a33..88903a72cff353c96fa53a6b29fa9039ca2adcde 100644 (file)
 
 #include "TFile.h"
 #include "TList.h"
-#include "TParticle.h"
 #include "TTree.h"
 
 // AliROOT includes
 
 #include "AliDigitizer.h"
-#include "AliHeader.h"
 #include "AliMergeCombi.h"
 #include "AliRun.h"
 #include "AliRunDigitizer.h"
@@ -255,6 +253,9 @@ void AliRunDigitizer::AddDigitizer(AliDigitizer *digitizer)
 //_______________________________________________________________________
 void AliRunDigitizer::SetInputStream(Int_t i, const char *inputFile)
 {
+  //
+  // Sets the name of the input file
+  //
   if (i > fInputStreams->GetLast()) {
     Error("SetInputStream","Input stream number too high");
     return;
@@ -362,8 +363,8 @@ Bool_t AliRunDigitizer::InitGlobal()
 
 //_______________________________________________________________________
 void AliRunDigitizer::SetOutputFile(TString fn)
-// the output will be to separate file, not to the signal file
 {
+  // the output will be to separate file, not to the signal file
   fOutputFileName = fn;
   (static_cast<AliStream*>(fInputStreams->At(0)))->ChangeMode("READ");
   InitOutputGlobal();
index e4e562c9fbee36a9abed8cd2710d2203a4bbb445..a36132214295b2af4640082ebd5d7603ba5ce6a6 100644 (file)
@@ -27,7 +27,7 @@ class TTree;
 class AliDigitizer;
 class AliMergeCombi;
 
-const Int_t kMaxStreamsToMerge = 4;
+static const Int_t kMaxStreamsToMerge = 4;
 
 class AliRunDigitizer: public TTask {
 
@@ -47,7 +47,7 @@ public:
   void      SetFirstOutputEventNr(Int_t i) {fEvent = i;}
   void      SetNrOfEventsToWrite(Int_t i) {fNrOfEventsToWrite = i;}
   void      SetCopyTreesFromInput(Int_t i) {fCopyTreesFromInput = i;}
-  Int_t     GetCopyTreesFromInput() {return fCopyTreesFromInput;}
+  Int_t     GetCopyTreesFromInput() const {return fCopyTreesFromInput;}
   Int_t     GetOutputEventNr() const {return fEvent;}
   void      SetCombinationFileName(TString fn) {fCombinationFileName = fn;} 
   TString   GetCombinationFileName() const {return fCombinationFileName;}
index 903278b0c3686b6f2d8605c7fafdaa1fdddb2e00..fc2f419064a4eafaf000f12b19e734f7172ed72c 100644 (file)
@@ -6,9 +6,6 @@
 /* $Id$ */
 
 #include <TArrayI.h>
-#include <TMCProcess.h>
-#include <TObject.h>
-#include <TStopwatch.h>
 #include <TVirtualMCStack.h>
 
 class AliHeader;
index ff3f9b289ad6d8dcd66946227d93807e984624c9..113fb1c1e2b20db1a628a83461dac4acaf684102 100644 (file)
@@ -133,10 +133,10 @@ Bool_t AliStream::NextEventInStream(Int_t &serialNr)
 
 //_______________________________________________________________________
 void AliStream::ChangeMode(Option_t* option)
-// set the mode to READ or UPDATE, reopen file with the new mode
-// only change from UPDATE to READ have sense in the current scheme,
-// other changes are possible but not usefull
 {
+  // set the mode to READ or UPDATE, reopen file with the new mode
+  // only change from UPDATE to READ have sense in the current scheme,
+  // other changes are possible but not usefull
   fMode = option;
   if (fCurrentFile) {
     fCurrentFile->Close();
@@ -148,6 +148,9 @@ void AliStream::ChangeMode(Option_t* option)
 //_______________________________________________________________________
 Bool_t AliStream::OpenNextFile()
 {
+  //
+  // Open the next file in the series
+  //
   if (++fCurrentFileIndex > fFileNames->GetLast()) {
     cerr<<"No more files in the stream"<<endl;
     return kFALSE;
@@ -186,6 +189,9 @@ Bool_t AliStream::OpenNextFile()
 //_______________________________________________________________________
 Bool_t AliStream::ImportgAlice()
 {
+  //
+  // Import AliRun object pointed from gAlice
+  //
   if (fFileNames->GetLast() < 0) return kFALSE;
   if (!fCurrentFile) {
     if (!OpenNextFile()) return kFALSE;
@@ -197,10 +203,10 @@ Bool_t AliStream::ImportgAlice()
 
 //_______________________________________________________________________
 TString AliStream::GetFileName(const Int_t order) const
-// returns name of the order-th file
-// returns empty string if such file does not exist
-// first file in the input stream is 0
 {
+  // returns name of the order-th file
+  // returns empty string if such file does not exist
+  // first file in the input stream is 0
   TString fileName("");
   if (order > fFileNames->GetLast()) return fileName;
   TObjString *fileNameStored = dynamic_cast<TObjString*>(fFileNames->At(order));
index 3969cf62c2778d6134a157659e464270154b23f3..215c7b54b4d32edc0b87f6f32c57aa969373dba5 100644 (file)
 
 // --- ROOT system ---
 #include "TNamed.h"
+#include "TObjArray.h"
 #include "TString.h"
 
 class TFile;
-class TObjArray;
 
 // --- AliRoot header files ---
 
@@ -27,7 +27,7 @@ class AliStream: public TNamed {
 public:
   AliStream();
   AliStream(Option_t *option);
-  AliStream(const AliStream&);
+  AliStream(const AliStream& str);
   AliStream & operator=(const AliStream& str) 
     {str.Copy(*this); return (*this);}
   virtual ~AliStream();
@@ -43,9 +43,9 @@ public:
 private:  
   void Copy(AliStream& str) const;
 
-  Int_t fLastEventSerialNr;
-  Int_t fLastEventNr;
-  Int_t fCurrentFileIndex;
+  Int_t fLastEventSerialNr;     // Serial number of the last event
+  Int_t fLastEventNr;           // Number of the last event
+  Int_t fCurrentFileIndex;      // Index of the current file
   Int_t fEvents;                //! nr. of events in the current file
   TString fMode;                // = 0 for READONLY, = 1 for READWRITE
   TFile *fCurrentFile;          //! pointer to current open file
index c5b8a8cf52301953be2bcd043a542f3d02db324d..886ff0f5ac38c735c08afe444ef1e4face090fe1 100644 (file)
 
 #include <Riostream.h>
 
-#include "TTree.h"
-#include "TROOT.h"
-
 #include "AliTrackMap.h"
 
-#include "AliRun.h"
-
 ClassImp(AliTrackMap)
 
 //_______________________________________________________________________
index fe360f3ca433bcc239a7a565ff3d02b0e7514332..c765d2a71a6b67aa6c0262e4890ffd46cc03ff02 100644 (file)
@@ -28,9 +28,7 @@
 #include <Riostream.h>
 
 #include "TTree.h"
-#include "TROOT.h"
 #include "TFile.h"
-#include "TBenchmark.h"
 #include "TStopwatch.h"
 
 #include "AliDetector.h"
@@ -90,7 +88,7 @@ void AliTrackMapper::CreateMap(Int_t nEvents, Int_t firstEventNr,
 }
 
 //_______________________________________________________________________
-Int_t  AliTrackMapper::CreateMap(Int_t eventNr, TFile* fileMap) 
+Int_t  AliTrackMapper::CreateMap(Int_t eventNr, TFile* fileMap) const
 {
   //
   // create an AliTrackMap for a given event
index 1d5fb723dd61310fbfc527ccc22b76a6411b807a..a5459d14dadd2f44d855551fc35943e3c46858da 100644 (file)
@@ -19,8 +19,7 @@
 
 // --- ROOT system ---
 
-#include "TString.h"
-#include "TFile.h"
+class TFile;
 
 // --- AliRoot header files ---
 
@@ -34,7 +33,7 @@ public:
   void CreateMap(Int_t nEvents, Int_t firstEventNr,
            const char* fnMap = "trackMap.root",
            const char* fnHits   ="rfio:galice.root");
-  Int_t CreateMap(Int_t eventNr, TFile* fileMap);
+  Int_t CreateMap(Int_t eventNr, TFile* fileMap) const;
   void SetDebug(Int_t level) {fDEBUG = level;}
   void CheckTrackMap(Int_t eventNr, const char* fnMap = "trackMap.root");
   AliTrackMap* LoadTrackMap(Int_t eventNr, const char* fnMap, TFile* &fileMap);
@@ -42,7 +41,7 @@ public:
     
 private:
 
-  Int_t fDEBUG;
+  Int_t fDEBUG;           // Debug flag
   
   ClassDef(AliTrackMapper,0)  // methods to create AliTrackMap
 };
index 979b80d1cff25edd91c31a9a44fac0c3d5f34b1c..2c209bece661160f37d35b7c72fd4ed050b12e8c 100644 (file)
 
 /* $Header$ */
 
+//----------------------------------------------------------------------
+//  Class containing the kinematic information of tracks at various
+//  points in the simulation to check the reconstruction
+//  Origin: M.Ivanov
+//----------------------------------------------------------------------
+
 #include "AliTrackReference.h"
-#include "TParticle.h"
-#include "AliRun.h"
 
 ClassImp(AliTrackReference)
 
index 731cf9e712c03fcbd5553a8c5cb5a8a476ce21fa..02f93b2d633f57bf58cbc7b95036ce2ee2186272 100644 (file)
@@ -14,7 +14,7 @@ public:
   virtual Int_t GetTrack() const {return fTrack;}
   virtual void SetTrack(Int_t track) {fTrack=track;}
   virtual void SetLength(Float_t length){fLength=length;}
-  virtual Float_t GetLength(){return fLength;}
+  virtual Float_t GetLength() const {return fLength;}
   virtual Float_t X() const {return fX;}
   virtual Float_t Y() const {return fY;}
   virtual Float_t Z() const {return fZ;}
index 1a66a3c5112fe64a1b29ef6b60bb51e8d386eb52..d53c66c21afa880e967e6594d865645268831661 100644 (file)
 
 //-------------------------------------------------------------------------
 //               Implementation of the AliTracker class
-//
-//          Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
+//                             Origin
+//               Iouri Belikov, CERN, Jouri.Belikov@cern.ch
 //-------------------------------------------------------------------------
+
 #include <TMath.h>
 
 #include "AliTracker.h"
index 0b5f2637413d36b3af472af29a3f91b3f60a3edd..479df5748ac50d0fade3c68783f5c9e80fe7c276 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2002/10/23 07:17:33  alibrary
+Introducing Riostream.h
+
 Revision 1.6  2002/01/21 17:15:23  kowal2
 Better protection.
 
@@ -418,9 +421,9 @@ TClonesArray *  AliSimDigits::GenerTPCClonesArray(TClonesArray * arr)
        dig.fSignal= amp;
        dig.fPadRow =fSegmentID;
        dig.fSector =fSegmentID;
-       dig.fTracks[0]= GetTrackID(row,col,0);
-       dig.fTracks[1]= GetTrackID(row,col,1);
-       dig.fTracks[2]= GetTrackID(row,col,2);
+       dig.GetTracks()[0]= GetTrackID(row,col,0);
+       dig.GetTracks()[1]= GetTrackID(row,col,1);
+       dig.GetTracks()[2]= GetTrackID(row,col,2);
        TClonesArray &ldigits = *digits;
        new(ldigits[index++]) AliTPCdigit(dig);
       }
index 94e6eacba45a23a7d032e042c4f9450a4137718a..ceaff3ddea896be0aaf539b54da1dc25e003a107 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.44  2002/11/21 22:43:32  alibrary
+Removing AliMC and AliMCProcess
+
 Revision 1.43  2002/10/14 14:57:43  hristov
 Merging the VirtualMC branch to the main development branch (HEAD)
 
@@ -148,21 +151,21 @@ Introduction of the Copyright and cvs Log
 //                                                                           //
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
+
 #include <stdlib.h>
 
 #include <TMath.h>
+#include <TPDGCode.h>
 
-#include "AliTPCv2.h"
-#include "AliTPCDigitsArray.h"
-#include "AliRun.h"
 #include "AliConst.h"
-#include "AliPDG.h"
+#include "AliRun.h"
+#include "AliTPCDigitsArray.h"
 #include "AliTPCParam.h"
 #include "AliTPCParamSR.h"
 #include "AliTPCTrackHitsV2.h"
+#include "AliTPCv2.h"
 #include "TLorentzVector.h"
 
-
 ClassImp(AliTPCv2)
  
 //_____________________________________________________________________________
index 74971618ad8faf840378f9bbda593f363be887b0..45f09dec50dd8f0171b7d1778b608bf513306bd5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.31  2002/11/21 22:43:33  alibrary
+Removing AliMC and AliMCProcess
+
 Revision 1.30  2002/10/14 14:57:43  hristov
 Merging the VirtualMC branch to the main development branch (HEAD)
 
@@ -134,17 +137,19 @@ Introduction of the Copyright and cvs Log
 ///////////////////////////////////////////////////////////////////////////////
 
 #include <stdlib.h>
+
+#include <TLorentzVector.h>
+#include <TPDGCode.h>
+#include <TInterpreter.h>
 #include <TMath.h>
-#include "AliTPCv3.h"
-#include "AliRun.h"
+
 #include "AliConst.h"
+#include "AliRun.h"
 #include "AliTPCDigitsArray.h"
 #include "AliTPCParam.h"
 #include "AliTPCParamSR.h"
-#include "AliPDG.h"
-#include <TInterpreter.h>
-#include "TLorentzVector.h"
 #include "AliTPCTrackHitsV2.h"
+#include "AliTPCv3.h"
 
 ClassImp(AliTPCv3)
 //_____________________________________________________________________________
index 96b9f0574dc965a25adc0a4483bd328241f5772d..b797c95ac141d8e3c347c54ee231d03439434389 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.12  2002/11/21 20:05:22  alibrary
+Removing AliMC and AliMCProcess
+
 Revision 1.11  2001/11/11 17:27:50  hristov
 Minor corrections
 
@@ -53,15 +56,15 @@ Introduction of the Copyright and cvs Log
 */
 #include <assert.h>
 
-#include <TRandom.h>
+#include <TDatabasePDG.h>
 #include <TLorentzVector.h>
+#include <TMCProcess.h>
+#include <TPDGCode.h>
+#include <TRandom.h>
 #include <TVector3.h>
-#include "TDatabasePDG.h"
-#include "TMCProcess.h"
 
-#include "AliGenZDC.h"
 #include "AliConst.h"
-#include "AliPDG.h"
+#include "AliGenZDC.h"
 #include "AliRun.h"
  
 ClassImp(AliGenZDC)