Removal of useless dependecies via forward declarations
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Oct 2000 21:28:20 +0000 (21:28 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Oct 2000 21:28:20 +0000 (21:28 +0000)
131 files changed:
CASTOR/AliCASTOR.cxx
EVGEN/AliGenBox.cxx
EVGEN/AliGenDoubleScan.cxx
EVGEN/AliGenExtFile.cxx
EVGEN/AliGenHIJINGpara.cxx
EVGEN/AliGenHijing.cxx
EVGEN/AliGenParam.cxx
EVGEN/AliGenScan.cxx
FMD/AliFMD.cxx
FMD/AliFMDv0.cxx
FMD/AliFMDv1.cxx
ITS/AliITS.cxx
ITS/AliITS.h
ITS/AliITSmodule.h
ITS/AliITSsimulationSDD.cxx
ITS/AliITSv1.cxx
ITS/AliITSv3.cxx
ITS/AliITSv5.cxx
MUON/AliMUON.cxx
MUON/AliMUON.h
MUON/AliMUONDisplay.cxx
MUON/AliMUONEventReconstructor.cxx
MUON/AliMUONHitForRec.cxx
MUON/AliMUONHitMapA1.cxx
MUON/AliMUONHitMapA1.h
MUON/AliMUONPoints.cxx
MUON/AliMUONSegmentationV0.h
MUON/AliMUONSegmentationV01.cxx
MUON/AliMUONSegmentationV01.h
MUON/AliMUONSegmentationV1.h
MUON/AliMUONTrackParam.cxx
MUON/AliMUONTrackReconstructor.cxx
MUON/AliMUONTriggerLut.cxx
MUON/AliMUONv0.cxx
MUON/AliMUONv1.cxx
MUON/MUONLinkDef.h
MUON/Makefile
PHOS/AliPHOS.cxx
PHOS/AliPHOSGeometry.cxx
PHOS/AliPHOSGeometry.h
PHOS/AliPHOSIndexToObject.cxx
PHOS/AliPHOSv0.cxx
PHOS/AliPHOSv1.cxx
PHOS/AliPHOSv3.cxx
PHOS/AliPHOSv4.cxx
PHOS/Makefile
PMD/AliPMD.cxx
PMD/AliPMDv0.cxx
PMD/AliPMDv1.cxx
PMD/AliPMDv2.cxx
RICH/AliRICH.cxx
RICH/AliRICHClusterFinder.cxx
RICH/AliRICHDetect.cxx
RICH/AliRICHDisplay.cxx
RICH/AliRICHPatRec.cxx
RICH/AliRICHPoints.cxx
RICH/AliRICHResponseV0.cxx
RICH/RICHLinkDef.h
START/AliSTART.cxx
START/AliSTARTv0.cxx
START/AliSTARTv1.cxx
START/AliSTARTvertex.cxx
STEER/AliDetector.cxx
STEER/AliDetector.h
STEER/AliDigitNew.h
STEER/AliDisplay.cxx
STEER/AliDisplay.h
STEER/AliGenerator.cxx
STEER/AliGenerator.h
STEER/AliGeometry.h
STEER/AliHeader.cxx
STEER/AliHeader.h
STEER/AliHit.h
STEER/AliHitMap.h
STEER/AliLego.cxx
STEER/AliLego.h
STEER/AliMC.h
STEER/AliMagF.cxx
STEER/AliMagF.h
STEER/AliMagFCM.h
STEER/AliMagFDM.cxx
STEER/AliModule.cxx
STEER/AliModule.h
STEER/AliPoints.cxx
STEER/AliPoints.h
STEER/AliRecPoint.cxx
STEER/AliRecPoint.h
STEER/AliRun.cxx
STEER/AliRun.h
STEER/AliSegmentation.h
STEER/Makefile
STRUCT/AliABSO.cxx
STRUCT/AliABSOv0.cxx
STRUCT/AliBODY.cxx
STRUCT/AliDIPOv1.cxx
STRUCT/AliDIPOv2.cxx
STRUCT/AliFRAMEv0.cxx
STRUCT/AliFRAMEv1.cxx
STRUCT/AliHALL.cxx
STRUCT/AliMAG.cxx
STRUCT/AliPIPEv0.cxx
STRUCT/AliPIPEv1.cxx
STRUCT/AliPIPEv3.cxx
STRUCT/AliSHIL.cxx
STRUCT/AliSHILv0.cxx
TGeant3/AliGeant3.cxx
TGeant3/TGeant3.cxx
TOF/AliTOF.cxx
TOF/AliTOFD.cxx
TOF/AliTOFv0.cxx
TOF/AliTOFv1.cxx
TOF/AliTOFv2.cxx
TOF/AliTOFv3.cxx
TOF/AliTOFv4.cxx
TPC/AliTPC.cxx
TPC/AliTPCv2.cxx
TPC/AliTPCv3.cxx
TRD/AliTRD.cxx
TRD/AliTRDclusterizer.cxx
TRD/AliTRDclusterizerV0.cxx
TRD/AliTRDclusterizerV1.cxx
TRD/AliTRDdigitizer.cxx
TRD/AliTRDdigitsManager.cxx
TRD/AliTRDgeometry.cxx
TRD/AliTRDgeometry.h
TRD/AliTRDgeometryFull.cxx
TRD/AliTRDgeometryHole.cxx
TRD/AliTRDsegmentArray.cxx
ZDC/AliGenZDC.cxx
ZDC/AliZDC.cxx
ZDC/AliZDCv1.cxx

index 780e6e899e51dc423c50c80bf1f3a809202331fe..5d5ba7fe596f1a36b7603938c7b3883711a62412 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/01/19 17:16:41  fca
+Introducing a list of lists of hits -- more hits allowed for detector now
+
 Revision 1.6  1999/09/29 09:24:07  fca
 Introduction of the Copyright and cvs Log
 
@@ -45,6 +48,8 @@ Introduction of the Copyright and cvs Log
 #include "AliCASTOR.h"
 #include <TNode.h>
 #include <TPGON.h>
+#include "TGeometry.h"
+#include "AliMagF.h"
 #include "AliRun.h"
 #include "AliMC.h"
 #include "AliConst.h"
index 1613e15b838d62db0ec082dc94a44f5315be445b..10fee115dfb2e05dad044c32d7e44fdfbbef37bd 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  2000/07/11 18:24:55  fca
+Coding convention corrections + few minor bug fixes
+
 Revision 1.1  2000/06/09 20:22:58  morsch
 Same class as previously in AliSimpleGen.cxx
 All coding rule violations except RS3 corrected (AM)
@@ -60,6 +63,7 @@ Introduction of the Copyright and cvs Log
 #include "AliRun.h"
 #include "AliConst.h"
 #include "AliPDG.h"
+#include "AliMC.h"
 
 ClassImp(AliGenBox)
 
index c554d72263b8cf5f281a23cc5c59b2adf1d1ba29..3224846770d12dd094a744d38eb53fc4fb9f695b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  2000/06/09 20:37:51  morsch
+All coding rule violations except RS3 corrected
+
 Revision 1.1  2000/02/23 16:25:14  morsch
 First commit of this file
 
@@ -22,6 +25,7 @@ First commit of this file
 
 #include "AliGenDoubleScan.h"
 #include "AliRun.h"
+#include "AliMC.h"
 
  ClassImp(AliGenDoubleScan)
     
index 610664f69180360402293840ac46dfa51208898a..5854e886d42080664cf7d5adcb4ac9056606e73b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.10  2000/07/11 18:24:55  fca
+Coding convention corrections + few minor bug fixes
+
 Revision 1.9  2000/06/14 15:20:09  morsch
 Include clean-up (IH)
 
@@ -39,6 +42,7 @@ Introduction of the Copyright and cvs Log
 #include "AliRun.h"
 
 #include <TDirectory.h>
+#include <TDatabasePDG.h>
 #include <TFile.h>
 #include <stdlib.h>
 
index 3efb3a7627d621fb2b47ddeedd8d9af539d4dd02..c2a60c03247b89382e2a51ddc90ac002582f01ce 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  2000/07/11 18:24:55  fca
+Coding convention corrections + few minor bug fixes
+
 Revision 1.1  2000/06/09 20:20:30  morsch
 Same class as previously in AliSimpleGen.cxx
 All coding rule violations except RS3 corrected (AM)
@@ -42,6 +45,7 @@ All coding rule violations except RS3 corrected (AM)
 
 #include "AliGenHIJINGpara.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliConst.h"
 #include "AliPDG.h"
 
index 252f7da66d39879cf923128d53543d985930af09..3845f6d30ad21fde7eff44997b783bed32699718 100644 (file)
 
 /*
 $Log$
+Revision 1.6  2000/09/11 13:23:37  morsch
+Write last seed to file (fortran lun 50) and reed back from same lun using calls to
+luget_hijing and luset_hijing.
+
 Revision 1.5  2000/09/07 16:55:40  morsch
 fHijing->Initialize(); after change of parameters. (Dmitri Yurevitch Peressounko)
 
@@ -36,6 +40,7 @@ AliGenerator interface class to HIJING using THijing (test version)
 #include "AliGenHijing.h"
 #include "AliGenHijingEventHeader.h"
 #include "AliRun.h"
+#include "AliMC.h"
 
 #include <TArrayI.h>
 #include <TParticle.h>
index ed86d4d5c5e7597218c5f4ab5c8f4fbb56eba1f4..14639cab020eab5d2bb91c61eb84931519b0cd4f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.22  2000/09/12 14:14:55  morsch
+Call fDecayer->ForceDecay() at the beginning of Generate().
+
 Revision 1.21  2000/09/08 15:39:01  morsch
 Handle the case fForceDecay=all during the generation, i.e. select all secondaries.
 
@@ -59,6 +62,7 @@ Introduction of the Copyright and cvs Log
 #include "AliDecayerPythia.h"
 #include "AliGenMUONlib.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliPythia.h"
 #include <TParticle.h>
 #include <TParticlePDG.h>
index c3272cfe1ef698f3597006d3f909996d2fdcba4b..ca69cb926d278b5899055d9a217beb1dc14ac510 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  2000/06/09 20:37:20  morsch
+All coding rule violations except RS3 corrected
+
 Revision 1.4  1999/11/03 17:43:20  fca
 New version from G.Martinez & A.Morsch
 
@@ -25,6 +28,7 @@ Introduction of the Copyright and cvs Log
 
 #include "AliGenScan.h"
 #include "AliRun.h"
+#include "AliMC.h"
 
  ClassImp(AliGenScan)
     
index fbb5a8d529dd10cf3ec4a25fe31d0cec08b38e26..f655458a986d8961559aea328d69641ef8955491 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/01/19 17:16:47  fca
+Introducing a list of lists of hits -- more hits allowed for detector now
+
 Revision 1.6  1999/09/29 09:24:14  fca
 Introduction of the Copyright and cvs Log
 
@@ -44,6 +47,9 @@ Introduction of the Copyright and cvs Log
 
 #include <TTUBE.h>
 #include <TNode.h>
+#include <TGeometry.h>
+
+#include "AliMC.h"
 #include "AliRun.h"
 #include "AliFMD.h"
  
index a8f428f81563ccc23e7f804a7f31f0bc046c615a..f4580c2ce17fa58b9a203c2354deece09bad44c4 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  1999/09/29 09:24:14  fca
+Introduction of the Copyright and cvs Log
+
 */
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -39,6 +42,8 @@ $Log$
 #include "AliRun.h"
 #include "AliFMDv0.h"
 #include "AliMC.h"
+#include "AliMagF.h"
+
 #include "stdlib.h"
  
 ClassImp(AliFMDv0)
index d2dd9353c37eb4687e8efa5736570c4419d5c0ed..1990b26680014d2af17b6d19a51e3c324b5c6282 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/05/10 21:56:07  fca
+Avoid clashes with ITS and add supports
+
 Revision 1.7  1999/09/29 09:24:14  fca
 Introduction of the Copyright and cvs Log
 
@@ -42,6 +45,7 @@ Introduction of the Copyright and cvs Log
 #include "AliRun.h"
 #include "AliFMDv1.h"
 #include "AliMC.h"
+#include "AliMagF.h"
 #include "stdlib.h"
  
 ClassImp(AliFMDv1)
index 9169e5b128f3a46258c11ca543b95d073fc65d41..9841ae5f2dad231e01920fd7436d1220f93a6477 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.20  2000/10/02 16:31:39  barbera
+General code clean-up
+
 Revision 1.9.2.14  2000/10/02 15:43:51  barbera
 General code clean-up (e.g., printf -> cout)
 
@@ -125,6 +128,7 @@ the AliITS class.
 #include "AliITSmodule.h"
 #include "AliITSRecPoint.h"
 #include "AliITSRawCluster.h"
+#include "AliMC.h"
 
 const Int_t AliITS::fgkNTYPES=3;
 
index 2f2ef676535b085e6630ca8faadeb87da2de7d19..f2ec4a7ee9e5426c9c399acb8ccf89b97e767e90 100644 (file)
@@ -11,6 +11,7 @@
 
 
 #include "AliDetector.h"
+#include "TObjArray.h"
 
 class TObjArray;
 class TString;
index 4e14951805c2f0d75726eddb5ba8c9fa56166667..e65a776a6fbb2caa42639a449543a91e70538a20 100644 (file)
@@ -10,7 +10,7 @@
 
 class AliITS;
 class AliITShit;
-class TArrayI;
+#include "TArrayI.h"
 
 
 class AliITSmodule:public TObject{
index 2d702cb1cebf990bbf65f09f0715668756922c8e..282416070254fbf8e9d3e4b470472cf27946e9e5 100644 (file)
@@ -20,6 +20,8 @@
 #include <string.h>
 
 #include <TStopwatch.h>
+#include <TSystem.h>
+#include <TROOT.h>
 #include <TCanvas.h>
 #include <TF1.h>
 #include <TRandom.h>
index 27c52f873fca5b2af3ad75f74e7f08c5f31e586a..4aefeb46a1925288c19faae4901a4fe345838e8d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.19  2000/07/10 16:07:19  fca
+Release version of ITS code
+
 Revision 1.14.2.2  2000/05/19 10:09:21  nilsen
 fix for bug with HP and Sun unix + fix for event display in ITS-working branch
 
@@ -75,6 +78,7 @@ Introduction of the Copyright and cvs Log
 
 
 #include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
 
 #include "AliITShit.h"
index 345dcdac2728073a91c903abf92941c81cf12ff5..fe39aa8018cfe3b3cce35a36384259a9910dd07c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.17  2000/07/10 16:07:19  fca
+Release version of ITS code
+
 Revision 1.11.4.4  2000/05/19 10:09:51  nilsen
 fix for bug with HP and Sun unix + fix for event display in ITS-working branch
 
@@ -77,6 +80,7 @@ Introduction of the Copyright and cvs Log
 #include <TClonesArray.h>
 
 #include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
 
 #include "AliITShit.h"
index 810bf025a6b1de444282a8a2ac32a31d1a88dc81..a4b7ee7726444eebff87226bbd59ad508d14a3f7 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.23  2000/10/02 16:35:23  barbera
+Forward declarations added
+
 Revision 1.14.4.12  2000/10/02 16:04:03  barbera
 Forward declarations added
 
@@ -76,6 +79,7 @@ Introduction of the Copyright and cvs Log
 #include <TBRIK.h>
 
 #include "AliRun.h"
+#include "AliMC.h"
 #include "TSystem.h"
 #if ALIITSPRINTGEOM==1
 #include "../TGeant3/TGeant3.h"
index d07d1f94e66ece39772e8cb2929486fd6a7678cc..f51948f7b55eb564b5f29e9cee33a7ef83e1656c 100644 (file)
  **************************************************************************/
 /*
 $Log$
+Revision 1.30  2000/10/02 16:58:29  egangler
+Cleaning of the code :
+-> coding conventions
+-> void Streamers
+-> some useless includes removed or replaced by "class" statement
+
 Revision 1.29  2000/07/28 13:49:38  morsch
 SetAcceptance defines inner and outer chamber radii according to angular acceptance.
 Can be used for simple acceptance studies.
@@ -132,6 +138,7 @@ Log message added
 #include <TTUBE.h>
 #include <TBRIK.h>
 #include <TRotMatrix.h>
+#include <TGeometry.h>
 #include <TNode.h> 
 #include <TTree.h> 
 #include <TRandom.h> 
@@ -1019,8 +1026,8 @@ void AliMUON::Digitise(Int_t nev,Int_t bgrEvent,Option_t *option,Option_t *opt,T
 
                    if (mHit->fParticle == kMuonPlus 
                        || mHit->fParticle == kMuonMinus) {
-                       xhit[nch][nmuon[nch]]=mHit->fX;
-                       yhit[nch][nmuon[nch]]=mHit->fY;
+                       xhit[nch][nmuon[nch]]=mHit->X();
+                       yhit[nch][nmuon[nch]]=mHit->Y();
                        nmuon[nch]++;
                        if (nmuon[nch] >2) printf("nmuon %d\n",nmuon[nch]);
                    }
@@ -1138,8 +1145,8 @@ void AliMUON::Digitise(Int_t nev,Int_t bgrEvent,Option_t *option,Option_t *opt,T
                    iChamber = &(pMUON->Chamber(nch));
                    Int_t rmin = (Int_t)iChamber->RInner();
                    Int_t rmax = (Int_t)iChamber->ROuter();
-                    Float_t xbgr=mHit->fX;
-                   Float_t ybgr=mHit->fY;
+                    Float_t xbgr=mHit->X();
+                   Float_t ybgr=mHit->Y();
                    Bool_t cond=kFALSE;
                    
                    for (Int_t imuon =0; imuon < nmuon[nch]; imuon++) {
index 8c8b245334f31c2e314d19df9fda8aa2ff7a17ac..fcd45a6f4a2861123b5e0eb4c31b4116e55b78d6 100644 (file)
@@ -24,7 +24,7 @@ class AliMUONRawCluster;
 class AliMUONClusterFinderVS;
 class AliMUONReconstHit;
 class TVector;
-class TObjArray;
+#include "TObjArray.h"
 class TFile;
 class TTree;
 
index a560e2c71cf6a96a02afc10c3da8ddd177b381ef..bf69b800c4f7d8a2e2f6ffff80033e6c90dcee82 100644 (file)
 
 /*
 $Log$
+Revision 1.6  2000/07/03 11:54:57  morsch
+AliMUONSegmentation and AliMUONHitMap have been replaced by AliSegmentation and AliHitMap in STEER
+The methods GetPadIxy and GetPadXxy of AliMUONSegmentation have changed name to GetPadI and GetPadC.
+
 Revision 1.5  2000/06/28 15:16:35  morsch
 (1) Client code adapted to new method signatures in AliMUONSegmentation (see comments there)
 to allow development of slat-muon chamber simulation and reconstruction code in the MUON
@@ -119,6 +123,7 @@ it is now really the Z position of the chambers.
 #include <TVirtualX.h>
 #include <TMath.h>
 #include <TMatrix.h>
+#include <TGeometry.h>
 #include <X3DBuffer.h>
 #include <TMarker3DBox.h>
 
@@ -1123,11 +1128,11 @@ void AliMUONDisplay::LoadHits(Int_t chamber)
             points->SetMarkerColor(kRed);
             points->SetMarkerStyle(5);
             points->SetMarkerSize(1.);
-            points->SetParticle(mHit->fTrack);
+            points->SetParticle(mHit->Track());
             points->SetHitIndex(hit);
             points->SetTrackIndex(track);
             points->SetDigitIndex(-1);
-           points->SetPoint(0,mHit->fX,mHit->fY,zpos);
+           points->SetPoint(0,mHit->X(),mHit->Y(),zpos);
        }
        nhold+=nhits;
     }
index d687b063c65c989b8ae2f56150cecc0f81db5d7d..b087050b33d1a32bf98b3624f53ac36d94e94d4a 100644 (file)
 
 /*
 $Log$
+Revision 1.12  2000/10/02 16:58:29  egangler
+Cleaning of the code :
+-> coding conventions
+-> void Streamers
+-> some useless includes removed or replaced by "class" statement
+
 Revision 1.11  2000/09/22 09:16:33  hristov
 Casting needed on DEC
 
@@ -95,6 +101,7 @@ Addition of files for track reconstruction in C++
 
 #include <TRandom.h>
 #include <TFile.h>
+#include <TTree.h>
 
 #include "AliMUONEventReconstructor.h"
 #include "AliMUON.h"
@@ -105,6 +112,7 @@ Addition of files for track reconstruction in C++
 #include "AliMUONTrack.h"
 #include "AliMUONChamber.h"
 #include "AliMUONTrackHit.h"
+#include "AliMagF.h"
 #include "AliRun.h"
 #include "TParticle.h"
 
@@ -551,8 +559,8 @@ AliMUONHitForRec* AliMUONEventReconstructor::NewHitForRecFromGEANT(AliMUONHit* H
   // only if hit is efficient (keep track for checking ????)
   if (gRandom->Rndm() > fEfficiency) return NULL;
   // only if radius between RMin and RMax
-  bendCoor = Hit->fY;
-  nonBendCoor = Hit->fX;
+  bendCoor = Hit->Y();
+  nonBendCoor = Hit->X();
   radius = TMath::Sqrt((bendCoor * bendCoor) + (nonBendCoor * nonBendCoor));
   if ((radius < fRMin[chamber]) || (radius > fRMax[chamber])) return NULL;
   // new AliMUONHitForRec from GEANT hit and increment number of AliMUONHitForRec's
index d2abe2dabb075a01389f17d0b385fe51274cb1b8..cd421c68ee2d9d181b39671fb6610ece8047cb37 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  2000/06/25 13:06:39  hristov
+Inline functions moved from *.cxx to *.h files instead of forward declarations
+
 Revision 1.2  2000/06/15 07:58:48  morsch
 Code from MUON-dev joined
 
@@ -52,9 +55,9 @@ AliMUONHitForRec::AliMUONHitForRec(AliMUONHit* Ghit)
   // which are taken from the coordinates of the GEANT hit,
   // the track number (GEANT and not TH),
   // and the chamber number (0...).
-  fBendingCoor = Ghit->fY;
-  fNonBendingCoor = Ghit->fX;
-  fZ = Ghit->fZ;
+  fBendingCoor = Ghit->Y();
+  fNonBendingCoor = Ghit->X();
+  fZ = Ghit->Z();
   // fTrack = Ghit->fTrack; ?????????
   fChamberNumber = Ghit->fChamber - 1;
   // other fields will be updated in
index b1007ac4d6c9705cc64ac177896fdf71f062eced..8ab453c05a71e8c09cb9421b2d39d88193054a8d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2000/07/13 16:19:44  fca
+Mainly coding conventions + some small bug fixes
+
 Revision 1.3  2000/07/03 11:54:57  morsch
 AliMUONSegmentation and AliMUONHitMap have been replaced by AliSegmentation and AliHitMap in STEER
 The methods GetPadIxy and GetPadXxy of AliMUONSegmentation have changed name to GetPadI and GetPadC.
@@ -76,7 +79,7 @@ void AliMUONHitMapA1::Clear(const char *)
     memset(fHitMap,0,sizeof(int)*fMaxIndex);
 }
 
-Int_t AliMUONHitMapA1::CheckedIndex(Int_t ix, Int_t iy)
+Int_t AliMUONHitMapA1::CheckedIndex(Int_t ix, Int_t iy) const
 {
 // Return checked indices ix, iy
     Int_t index=2*fNpy*(ix+fNpx)+(iy+fNpy);
@@ -125,13 +128,13 @@ void AliMUONHitMapA1::FlagHit(Int_t ix, Int_t iy)
        -TMath::Abs(fHitMap[CheckedIndex(ix, iy)]);
 }
 
-Int_t AliMUONHitMapA1::GetHitIndex(Int_t ix, Int_t iy)
+Int_t AliMUONHitMapA1::GetHitIndex(Int_t ix, Int_t iy) const
 {
 // Get absolute value of contents of hit cell ix,iy
     return TMath::Abs(fHitMap[CheckedIndex(ix, iy)])-1;
 }
 
-TObject* AliMUONHitMapA1::GetHit(Int_t ix, Int_t iy)
+TObject* AliMUONHitMapA1::GetHit(Int_t ix, Int_t iy) const
 {
     // Get pointer to object at hit cell ix, iy
     // Force crash if index does not exist ! (Manu)
index 7840ac05d0b4ba46c12a4bdb4651d428ecd88a0b..bc3c50d418ac9d0b36b8de4f5fb99dda14f6b7e8 100644 (file)
@@ -29,9 +29,9 @@ public AliHitMap
     // Delete a single hit
     virtual  void  DeleteHit(Int_t ix, Int_t iy);
     // Get index of hit in the list of digits
-    virtual Int_t  GetHitIndex(Int_t ix, Int_t iy);
+    virtual Int_t  GetHitIndex(Int_t ix, Int_t iy) const;
     // Get pointer to digit
-    virtual TObject*  GetHit(Int_t ix, Int_t iy);
+    virtual TObject*  GetHit(Int_t ix, Int_t iy) const;
     // Flag a hit as used
     virtual  void  FlagHit(Int_t ix, Int_t iy);
     // Test hit status
@@ -41,7 +41,7 @@ public AliHitMap
     
  private:
     // Check index
-    Int_t CheckedIndex(Int_t ix, Int_t iy);
+    Int_t CheckedIndex(Int_t ix, Int_t iy) const;
  private:
     AliSegmentation *fSegmentation;       // Chamber segmentation
     Int_t fNpx;                           // Maximum number of pads in x
index fc9fd6c463a5ab50bae88ac5c2f3f35f6d043870..2a6a6ac090de7ec4dc04cb88d23755b2c40f386e 100644 (file)
  **************************************************************************/
 /*
 $Log$
+Revision 1.4  2000/07/03 11:54:57  morsch
+AliMUONSegmentation and AliMUONHitMap have been replaced by AliSegmentation and AliHitMap in STEER
+The methods GetPadIxy and GetPadXxy of AliMUONSegmentation have changed name to GetPadI and GetPadC.
+
 Revision 1.3  2000/06/27 10:13:01  morsch
 Obsolete global variables removed from file.
 
@@ -55,6 +59,8 @@ Log messages included
 #include "AliMUONRawCluster.h"
 
 
+#include <TROOT.h>
+#include <TTree.h>
 #include <TPolyMarker3D.h>
 #include <TMatrix.h>
 #include <TPad.h>
index 34182e039a8e2171c58fef8b32847c8949fe2469..8e1ac07a11cea4c1cb503a17b3b77202f844cb5c 100644 (file)
@@ -45,17 +45,17 @@ public AliSegmentation {
     // Get member data
     //
     // Pad size in x
-    virtual Float_t Dpx(){return fDpx;}
+    virtual Float_t Dpx() const {return fDpx;}
     // Pad size in y
-    virtual Float_t Dpy(){return fDpy;}
+    virtual Float_t Dpy() const {return fDpy;}
     // Pad size in x by Sector
-    virtual Float_t Dpx(Int_t) {return fDpx;}
+    virtual Float_t Dpx(Int_t) const {return fDpx;}
     // Pad size in y by Secto
-    virtual Float_t Dpy(Int_t) {return fDpy;}
+    virtual Float_t Dpy(Int_t) const {return fDpy;}
     // Maximum number of Pads in x
-    virtual Int_t   Npx(){return fNpx;}
+    virtual Int_t   Npx() const {return fNpx;}
     // Maximum number of Pads in y
-    virtual Int_t   Npy(){return fNpy;}
+    virtual Int_t   Npy() const {return fNpy;}
     // Set pad position
     virtual void     SetPad(Int_t ix, Int_t iy);
     // Set hit position
@@ -86,13 +86,13 @@ dummy);
     //
     // Current Pad during Integration
     // x-coordinaten
-    virtual Int_t  Ix(){return fIx;}
+    virtual Int_t  Ix() const {return fIx;}
     // y-coordinate
-    virtual Int_t  Iy(){return fIy;}
+    virtual Int_t  Iy() const {return fIy;}
     // current sector
-    virtual Int_t  ISector(){return 1;}
+    virtual Int_t  ISector() const {return 1;}
     // calculate sector from pad coordinates
-    virtual Int_t  Sector(Int_t ix, Int_t iy) {return 1;}
+    virtual Int_t  Sector(Int_t ix, Int_t iy) const {return 1;}
     //
     // Signal Generation Condition during Stepping
     virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z);
index 32fd4a1f0e48ea27f6d1f07244a7310a7c9eb764..de2f89c193292929b10a15a73ba363eaf78a4fa6 100644 (file)
 
 /*
 $Log$
+Revision 1.6  2000/10/02 16:58:29  egangler
+Cleaning of the code :
+-> coding conventions
+-> void Streamers
+-> some useless includes removed or replaced by "class" statement
+
 Revision 1.5  2000/07/13 16:19:44  fca
 Mainly coding conventions + some small bug fixes
 
@@ -74,14 +80,14 @@ AliMUONSegmentationV01::AliMUONSegmentationV01()
     (*fCorr)[2]=0;
 } 
 
-Float_t AliMUONSegmentationV01::Dpx(Int_t isec)
+Float_t AliMUONSegmentationV01::Dpx(Int_t isec) const
 {
 //
 // Returns x-pad size for given sector isec
-   return fDpxD[isec];
+   return fDpxD.At(isec);
 }
 
-Float_t AliMUONSegmentationV01::Dpy(Int_t isec)
+Float_t AliMUONSegmentationV01::Dpy(Int_t isec) const
 {
 //
 // Returns y-pad size for given sector isec
index 1918e261073b086b6aa728b230f89ab77312765a..9f039be9dddac735aa5f8677c9bc6da5ce5389cb 100644 (file)
@@ -51,11 +51,11 @@ public AliMUONSegmentationV0 {
     // Get member data
     //
     // Pad size in x by Sector
-    virtual Float_t Dpx(Int_t isec);
+    virtual Float_t Dpx(Int_t isec) const;
     // Pad size in y by Sector
-    virtual Float_t Dpy(Int_t isec);
+    virtual Float_t Dpy(Int_t isec) const;
     // Max number of Pads in x
-    virtual Int_t   Npx(){return fNpxS[fNsec-1][1]+1;}
+    virtual Int_t   Npx() const {return fNpxS[fNsec-1][1]+1;}
     //
     virtual void    SetPad(Int_t ix,Int_t iy);
     //
index f768e7c5984885605518e59a97f1323f64ec3942..9593a060f5a065a049df32d5566a93f34e42e185 100644 (file)
@@ -39,17 +39,17 @@ public AliSegmentation {
     // Get member data
     //
     // Pad size in x
-    virtual Float_t Dpx(){return fDpx;}
+    virtual Float_t Dpx() const {return fDpx;}
      // Pad size in y 
-    virtual Float_t Dpy(){return fDpy;}
+    virtual Float_t Dpy() const {return fDpy;}
     // Pad size in x by Sector
-    virtual Float_t Dpx(Int_t i){return fDpx;}
+    virtual Float_t Dpx(Int_t i) const {return fDpx;}
     // Pad size in y by Sector 
-    virtual Float_t Dpy(Int_t i){return fDpy;}
+    virtual Float_t Dpy(Int_t i)const {return fDpy;}
     // Maximum number of Pads in x
-    virtual Int_t   Npx(){return fNpx;}
+    virtual Int_t   Npx() const {return fNpx;}
     // Maximum number of Pads in y
-    virtual Int_t   Npy(){return fNpy;}
+    virtual Int_t   Npy() const {return fNpy;}
     //
     // Get  the zone of segmentation
     virtual Int_t GetZone(Float_t X, Float_t Y);
index 07dfee39412fd260269b1b2a136897ef4d881b83..1558622b9820ead3242733cdd3a358141e6fc337 100644 (file)
 
 /*
 $Log$
+Revision 1.7  2000/10/02 16:58:29  egangler
+Cleaning of the code :
+-> coding conventions
+-> void Streamers
+-> some useless includes removed or replaced by "class" statement
+
 Revision 1.6  2000/09/19 09:49:50  gosset
 AliMUONEventReconstructor package
 * track extrapolation independent from reco_muon.F, use of AliMagF...
@@ -68,6 +74,7 @@ Addition of files for track reconstruction in C++
 #include "AliMUONTrackParam.h" 
 #include "AliMUONChamber.h" 
 #include "AliRun.h" 
+#include "AliMagF.h" 
 
 ClassImp(AliMUONTrackParam) // Class implementation in ROOT context
 
index 451314803242225d2a91877b73a2b9e0e34b6df5..b90a8486f2d8c229df16da275353c64d9bfda6b8 100644 (file)
@@ -14,6 +14,9 @@
  **************************************************************************/
 /*
 $Log$
+Revision 1.2  2000/06/15 07:58:49  morsch
+Code from MUON-dev joined
+
 Revision 1.1.2.7  2000/06/09 22:06:29  morsch
 Some coding rule violations corrected. Will soon be obsolete.
 
@@ -735,12 +738,12 @@ void trackf_read_fit(Int_t &ievr, Int_t &nev, Int_t &nhittot1, Int_t *izch, Doub
          {
              if (mHit->fChamber > 10) continue;
              TClonesArray *fPartArray = gAlice->Particles();
-             Int_t ftrack = mHit->fTrack;
+             Int_t ftrack = mHit->Track();
              Int_t id = ((TParticle*) fPartArray->UncheckedAt(ftrack))->GetPdgCode();
              
              if (id==kMuonPlus||id==kMuonMinus) {
-                 xgeant[nhittot1]   = mHit->fY;
-                 ygeant[nhittot1]   = mHit->fX;
+                 xgeant[nhittot1]   = mHit->Y();
+                 ygeant[nhittot1]   = mHit->X();
                  izch[nhittot1]     = mHit->fChamber;
 //               printf("id %d ch %d x %f y %f\n",id,izch[nhittot1],xgeant[nhittot1],ygeant[nhittot1]);  
                  nhittot1++;
@@ -792,7 +795,7 @@ void trackf_read_geant(Int_t *itypg, Double_t *xtrg, Double_t *ytrg, Double_t *p
                if (mHit->fChamber > 10) continue;
                TClonesArray *fPartArray = gAlice->Particles();
                TParticle *particle;
-               Int_t ftrack = mHit->fTrack;
+               Int_t ftrack = mHit->Track();
                Int_t id = ((TParticle*) fPartArray->UncheckedAt(ftrack))->GetPdgCode();
 
 //             if (id==kMuonPlus||id==kMuonMinus) {
@@ -800,8 +803,8 @@ void trackf_read_geant(Int_t *itypg, Double_t *xtrg, Double_t *ytrg, Double_t *p
                    // inversion de x et y car le champ est inverse dans le programme tracking
                    xtrg[maxidg]   = 0;       
                    ytrg[maxidg]   = 0;       
-                   xgeant[maxidg]   = mHit->fY;             // x-pos of hit
-                   ygeant[maxidg]   = mHit->fX;             // y-pos of hit
+                   xgeant[maxidg]   = mHit->Y();             // x-pos of hit
+                   ygeant[maxidg]   = mHit->X();             // y-pos of hit
                    clsize1[maxidg]   = 0;     // cluster size on 1-st cathode
                    clsize2[maxidg]   = 0;     // cluster size on 2-nd cathode
                    cx[maxidg]     = mHit->fCyHit;            // Px/P of hit
@@ -891,8 +894,8 @@ void trackf_read_geant(Int_t *itypg, Double_t *xtrg, Double_t *ytrg, Double_t *p
            // inversion de x et y car le champ est inverse dans le programme tracking !!!!
            xtrg[maxidg]   = 0;                    // only for reconstructed point
            ytrg[maxidg]   = 0;                    // only for reconstructed point
-           xgeant[maxidg]   = mHit->fY;           // x-pos of hit
-           ygeant[maxidg]   = mHit->fX;           // y-pos of hit
+           xgeant[maxidg]   = mHit->Y();           // x-pos of hit
+           ygeant[maxidg]   = mHit->X();           // y-pos of hit
            clsize1[maxidg]   = 0;           // cluster size on 1-st cathode
            clsize2[maxidg]   = 0;           // cluster size on 2-nd cathode
            cx[maxidg]     = mHit->fCyHit;         // Px/P of hit
@@ -901,7 +904,7 @@ void trackf_read_geant(Int_t *itypg, Double_t *xtrg, Double_t *ytrg, Double_t *p
            izch[maxidg]   = mHit->fChamber;       // chamber number
            ptotg[maxidg]  = mHit->fPTot;          // P of hit 
            
-           Int_t ftrack = mHit->fTrack;
+           Int_t ftrack = mHit->Track();
            Int_t id1  = ftrack;                   // track number 
            Int_t idum = track+1;
            
@@ -1001,13 +1004,13 @@ void trackf_read_spoint(Int_t *itypg, Double_t *xtrg, Double_t *ytrg, Double_t *
                    AliMUONHit* mHit;
                    mHit=(AliMUONHit*) (pMUONhits->UncheckedAt(ihit));
                    Int_t id = (Int_t) mHit->fParticle;
-                   xgeant[mpoi] = mHit->fY;          
-                   ygeant[mpoi] = mHit->fX
+                   xgeant[mpoi] = mHit->Y();          
+                   ygeant[mpoi] = mHit->X()
                    if (id == kMuonPlus)  itypg[mpoi]=5;
                    if (id == kMuonMinus) itypg[mpoi]=6;
                    TParticle *particle;
                    particle = (TParticle*) 
-                       (fPartArray->UncheckedAt(mHit->fTrack));
+                       (fPartArray->UncheckedAt(mHit->Track()));
                    TParticle* particleM=(TParticle*) 
                        (fPartArray->UncheckedAt(particle->GetFirstMother()));
                    Int_t iparent=particleM->GetPdgCode();
index 303758ce1910eef65674fd3b939edca0a7c6f186..08385bb0005ebaae6a71ec3c4899182334a1ba0f 100644 (file)
  **************************************************************************/
 /*
 $Log$
+Revision 1.4  2000/10/02 16:58:29  egangler
+Cleaning of the code :
+-> coding conventions
+-> void Streamers
+-> some useless includes removed or replaced by "class" statement
+
 Revision 1.3  2000/06/25 16:47:43  pcrochet
 pow replaced by TMath::Power
 
@@ -27,6 +33,7 @@ pow replaced by TMath::Power
 #include "AliMUONPoints.h"
 #include "TMath.h"
 #include "TFile.h"
+#include "TROOT.h"
 #include "TH3.h"
 #include <iostream.h>
 
index bf39510e3b40ef24c8871f84ba99d9305a6f1a43..c3855637489dc5bf3d1015dd5adaeeab7ac4dda0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.11  2000/06/27 07:31:07  morsch
+fChambers = 0; deleted from constructor.
+
 Revision 1.10  2000/06/26 14:02:38  morsch
 Add class AliMUONConstants with MUON specific constants using static memeber data and access methods.
 
@@ -57,6 +60,7 @@ Gammas and neutrons are also scored in the stepmanager
 #include "AliMUONChamber.h"
 #include "AliRun.h"
 #include "AliMC.h"
+#include "AliMagF.h"
 #include "AliMUONHit.h"
 #include "AliMUONPadHit.h"
 #include "AliCallf77.h"
index 7ef9c849976a594ac07922308672725a286e007f..37518608b9f47295ba7d585b7090670a820eeec3 100644 (file)
 
 /*
 $Log$
+Revision 1.6  2000/10/02 17:20:45  egangler
+Cleaning of the code (continued ) :
+-> coding conventions
+-> void Streamers
+-> some useless includes removed or replaced by "class" statement
+
 Revision 1.5  2000/06/28 15:16:35  morsch
 (1) Client code adapted to new method signatures in AliMUONSegmentation (see comments there)
 to allow development of slat-muon chamber simulation and reconstruction code in the MUON
@@ -58,6 +64,7 @@ Log messages included.
 #include "AliMUONv1.h"
 #include "AliRun.h"
 #include "AliMC.h"
+#include "AliMagF.h"
 #include "AliCallf77.h"
 #include "AliConst.h" 
 #include "AliMUONChamber.h"
index 82aa277d5fa2f710a464800bacb6bdfb728cd9d9..08859ecbf30d2eaa0408355e2a88540a1f0dca29 100644 (file)
@@ -2,7 +2,7 @@
 #pragma link off all globals;
 #pragma link off all classes;
 #pragma link off all functions;
-#pragma link C++ class  AliMUON;
+#pragma link C++ class  AliMUON-;
 #pragma link C++ class  AliMUONv0;
 #pragma link C++ class  AliMUONv1;
 #pragma link C++ class  AliMUONHit;
index 7263061f6618934ec497c8aa8d8ea7ac5a9c1642..8449ee32a5ed6f5585f2c2f2ccaf312a562d74f2 100644 (file)
@@ -36,7 +36,8 @@ SRCS         = AliMUONChamber.cxx AliMUONChamberTrigger.cxx \
 
 # C++ Headers
 
-HDRS          = $(SRCS:.cxx=.h) MUONLinkDef.h
+HDRS          = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h \
+               $(ROOTSYS)/include/TMatrix.h MUONLinkDef.h
 
 # Library dictionary
 
index 6999a967027faed1600c026acdf43a85a4baa6ad..deb0b5bd236470d4d40da715b6acda79ccc82401 100644 (file)
@@ -34,6 +34,7 @@
 #include "AliPHOS.h"
 #include "AliMC.h"
 #include "AliRun.h"
+#include "AliMagF.h"
 
 ClassImp(AliPHOS)
 
index 105bf524526929317f7e396aec7b795d6fd7b375..b32b8441cd6ea8cf1d07544dd10acd16d10e9269 100644 (file)
@@ -173,7 +173,7 @@ void AliPHOSGeometry::ImpactOnEmc(const Double_t theta, const Double_t phi, Int_
 }
 
 //____________________________________________________________________________
-void AliPHOSGeometry::GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos, TMatrix & gmat)
+void AliPHOSGeometry::GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos, TMatrix & gmat) const
 {
   // Calculates the ALICE global coordinates of a RecPoint and the error matrix
  
@@ -214,7 +214,7 @@ void AliPHOSGeometry::GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos, TM
 }
 
 //____________________________________________________________________________
-void AliPHOSGeometry::GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos)
+void AliPHOSGeometry::GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos) const
 {
   // Calculates the ALICE global coordinates of a RecPoint 
 
index 88fbffc7800c42aac5c24d6f6a025f4b7fc53bbd..ad0b7a0729d4be88d1b4d6f2ba4a53ac3e5c4447 100644 (file)
@@ -46,8 +46,8 @@ public:
   virtual ~AliPHOSGeometry(void) ; 
   static AliPHOSGeometry * GetInstance(const Text_t* name, const Text_t* title="") ; 
   static AliPHOSGeometry * GetInstance() ; 
-  virtual void  GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos, TMatrix & gmat)  ;
-  virtual void  GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos)  
+  virtual void  GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos, TMatrix & gmat) const;
+  virtual void  GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos) const
 
   AliPHOSGeometry & operator = (const AliPHOSGeometry  & rvalue) const {
     // assignement operator requested by coding convention
index d09474e4844aa19b6e9495c4fd6aceca400b031b..d58a4ae9fc47edb7b59a2f9601ee7889460adf56 100644 (file)
@@ -24,6 +24,8 @@
 
 // --- ROOT system ---
 
+#include "TTree.h"
+
 // --- Standard library ---
 
 // --- AliRoot header files ---
index eea59f33c62a475e2d9c2821c1df5ea1d2878a08..685d1de932f52b7a198460675dc430213e616449 100644 (file)
@@ -29,6 +29,7 @@
 #include "TBRIK.h"
 #include "TNode.h"
 #include "TRandom.h"
+#include "TGeometry.h"
 
 
 // --- Standard library ---
@@ -43,6 +44,7 @@
 #include "AliPHOSv0.h"
 #include "AliRun.h"
 #include "AliConst.h"
+#include "AliMC.h"
 
 ClassImp(AliPHOSv0)
 
index 905d764f84ac813264d5351c81af7e4ee4fab08f..cfb83c0a32c46dde4d397d37d3576b1c7fb9b7c4 100644 (file)
@@ -27,6 +27,7 @@
 #include "TBRIK.h"
 #include "TNode.h"
 #include "TRandom.h"
+#include "TTree.h"
 
 
 // --- Standard library ---
@@ -44,6 +45,7 @@
 #include "AliPHOSReconstructioner.h"
 #include "AliRun.h"
 #include "AliConst.h"
+#include "AliMC.h"
 
 ClassImp(AliPHOSv1)
 
index ac85d4eeb0ff498ec96e2d10f9453a38d5bf816b..80a25f1d81b0545da51ca8400fc8e0669de9446d 100644 (file)
@@ -44,6 +44,7 @@
 #include "AliPHOSDigit.h"
 #include "AliRun.h"
 #include "AliConst.h"
+#include "AliMC.h"
 
 ClassImp(AliPHOSv3)
 
index 77c1c3a56b9d65bf559ff3383187342ad5d8b4c3..edd162fbbcc210ac023f0d2aed8537ab50040bca 100644 (file)
@@ -29,6 +29,8 @@
 #include "TBRIK.h"
 #include "TNode.h"
 #include "TParticle.h"
+#include "TTree.h"
+#include "TGeometry.h"
 
 // --- Standard library ---
 
@@ -39,6 +41,7 @@
 #include "AliPHOSv4.h"
 #include "AliRun.h"
 #include "AliConst.h"
+#include "AliMC.h"
 
 ClassImp(AliPHOSv4)
 
index 33d1dd0c365dda7050ba0bfb2dd596a43422d48a..588aa7c5b076f6e53a26f127f0ee392575cfaab0 100644 (file)
@@ -24,7 +24,7 @@ SRCS          =  AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx AliPHOSv2.cxx \
 
 # C++ Headers
 
-HDRS          = $(SRCS:.cxx=.h) PHOSLinkDef.h
+HDRS          = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h
 
 # Library dictionary
 
index c253c9b88e7cff6b9020ed497b80d8327e96b3e0..f6558b2d22bc8244389008966b5585718838aee3 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2000/01/19 17:17:06  fca
+Introducing a list of lists of hits -- more hits allowed for detector now
+
 Revision 1.5  1999/09/29 09:24:27  fca
 Introduction of the Copyright and cvs Log
 
@@ -45,6 +48,8 @@ Introduction of the Copyright and cvs Log
 
 #include <TBRIK.h>
 #include <TNode.h>
+#include <TGeometry.h>
+
 #include "AliPMD.h"
 #include "AliRun.h"
 #include "AliMC.h" 
index 931a85eec466d33dff61c4ab58b86e2a44746a3a..1b3c23ace7669ca73d2d36cac279f5be910e7a1d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  1999/10/06 13:05:52  fca
+Temporary fix to keep the code working waiting for Y.Viyogi
+
 Revision 1.6  1999/09/29 09:24:28  fca
 Introduction of the Copyright and cvs Log
 
@@ -35,6 +38,7 @@ Introduction of the Copyright and cvs Log
 #include "AliRun.h"
 #include "AliMC.h" 
 #include "AliConst.h" 
+#include "AliMagF.h"
  
 static Float_t smod2[3], smod3[3], smod4[3];
 static Int_t maxbox, kdet;
index 3b26be22f302616b67fef5141cc67bf9833e9a7d..57cf4847da7dfd73713d05047b58f813845acbe5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.8  2000/06/09 10:31:36  hristov
+sqrt changed to TMath::Sqrt
+
 Revision 1.7  1999/11/03 18:01:40  fca
 Remove non orthogonal unused matrix
 
@@ -38,6 +41,7 @@ Introduction of the Copyright and cvs Log
 #include "AliPMDv1.h"
 #include "AliRun.h"
 #include "AliMC.h" 
+#include "AliMagF.h" 
 #include "AliConst.h" 
  
 static Int_t maxbox, kdet;
index 411f474493374f207bd8e2b6523e8370e5d27a84..cc6b04f1ffb346cc8ad1d956bca210f9fa0c1c6c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  1999/09/29 09:24:28  fca
+Introduction of the Copyright and cvs Log
+
 */
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -31,6 +34,7 @@ $Log$
 #include "AliPMDv2.h"
 #include "AliRun.h"
 #include "AliMC.h" 
+#include "AliMagF.h" 
 #include "AliConst.h" 
  
 static Float_t smod1[3], smod2[3], smod3[3], smod4[3];
index 1184ac732fa09b9deeffddb3c1967490d2a1db9e..f126e4e2d822d5cb8fc46b6105a51105e7ad9537 100644 (file)
 
 /*
   $Log$
+  Revision 1.24  2000/10/02 15:43:17  jbarbosa
+  Fixed forward declarations.
+  Fixed honeycomb density.
+  Fixed cerenkov storing.
+  New electronics.
+
   Revision 1.23  2000/09/13 10:42:14  hristov
   Minor corrections for HP, DEC and Sun; strings.h included
 
@@ -56,6 +62,9 @@
 #include <TArrayF.h>
 #include <TFile.h>
 #include <TParticle.h>
+#include <TGeometry.h>
+#include <TTree.h>
+
 #include <iostream.h>
 #include <strings.h>
 
@@ -72,6 +81,7 @@
 #include "AliRICHClusterFinder.h"
 #include "AliRun.h"
 #include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
 #include "AliPDG.h"
 #include "AliPoints.h"
index 4aaec3bbe4b2f5d57a434a3e3b730cbc23fbe9f5..9c2ac5e84b2de551539bcc113323878dfa3f9af0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
   $Log$
+  Revision 1.5  2000/10/02 15:45:58  jbarbosa
+  Fixed forward declarations.
+
   Revision 1.4  2000/06/12 19:01:29  morsch
   Clean-up bug in Centered() corrected.
 
@@ -1126,12 +1129,42 @@ AliRICHClusterFinder& AliRICHClusterFinder::operator=(const AliRICHClusterFinder
     
 }
 
-
-
-
-
-
-
-
-
-
+//______________________________________________________________________________
+void AliRICHClusterFinder::Streamer(TBuffer &R__b)
+{
+   // Stream an object of class AliRICHClusterFinder.
+
+   if (R__b.IsReading()) {
+      Version_t R__v = R__b.ReadVersion(); if (R__v) { }
+      TObject::Streamer(R__b);
+      R__b >> fSegmentation;
+      R__b >> fResponse;
+      R__b >> fRawClusters;
+      R__b >> fHitMap;
+      R__b >> fCogCorr;
+      R__b >> fDigits;
+      R__b >> fNdigits;
+      R__b >> fChamber;
+      R__b >> fNRawClusters;
+      R__b >> fNperMax;
+      R__b >> fDeclusterFlag;
+      R__b >> fClusterSize;
+      R__b >> fNPeaks;
+   } else {
+      R__b.WriteVersion(AliRICHClusterFinder::IsA());
+      TObject::Streamer(R__b);
+      R__b << fSegmentation;
+      R__b << fResponse;
+      R__b << fRawClusters;
+      R__b << fHitMap;
+      R__b << fCogCorr;
+      R__b << fDigits;
+      R__b << fNdigits;
+      R__b << fChamber;
+      R__b << fNRawClusters;
+      R__b << fNperMax;
+      R__b << fDeclusterFlag;
+      R__b << fClusterSize;
+      R__b << fNPeaks;
+   }
+}
index 3cba63e932988e475311b49f2c1a82bb266eace5..8836c99ecfd5cf6027790940ec2cc9aee43c34c3 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
   $Log$
+  Revision 1.5  2000/06/30 16:30:28  dibari
+  Disabled writing to rechits.
+
   Revision 1.4  2000/06/15 15:46:59  jbarbosa
   Corrected compilation errors on HP-UX (replaced pow with TMath::Power)
 
@@ -37,6 +40,7 @@
 #include "AliRICHDigit.h"
 #include "AliRun.h"
 #include "TParticle.h"
+#include "TTree.h"
 #include "TMath.h"
 #include "TRandom.h"
 
@@ -155,9 +159,9 @@ void AliRICHDetect::Detect()
     //printf("Aqui vou eu\n");
     Int_t nch  = mHit->fChamber;
     //printf("Aqui fui eu\n");
-    trackglob[0] = mHit->fX;
-    trackglob[1] = mHit->fY;
-    trackglob[2] = mHit->fZ;
+    trackglob[0] = mHit->X();
+    trackglob[1] = mHit->Y();
+    trackglob[2] = mHit->Z();
 
     cx=trackglob[0];
     cy=trackglob[2];
index ac84d52faf6730ce08414b92631a85ec24a06445..5f4483967c2d066779d20d00bc145fc27a4986d6 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
   $Log$
+  Revision 1.6  2000/10/02 15:46:38  jbarbosa
+  Fixed forward declarations.
+
   Revision 1.5  2000/06/30 16:49:34  dibari
   Different call for ring drawing.
 
@@ -57,6 +60,7 @@
 #include <TArc.h>
 #include <TTUBE.h>
 #include <TSlider.h>
+#include <TGeometry.h>
 #include <TSliderBox.h>
 #include <TGaxis.h>
 #include <TVirtualX.h>
@@ -990,7 +994,7 @@ void AliRICHDisplay::LoadHits(Int_t chamber)
            fPhits->AddAt(points,npoints);
             mHit = (AliRICHHit*)pRICHhits->UncheckedAt(hit);
            TParticle *current = 
-               (TParticle*)(*gAlice->Particles())[mHit->fTrack];
+               (TParticle*)(*gAlice->Particles())[mHit->Track()];
            if (current->GetPdgCode() == 50000050) {
                points->SetMarkerColor(kBlue);
            } else if (current->GetPdgCode() == 50000051) {
@@ -1000,11 +1004,11 @@ void AliRICHDisplay::LoadHits(Int_t chamber)
            }
             points->SetMarkerStyle(5);
             points->SetMarkerSize(1.);
-            points->SetParticle(mHit->fTrack);
+            points->SetParticle(mHit->Track());
            points->SetHitIndex(hit);
             points->SetTrackIndex(track);
             points->SetDigitIndex(-1);
-            points->SetPoint(hit,mHit->fX, mHit->fY, mHit->fZ);
+            points->SetPoint(hit,mHit->X(), mHit->Y(), mHit->Z());
            npoints++;
        }
     }
@@ -1050,9 +1054,9 @@ void AliRICHDisplay::LoadCerenkovs(Int_t chamber)
        
        for (Int_t hit=0;hit<nhits;hit++) {
             mCerenkov = (AliRICHCerenkov*)pRICHCerenkovs->UncheckedAt(hit);
-           (*xp)(npoints)=mCerenkov->fX;
-            (*yp)(npoints)=mCerenkov->fY;
-            (*zp)(npoints)=mCerenkov->fZ;
+           (*xp)(npoints)=mCerenkov->X();
+            (*yp)(npoints)=mCerenkov->Y();
+            (*zp)(npoints)=mCerenkov->Z();
             (*ptrk)(npoints)=Float_t(mCerenkov->GetTrack());
             (*phit)(npoints)=Float_t(hit);
             npoints++;
index 2baf0e1729bf406fe72244aba8f02ae738f683ca..24d9675b988d8e49dca95cd83fb7440ea89207e0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
   $Log$
+  Revision 1.5  2000/10/02 15:50:25  jbarbosa
+  Fixed forward declarations.
+
   Revision 1.4  2000/06/30 16:33:43  dibari
   Several changes (ring drawing, fiducial selection, etc.)
 
@@ -52,6 +55,7 @@
 #include <TRandom.h>
 #include <TCanvas.h>
 #include <TH2.h>
+#include <TTree.h>
 
 
 ClassImp(AliRICHPatRec)
@@ -202,9 +206,9 @@ Int_t AliRICHPatRec::TrackParam(Int_t itr, Int_t &ich)
     AliRICHHit* mHit=(AliRICHHit*)pRICH->FirstHit(-1);
     if(mHit==0) return 1;
     ich = mHit->fChamber-1;
-    trackglob[0] = mHit->fX;
-    trackglob[1] = mHit->fY;
-    trackglob[2] = mHit->fZ;
+    trackglob[0] = mHit->X();
+    trackglob[1] = mHit->Y();
+    trackglob[2] = mHit->Z();
     pX = mHit->fMomX;
     pY = mHit->fMomY;
     pZ = mHit->fMomZ;
index 82ef4e0d60a23653027b567d2851e9b6bb506d5f..8d209a971dd6e3e20417f68d75632304559cdeb9 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
   $Log$
+  Revision 1.4  2000/10/02 15:50:43  jbarbosa
+  Fixed forward declarations.
+
   Revision 1.3  2000/06/12 15:26:36  jbarbosa
   Cleaned up version.
 
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 #include <TPad.h>
+#include <TTree.h>
 #include <TView.h>
 #include <TMath.h>
 #include <TPolyMarker3D.h>
 #include <TMarker3DBox.h>
 
 #include <AliRICH.h>
+#include "TParticle.h"
 #include "AliRICHDisplay.h"
 #include "AliRICHPoints.h"
 #include "AliRun.h"
index 410882e3d6fe1d8510c18b24b7bb03d964ed20ed..9dcc7d5e95ce55cd69ffa4aab241ae3356bb41d1 100644 (file)
 
 /*
   $Log$
+  Revision 1.1  2000/06/12 15:29:37  jbarbosa
+  Cleaned up version.
+
 */
 
 #include "AliRICHResponseV0.h"
 #include "AliRICHSegmentation.h"
 #include "AliRun.h"
+#include "AliMC.h"
 
 #include <TMath.h>
 #include <TRandom.h>
index ec1d7f5ae0e8ba51f603490756b2f5bb57e14f42..04275da0b9a8635eb0a0ca5f94ebfef7deb7e461 100644 (file)
@@ -29,7 +29,7 @@
 #pragma link C++ class  AliRICHHitMap;
 #pragma link C++ class  AliRICHHitMapA1;
 #pragma link C++ class  AliRICHTresholdMap;
-#pragma link C++ class  AliRICHClusterFinder;
+#pragma link C++ class  AliRICHClusterFinder-;
 #pragma link C++ class  AliRICHPatRec;
 #endif
 
index aafe78dd17c8e0e9a03868bba91d88605ef0f0f0..03fb3479509c597b74d11bbc8d061eed84c58c6a 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/07/13 16:41:29  fca
+New START corrected for coding conventions
+
 Revision 1.8  2000/03/27 17:24:25  alla
 Modifing geometry
 
@@ -271,8 +274,8 @@ void AliSTART::Hit2digit(Int_t evnum)
        startHit   = (AliSTARThit*)fHits->UncheckedAt(hit);
        pmt=startHit->fPmt;
        e=startHit->fEtot;
-       x=startHit->fX;
-       y=startHit->fY;
+       x=startHit->X();
+       y=startHit->Y();
        volume = startHit->fVolume;
        if(volume==1){
          timeright = startHit->fTime;
index f4db1dc81353ac86dce0f8e37ad4a7e20f8e36bf..d3019e067305e05009b45782cfd808a420e153c3 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.8  2000/07/13 16:41:29  fca
+New START corrected for coding conventions
+
 Revision 1.7  2000/01/21 15:45:23  fca
 New Version from Alla
 
@@ -47,6 +50,7 @@ Introduction of the Copyright and cvs Log
 #include "AliSTARTv0.h"
 #include "AliRun.h"
 #include "AliMC.h"
+#include "AliMagF.h"
 #include "AliSTARThit.h"
 
 #include <iostream.h>
index 396466df12513a69411eb3d31ed292b27cda4bab..79a103593b22b2977cea0215cc3abbf2dd37bf9a 100755 (executable)
@@ -35,6 +35,7 @@
 #include "AliSTARTv1.h"
 #include "AliRun.h"
 #include "AliMC.h"
+#include "AliMagF.h"
 #include "AliSTARThit.h"
 
 #include <iostream.h>
index d9b3509a8c9a8c23125852ab3d0e7a2583763b86..3abdf994bcfd79324a3dcbcf0a5b7fbd77ba72b7 100644 (file)
  **************************************************************************/
 /*
 $Log$
+Revision 1.2  2000/07/13 16:41:29  fca
+New START corrected for coding conventions
+
 Revision 1.1  2000/03/24 17:46:58  alla
 Vertex reconstruction
 
 */ 
 #include <TObject.h>
+#include <TDirectory.h>
+
 #include "AliSTARTvertex.h"
 #include "AliSTARTdigit.h"
 #include "AliSTARThit.h"
index 1af996719c0a75f5fd1d54e4cf66c346d008e153..444deba761505d7ef9b5878156cb92a90c4b3417 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2000/07/12 08:56:25  fca
+Coding convention correction and warning removal
+
 Revision 1.5  1999/09/29 09:24:29  fca
 Introduction of the Copyright and cvs Log
 
@@ -37,14 +40,16 @@ Introduction of the Copyright and cvs Log
 //End_Html
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
-#include "AliDetector.h"
-#include "AliRun.h"
-#include "AliHit.h"
-#include "AliPoints.h"
 #include <TClass.h>
 #include <TNode.h>
 #include <TRandom.h>
+#include <TTree.h>
+#include "TBrowser.h"
 
+#include "AliDetector.h"
+#include "AliRun.h"
+#include "AliHit.h"
+#include "AliPoints.h"
 // Static variables for the hit iterator routines
 static Int_t sMaxIterHit=0;
 static Int_t sCurIterHit=0;
@@ -219,9 +224,9 @@ void AliDetector::LoadPoints(Int_t)
     } else {
       fp = coor[trk];
     }
-    fp[3*ntrk[trk]  ] = ahit->fX;
-    fp[3*ntrk[trk]+1] = ahit->fY;
-    fp[3*ntrk[trk]+2] = ahit->fZ;
+    fp[3*ntrk[trk]  ] = ahit->X();
+    fp[3*ntrk[trk]+1] = ahit->Y();
+    fp[3*ntrk[trk]+2] = ahit->Z();
     ntrk[trk]++;
   }
   //
index f451cdfe6dcd33ac94cabf48e12ac8e9c30b29f9..114a320bed2d82cb377b6fa46534adb629eee173 100644 (file)
@@ -6,7 +6,7 @@
 /* $Id$ */
 
 #include <AliModule.h>
-#include <AliHit.h>
+class AliHit;
 
 class AliDetector : public AliModule {
 
@@ -20,12 +20,12 @@ public:
 
   // Inline functions
           void  Copy(AliDetector &det) const;
-  virtual int   GetNdigits() {return fNdigits;}
-  virtual int   GetNhits()   {return fNhits;}
-  TClonesArray *Digits() {return fDigits;}
-  TClonesArray *Hits()   {return fHits;}
-  TObjArray    *Points() {return fPoints;}
-  Int_t         GetIshunt() {return fIshunt;}
+  virtual int   GetNdigits() const {return fNdigits;}
+  virtual int   GetNhits()   const {return fNhits;}
+  TClonesArray *Digits() const {return fDigits;}
+  TClonesArray *Hits()   const {return fHits;}
+  TObjArray    *Points() const {return fPoints;}
+  Int_t         GetIshunt() const {return fIshunt;}
   void          SetIshunt(Int_t ishunt) {fIshunt=ishunt;}
   AliDetector &operator=(const AliDetector &det) 
   {det.Copy(*this); return (*this);}
@@ -40,7 +40,7 @@ public:
   virtual void        ResetPoints();
   virtual void        SetTreeAddress();
   virtual void        SetTimeGate(Float_t gate) {fTimeGate=gate;}
-  virtual Float_t     GetTimeGate() {return fTimeGate;}
+  virtual Float_t     GetTimeGate() const {return fTimeGate;}
   virtual void        StepManager() {}
   virtual void        DrawModule() {}
   virtual AliHit*     FirstHit(Int_t track);
index bec71f741dbe75ec20e176a5bc496e4d8873c9c6..593eb0136ce700126be109e9c125c0f63cb479f5 100644 (file)
@@ -10,7 +10,7 @@
 ////////////////////////////////////////////////
 
 #include "TObject.h"
-#include "TClonesArray.h" 
+class TClonesArray;
 
 typedef TClonesArray DigitsList ;       
 
index f4491f269be088e8325549dce0da4826f9b9fc34..01ab9780c6dcf80c9df02336f5e1e5f750d2e7fe 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/07/13 16:19:09  fca
+Mainly coding conventions + some small bug fixes
+
 Revision 1.8  2000/07/11 18:24:59  fca
 Coding convention corrections + few minor bug fixes
 
@@ -64,6 +67,8 @@ Introduction of the Copyright and cvs Log
 #include "AliDisplay.h"
 #include "AliPoints.h"
 #include "TParticle.h"
+#include "AliGeometry.h"
+#include "TGeometry.h"
 
 static const Float_t kptcutmax  = 2;
 static const Float_t ketacutmax = 1.5;
index d670b948eba8f9a38a965f61987171f41f1c406d..1fe233f72b526f599df6eb416feb32a08dff1082 100644 (file)
@@ -31,7 +31,7 @@ public:
                      AliDisplay(Int_t size);
                      AliDisplay(const AliDisplay &disp);
    virtual          ~AliDisplay();
-   virtual Bool_t    AllViews() {return fDrawAllViews;}
+   virtual Bool_t    AllViews() const {return fDrawAllViews;}
    virtual void      Clear(Option_t *option="");
    TSlider          *CutSlider() {return fCutSlider;}
    virtual void      ShowTrack(Int_t trackNumber); // *MENU*
@@ -50,11 +50,11 @@ public:
    virtual void      EnableDetector(const char *name); // *MENU*
    TSlider          *EtaSlider() {return fEtaSlider;}
    virtual void      ExecuteEvent(Int_t event, Int_t px, Int_t py);
-   Int_t             GetZoomMode() {return fZoomMode;}
+   Int_t             GetZoomMode() const {return fZoomMode;}
    virtual void      LoadPoints();
-   TPad             *Pad() {return fPad;}
+   TPad             *Pad() const {return fPad;}
    virtual void      Paint(Option_t *option="");
-   Float_t           PTcut() {return fPTcut;}
+   Float_t           PTcut() const {return fPTcut;}
    virtual void      SetDrawHits(Bool_t draw=kTRUE) {fDrawHits=draw;}   // *MENU*
    virtual void      SetDrawParticles(Bool_t draw=kTRUE) {fDrawParticles=draw;} // *MENU*
    virtual void      SetPTcut(Float_t ptcut=1.5); // *MENU*
index 981e5583185754bad4a176edecf69bab89ae7542..8b0f9e697adbe808322f774f53a95ef309762ff3 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/07/12 08:56:25  fca
+Coding convention correction and warning removal
+
 Revision 1.6  2000/07/11 18:24:59  fca
 Coding convention corrections + few minor bug fixes
 
@@ -154,4 +157,101 @@ void AliGenerator::Init()
   //
 }
 
+//_______________________________________________________________________
+void AliGenerator::SetOrigin(Float_t ox, Float_t oy, Float_t oz)
+{
+  //
+  // Set the vertex for the generated tracks
+  //
+  fOrigin[0]=ox;
+  fOrigin[1]=oy;
+  fOrigin[2]=oz;
+}
+
+//_______________________________________________________________________
+void AliGenerator::SetOrigin(const TLorentzVector &o)
+{
+  //
+  // Set the vertex for the generated tracks
+  //
+  fOrigin[0]=o[0];
+  fOrigin[1]=o[1];
+  fOrigin[2]=o[2];
+}
+
+//_______________________________________________________________________
+void AliGenerator::SetSigma(Float_t sx, Float_t sy, Float_t sz)
+{
+  //
+  // Set the spread of the vertex
+  //
+  fOsigma[0]=sx;
+  fOsigma[1]=sy;
+  fOsigma[2]=sz;
+}
+
+//_______________________________________________________________________
+void AliGenerator::SetMomentumRange(Float_t pmin, Float_t pmax)
+{
+  //
+  // Set the momentum range for the generated particles
+  //
+  fPMin = pmin;
+  fPMax = pmax;
+  SetBit(kMomentumRange);
+}
+
+//_______________________________________________________________________
+void AliGenerator::SetPtRange(Float_t ptmin, Float_t ptmax)
+{
+  //
+  // Set the Pt range for the generated particles
+  //
+  fPtMin = ptmin;
+  fPtMax = ptmax;
+  SetBit(kPtRange);
+}
+
+//_______________________________________________________________________
+void AliGenerator::SetPhiRange(Float_t phimin, Float_t phimax)
+{
+  //
+  // Set the Phi range for the generated particles
+  //
+  fPhiMin = TMath::Pi()*phimin/180;
+  fPhiMax = TMath::Pi()*phimax/180; SetBit(kPhiRange);
+}
+
+//_______________________________________________________________________
+void AliGenerator::SetYRange(Float_t ymin=-100, Float_t ymax=100)
+{
+  //
+  // Set the Rapidity range for the generated particles
+  //
+  fYMin=ymin;
+  fYMax=ymax;
+  SetBit(kYRange);
+}
+
+//_______________________________________________________________________
+void AliGenerator::SetVRange(Float_t vxmin, Float_t vxmax,
+                            Float_t vymin, Float_t vymax,
+                            Float_t vzmin, Float_t vzmax)
+{
+  //
+  // Set the vertex range for the generated particles
+  //
+  fVMin[0]=vxmin; fVMin[1]=vymin; fVMin[2]=vzmin;
+  fVMax[0]=vxmax; fVMax[1]=vymax; fVMax[2]=vzmax;
+  SetBit(kVertexRange);
+}
 
+//_______________________________________________________________________
+void AliGenerator::SetThetaRange(Float_t thetamin, Float_t thetamax)
+{
+  //
+  // Set the theta range for the generated particles
+  //
+  fThetaMin = TMath::Pi()*thetamin/180;
+  fThetaMax = TMath::Pi()*thetamax/180; SetBit(kThetaRange);
+}
index d52dae8a3a0bae6e29863692ad88d8179d43409f..d773e9dbe867f364913727f5b92cfa87d0e82685 100644 (file)
@@ -28,34 +28,19 @@ class AliGenerator : public TNamed
     virtual ~AliGenerator();
     virtual void Init();
     void Copy(AliGenerator &gen) const;
-    virtual void SetOrigin(Float_t ox, Float_t oy, Float_t oz)
-       {fOrigin[0]=ox;fOrigin[1]=oy;fOrigin[2]=oz;}
-    virtual void SetOrigin(const TLorentzVector &o)
-       {fOrigin[0]=o[0];fOrigin[1]=o[1];fOrigin[2]=o[2];}
-    virtual void SetSigma(Float_t sx, Float_t sy, Float_t sz)
-       {fOsigma[0]=sx;fOsigma[1]=sy;fOsigma[2]=sz;}
-    virtual void SetMomentumRange(Float_t pmin=0, Float_t pmax=1.e10)
-       {fPMin = pmin; fPMax = pmax; SetBit(kMomentumRange);}
-    virtual void SetPtRange(Float_t ptmin=0, Float_t ptmax=1.e10)
-       {fPtMin = ptmin; fPtMax = ptmax; SetBit(kPtRange);}
-    virtual void SetPhiRange(Float_t phimin=-180., Float_t phimax=180)
-       {fPhiMin = TMath::Pi()*phimin/180;
-       fPhiMax = TMath::Pi()*phimax/180; SetBit(kPhiRange);}
-    virtual void SetYRange(Float_t ymin=-100, Float_t ymax=100)
-       {fYMin=ymin; fYMax=ymax; SetBit(kYRange);}
+    virtual void SetOrigin(Float_t ox, Float_t oy, Float_t oz);
+    virtual void SetOrigin(const TLorentzVector &o);
+    virtual void SetSigma(Float_t sx, Float_t sy, Float_t sz);
+    virtual void SetMomentumRange(Float_t pmin=0, Float_t pmax=1.e10);
+    virtual void SetPtRange(Float_t ptmin=0, Float_t ptmax=1.e10);
+    virtual void SetPhiRange(Float_t phimin=-180., Float_t phimax=180);
+    virtual void SetYRange(Float_t ymin=-100, Float_t ymax=100);
     virtual void SetVRange(Float_t vxmin, Float_t vxmax,
                           Float_t vymin, Float_t vymax,
-                          Float_t vzmin, Float_t vzmax)
-       {
-           fVMin[0]=vxmin; fVMin[1]=vymin; fVMin[2]=vzmin;
-           fVMax[0]=vxmax; fVMax[1]=vymax; fVMax[2]=vzmax;
-           SetBit(kVertexRange);
-       }
+                          Float_t vzmin, Float_t vzmax);
     virtual void SetNumberParticles(Int_t npart=100) {fNpart=npart;}
-    virtual Int_t NumberParticles() {return fNpart;}
-    virtual void SetThetaRange(Float_t thetamin=0, Float_t thetamax=180)
-       {fThetaMin = TMath::Pi()*thetamin/180;
-       fThetaMax = TMath::Pi()*thetamax/180; SetBit(kThetaRange);}
+    virtual Int_t NumberParticles() const {return fNpart;}
+    virtual void SetThetaRange(Float_t thetamin=0, Float_t thetamax=180);
     virtual void Generate()=0;
     virtual void SetParentWeight(Float_t wgt) {fParentWeight=wgt;}
     virtual void SetChildWeight(Float_t wgt)  {fChildWeight=wgt;}    
@@ -70,10 +55,10 @@ class AliGenerator : public TNamed
 
   // Getters
 
-    virtual void GetOrigin(Float_t &ox, Float_t &oy, Float_t &oz)
-       {ox=fOrigin[0];oy=fOrigin[1];oz=fOrigin[2];}
-    virtual void GetOrigin(TLorentzVector &o)
-       {o[0]=fOrigin[0];o[1]=fOrigin[1];o[2]=fOrigin[2];o[3]=0;}
+    virtual void GetOrigin(Float_t &ox, Float_t &oy, Float_t &oz) const
+       {ox=fOrigin.At(0);oy=fOrigin.At(1);oz=fOrigin.At(2);}
+    virtual void GetOrigin(TLorentzVector &o) const
+       {o[0]=fOrigin.At(0);o[1]=fOrigin.At(1);o[2]=fOrigin.At(2);o[3]=0;}
 
 protected:
     static TGenerator* fgMCEvGen; // Pointer to the generator
@@ -103,7 +88,7 @@ protected:
     enum {kThetaRange=1, kVertexRange=2, kPhiRange=4, kPtRange=8,
          kYRange=32, kMomentumRange=16};
 
-    ClassDef(AliGenerator,1)
+    ClassDef(AliGenerator,1) // Base class for event generators
 };
 
 #endif
index 943f53a414d712304e02bf7e8b66431e87a28afd..24cb14116dc7e3ae08124d55071f645553b4b8bc 100644 (file)
 // --- ROOT system ---
 
 #include "TNamed.h"
-#include "TVector3.h" 
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-#include "AliRecPoint.h"
-
+class TVector3;
+class TMatrix;
 class AliRecPoint;
 
 class AliGeometry : public TNamed {
@@ -33,14 +27,14 @@ public:
   AliGeometry() ;          // ctor            
   virtual ~AliGeometry() ; // dtor
  
-  virtual void GetGlobal(const AliRecPoint * p, TVector3 & pos, TMatrix & mat) = 0   
-  virtual void GetGlobal(const AliRecPoint * p, TVector3 & pos) = 0 
+  virtual void GetGlobal(const AliRecPoint * p, TVector3 & pos, TMatrix & mat) const = 0
+  virtual void GetGlobal(const AliRecPoint * p, TVector3 & pos) const = 0
 
 protected:
 
   AliGeometry(const Text_t* name, const Text_t* title) : TNamed (name,title) {}                                   
 
-  ClassDef(AliGeometry,1)  // description , version 1
+  ClassDef(AliGeometry,1)  // Base class for detector geometry
 
 };
 
index 7119f6194d78ae634b7582481e74c5909c79dc14..84a0f80f5d7d8aa4bb2f83eef21b9258ec9c2c67 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  2000/07/12 08:56:25  fca
+Coding convention correction and warning removal
+
 Revision 1.2  1999/09/29 09:24:29  fca
 Introduction of the Copyright and cvs Log
 
@@ -61,7 +64,7 @@ void AliHeader::Reset(Int_t run, Int_t event)
   fEvent=event;
 }
 
-void AliHeader::Dump()
+void AliHeader::Print(const char *)
 {
   //
   // Dumps header content
index 69ce3af32d003d1aff6a580cfe6ba01907dd264e..efaab925ff83407e66af069277e870c9db3a90f9 100644 (file)
@@ -30,7 +30,7 @@ public:
   virtual  void  SetEvent(Int_t event) {fEvent = event;}
   virtual  Int_t GetEvent() const {return fEvent;}
 
-  virtual void Dump();
+  virtual void Print(const char *opt=0);
   
 protected:
   Int_t         fRun;         //Run number
index 9413cea319fc87cbd0fdb97565d5d3fb8e969c83..720f07b45250e72674705ea07bbb92b5795724d7 100644 (file)
@@ -8,7 +8,7 @@
 #include "TObject.h"
 
 class AliHit : public TObject {
-public:
+protected:
   Int_t     fTrack;  // Track number
   Float_t   fX;      // X position of the hit
   Float_t   fY;      // Y position of the hit
@@ -23,7 +23,7 @@ public:
   virtual Float_t X() const {return fX;}
   virtual Float_t Y() const {return fY;}
   virtual Float_t Z() const {return fZ;}
-  virtual Float_t Track() const {return fTrack;}
+  virtual Int_t Track() const {return fTrack;}
   
   ClassDef(AliHit,1)  //Base class for all Alice hits
 };
index ed76c1df518924d666b685cb33f1e5dd04404f0f..5e45a5641636bbd573d6b91760087db040bbe7b5 100644 (file)
@@ -24,9 +24,9 @@ public TObject {
     // Delete a single hit
     virtual  void  DeleteHit(Int_t ix, Int_t iy)                   =0;
     // Get index of hit in the list of digits
-    virtual Int_t  GetHitIndex(Int_t ix, Int_t iy)                 =0;
+    virtual Int_t  GetHitIndex(Int_t ix, Int_t iy) const           =0;
     // Get pointer to digit
-    virtual TObject * GetHit(Int_t ix, Int_t iy)                   =0;
+    virtual TObject * GetHit(Int_t ix, Int_t iy) const             =0;
     // Flag a hit as used
     virtual void   FlagHit(Int_t ix, Int_t iy)                     =0;
     // Test hit status
index 254a74c2a1322d95fc3b68d84e9ba82d2c56a2d4..69bae9843ec88e5c930124be44214f55f9ac092d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.17  2000/07/12 08:56:25  fca
+Coding convention correction and warning removal
+
 Revision 1.16  2000/05/26 08:35:03  fca
 Move the check on z after z has been retrieved
 
@@ -79,11 +82,13 @@ Introduction of the Copyright and cvs Log
 //////////////////////////////////////////////////////////////
 
 #include "TMath.h"
+
 #include "AliLego.h"
 #include "AliLegoGenerator.h"
 #include "AliRun.h"
 #include "AliConst.h"
 #include "AliMC.h"
+#include "TH2.h"
 
 ClassImp(AliLego)
 
index 1257505b1696ffd74f44cebeaa0d501a7a344a2f..ca23ae9c8f3edbdb0bf3a5c56dcb00982063a7c5 100644 (file)
@@ -13,7 +13,8 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
-#include <TH2.h>
+#include "TNamed.h"
+class TH2F;
 
 class AliLegoGenerator;
 
index 4de033072cb0d0224ba25924313d2c8a82b5333a..080405c7069808914cb8c1a00e21dc3d7c52cb4a 100644 (file)
@@ -14,7 +14,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 
 #include <TNamed.h>
-#include <TLorentzVector.h>
+class TLorentzVector;
 
 class AliMC;
 class AliDecayer;
@@ -204,7 +204,7 @@ class AliMC : public TNamed
   AliMC(const AliMC &) {}
   AliMC & operator=(const AliMC &) {return (*this);}
 
-  ClassDef(AliMC,1)  //Geometry Interface Class
+  ClassDef(AliMC,1)  //Virtual MonteCarlo Interface
 };
 
 #endif 
index b03e5844d23948ebc45194ce4a636ec2b62ce456..6e2a523172de1b8700960731f0730b7795f9b26c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2000/07/11 18:24:59  fca
+Coding convention corrections + few minor bug fixes
+
 Revision 1.5  2000/06/09 19:55:18  morsch
 Introduce new class AliMagFDM - Galina Chabratova
 
@@ -30,7 +33,6 @@ Introduction of the Copyright and cvs Log
 
 
 #include "AliMagF.h"
-#include "TSystem.h"
 
 #include <stdlib.h>
 #include <stdio.h>
index 15b7001671a0c455a039201acc70499047757ac7..57a9e3c082419acdec5ddc496e47aca09f87729d 100644 (file)
@@ -6,7 +6,6 @@
 /* $Id$ */
 
 #include "TNamed.h"
-#include "TVector.h"
 
 enum Field_t {kUndef=1, kConst=1, kConMesh=2, kDipoMap=3};
 
@@ -18,7 +17,7 @@ public:
          const Float_t factor, const Float_t fmax);
   virtual ~AliMagF() {}
   virtual void Field(Float_t *x, Float_t *b);
-  virtual Int_t Type() {return fType;}
+  virtual Int_t Type() const {return fType;}
   virtual Float_t Max() const {return fMax;}
   virtual Int_t Map() const {return fMap;}
   virtual Int_t Integ() const {return fInteg;}
index 613f2d9ec9ac950c062f60edefb4f9b9f914a75a..99395f5f6c94c9ae1a9cd8f2c44572dcfb5db4db 100644 (file)
@@ -6,6 +6,7 @@
 /* $Id$ */
 
 #include "AliMagF.h"
+#include "TVector.h"
 
 class AliMagFCM : public AliMagF
 {
index a677ee44a31210c7e003ef941f10f7a888d826ee..b418a99d29424ecaee34c64f4fa5b7e8e8e4c625 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  2000/07/13 16:19:09  fca
+Mainly coding conventions + some small bug fixes
+
 Revision 1.2  2000/07/12 08:56:25  fca
 Coding convention correction and warning removal
 
@@ -312,7 +315,6 @@ if ((kfdZbg/100<xL3[2] && xL3[2]<zCmin && r0<rPmax) || ((zCmin<=xL3[2] && xL3[2]
 //_________________________________________
 
 void AliMagFDM::FZ(Double_t *u, Float_t  *Ar, Float_t *du,Int_t *ki,Int_t *kf,Double_t *a1,Double_t *a2 ,Int_t *nu)
-  
 {
   //
   // Z component of the field
index 8ab0ff42c69c7efd72339a59a736026c25112531..57afb02446db132fbf062e2671add8ea370ca99b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.11  2000/07/12 08:56:25  fca
+Coding convention correction and warning removal
+
 Revision 1.10  2000/07/11 18:24:59  fca
 Coding convention corrections + few minor bug fixes
 
@@ -47,13 +50,17 @@ Introduction of the Copyright and cvs Log
 //End_Html
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
+#include <TClass.h>
+#include <TNode.h>
+#include <TRandom.h>
+#include "TSystem.h"
+
 #include "AliModule.h"
 #include "AliRun.h"
 #include "AliHit.h"
 #include "AliPoints.h"
-#include <TClass.h>
-#include <TNode.h>
-#include <TRandom.h>
+#include "AliMagF.h"
+#include "AliMC.h"
 
 ClassImp(AliModule)
  
index 72448c2e6fd0f92200df40a4da44e514fdf849db..d8d7b977cb4b6cf8057802ee86bd68747d9669bd 100644 (file)
@@ -5,14 +5,14 @@
 
 /* $Id$ */
 
-#include <TNamed.h>
-#include <TSystem.h>
-#include <TClonesArray.h>
-#include <TBrowser.h>
-#include <TAttLine.h>
-#include <TAttMarker.h>
-#include <TArrayI.h>
-#include <AliHit.h>
+#include "TNamed.h"
+#include "TAttLine.h"
+#include "TAttMarker.h"
+
+//#include <TSystem.h>
+class TClonesArray;
+class TBrowser;
+class TArrayI;
 
 class AliModule : public TNamed , public TAttLine, public TAttMarker {
 public:
@@ -24,15 +24,15 @@ public:
   virtual ~AliModule();
 
   // Inline functions
-  virtual  int           GetNdigits() {return 0;}
-  virtual  int           GetNhits()   {return 0;}
+  virtual  int           GetNdigits() const {return 0;}
+  virtual  int           GetNhits()  const {return 0;}
   virtual  TArrayI      *GetIdtmed()   const {return fIdtmed;}
   virtual  TList        *Histograms() const {return fHistograms;}
   virtual  TList        *Nodes()  const {return fNodes;}
-  virtual  TClonesArray *Digits() {return 0;}
-  virtual  TClonesArray *Hits()   {return 0;}
-  virtual  TObjArray    *Points() {return 0;}
-  virtual  Int_t         GetIshunt() {return 0;}
+  virtual  TClonesArray *Digits() const {return 0;}
+  virtual  TClonesArray *Hits()   const {return 0;}
+  virtual  TObjArray    *Points() const {return 0;}
+  virtual  Int_t         GetIshunt() const {return 0;}
   virtual  void          SetIshunt(Int_t) {}
   virtual  Bool_t        IsActive() const {return fActive;}
   virtual  Bool_t        IsFolder() const {return kTRUE;}
@@ -87,10 +87,8 @@ public:
   virtual void        ResetPoints() {}
   virtual void        SetTreeAddress() {}
   virtual void        SetTimeGate(Float_t) {}
-  virtual Float_t     GetTimeGate() {return 1.e10;}
+  virtual Float_t     GetTimeGate() const {return 1.e10;}
   virtual void        StepManager() {}
-  //virtual AliHit*     FirstHit(Int_t) {return 0;}
-  //virtual AliHit*     NextHit() {return 0;}
   virtual void        SetBufferSize(Int_t) {}  
   virtual void        SetEuclidFile(char *material,char *geometry=0);
   virtual void ReadEuclid(const char *filnam, char *topvol);
index 9f5f9199d17e5fee33f6828e638a3604226f92a1..4b97767cc8b925aac4cb022124ce9306a51e77f5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  2000/07/11 18:24:59  fca
+Coding convention corrections + few minor bug fixes
+
 Revision 1.4  1999/09/29 09:24:29  fca
 Introduction of the Copyright and cvs Log
 
@@ -38,6 +41,7 @@ Introduction of the Copyright and cvs Log
 #include "AliDetector.h"
 #include "TPad.h"
 #include "TView.h"
+#include "TParticle.h"
  
 ClassImp(AliPoints)
 
index c3c7aa9dfe21c1916546c79e1a3e6ef01803cd9d..0c1ff01e2b045c94a8a66acda015430c7207000b 100644 (file)
@@ -6,8 +6,8 @@
 /* $Id$ */
 
 #include "TPolyMarker3D.h"
-#include "AliDetector.h"
-#include "TParticle.h"
+class AliDetector;
+class TParticle;
 
 class AliPoints : public TPolyMarker3D {
 public:
@@ -18,8 +18,8 @@ public:
   void          Copy(AliPoints &pts) const;
   virtual Int_t         DistancetoPrimitive(Int_t px, Int_t py);
   virtual void          ExecuteEvent(Int_t event, Int_t px, Int_t py);
-  AliDetector          *GetDetector() {return fDetector;}
-  Int_t                 GetIndex() {return fIndex;}
+  AliDetector          *GetDetector() const {return fDetector;}
+  Int_t                 GetIndex() const {return fIndex;}
   TParticle            *GetParticle() const;
   virtual const Text_t *GetName() const;
   virtual void          InspectParticle(); // *MENU*
index 13cc66c2c2db1244b8cfdc6070c4d5cc83446923..e03649a69c2f0f5260f18bb94950b112fe8df3ee 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  2000/07/11 18:24:59  fca
+Coding convention corrections + few minor bug fixes
+
 Revision 1.4  2000/05/16 08:30:02  fca
 Using automatic streamer for c arrays
 
@@ -33,7 +36,10 @@ Y.Schutz new classes for reconstruction
 
 //-*-C++-*-
 //_________________________________________________________________________
-// Base Class of Cluster (empty cxx needed by Root)
+// Base Class for reconstructed space points 
+// usually coming from the clusterisation algorithms
+// run on the digits
+//
 //*-- Author : Yves Schutz  SUBATECH 
 //////////////////////////////////////////////////////////////////////////////
 
@@ -46,6 +52,8 @@ Y.Schutz new classes for reconstruction
 // --- AliRoot header files ---
 
 #include "AliRecPoint.h"
+#include "AliGeometry.h"
+#include "AliDigitNew.h"
 
 ClassImp(AliRecPoint)
 
@@ -169,7 +177,7 @@ void AliRecPoint::GetCovarianceMatrix(TMatrix & mat)
 }
 
 //____________________________________________________________________________
-void AliRecPoint::GetLocalPosition(TVector3 & pos)
+void AliRecPoint::GetLocalPosition(TVector3 & pos) const
 {
   // returns the position of the cluster in the local reference system of the sub-detector
 
@@ -187,7 +195,7 @@ AliRecPoint & AliRecPoint::operator= (const AliRecPoint &recp)
 
 
 //____________________________________________________________________________
-void AliRecPoint::GetGlobalPosition(TVector3 & gpos, TMatrix & gmat)
+void AliRecPoint::GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const
 {
   // returns the position of the cluster in the global reference system of ALICE
   // and the uncertainty on this position
index 1b6f1565c26d59f9b65bbec8e522f97313f73f3f..daf0a5df0fc8f7a27297e7d1af95c089d49802d0 100644 (file)
 //                                            //
 ////////////////////////////////////////////////
 
-// --- ROOT system ---
-
-#include "TObject.h"
-#include "TVector3.h"
-#include "TMatrix.h"
-#include "TClonesArray.h"
-
 // --- Standard library ---
 
 #include "assert.h"
 #include "iostream.h"
 
-// --- AliRoot header files ---
+// --- ROOT system ---
 
-#include "AliDigitNew.h"
-#include "AliGeometry.h"
-//#include "AliTrack.h"
+#include "TObject.h"
+#include "TVector3.h"
+class TMatrix;
 
+// --- AliRoot header files ---
 
+class AliDigitNew;
 class AliGeometry;
 
 class AliRecPoint : public TObject {
@@ -47,11 +42,11 @@ public:
   void  Copy(AliRecPoint &recp) const;
   virtual void  GetCovarianceMatrix(TMatrix & mat) ;
   virtual AliGeometry * GetGeom() const { return fGeom; } 
-  virtual void  GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) ; // return the global position in ALICE
+  virtual void  GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE
   virtual int * GetDigitsList(void) const { return fDigitsList ; }
   //  virtual int * GetTracksList(void) const { return fTracksList ; }
-  virtual Float_t GetEnergy() {return fAmp; } 
-  virtual void  GetLocalPosition(TVector3 & pos) ;
+  virtual Float_t GetEnergy() const {return fAmp; } 
+  virtual void  GetLocalPosition(TVector3 & pos) const ;
   virtual Int_t GetDigitsMultiplicity(void) const { return fMulDigit ; }
   Int_t         GetIndexInList() const { return fIndexInList ; } 
   virtual Int_t GetMaximumDigitMultiplicity() const { return  fMaxDigit; } 
@@ -76,7 +71,7 @@ protected:
   Int_t *       fDigitsList ; //[fMulDigit] list of digit's indexes from which the point was reconstructed 
   Int_t *       fTracksList ; //[fMulTrack] list of tracks to which the point was assigned 
 
-  ClassDef(AliRecPoint,1)
+  ClassDef(AliRecPoint,1) // Base class for reconstructed space points
  
 };
 
index e38ab486c4896c8d59c18d14a5e2504090271e78..d61ca9145f0cb2965ab70cbdb47223394f2b5ad0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.41  2000/07/13 16:19:09  fca
+Mainly coding conventions + some small bug fixes
+
 Revision 1.40  2000/07/12 08:56:25  fca
 Coding convention correction and warning removal
 
@@ -106,6 +109,10 @@ Introduction of the Copyright and cvs Log
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
 #include <TFile.h>
 #include <TRandom.h>
 #include <TBRIK.h> 
@@ -113,6 +120,10 @@ Introduction of the Copyright and cvs Log
 #include <TCint.h> 
 #include <TSystem.h>
 #include <TObjectTable.h>
+#include <TTree.h>
+#include <TGeometry.h>
+#include <TROOT.h>
+#include "TBrowser.h"
 
 #include "TParticle.h"
 #include "AliRun.h"
@@ -122,11 +133,10 @@ Introduction of the Copyright and cvs Log
 #include "AliMagFC.h"
 #include "AliMagFCM.h"
 #include "AliMagFDM.h"
+#include "AliHit.h"
+
+#include "AliDetector.h"
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
 AliRun *gAlice;
 
 static AliHeader *gAliHeader;
@@ -369,7 +379,7 @@ Int_t AliRun::DistancetoPrimitive(Int_t, Int_t)
 }
 
 //_____________________________________________________________________________
-void AliRun::DumpPart (Int_t i)
+void AliRun::DumpPart (Int_t i) const
 {
   //
   // Dumps particle i in the stack
@@ -379,7 +389,7 @@ void AliRun::DumpPart (Int_t i)
 }
 
 //_____________________________________________________________________________
-void AliRun::DumpPStack ()
+void AliRun::DumpPStack () const
 {
   //
   // Dumps the particle stack
@@ -672,7 +682,7 @@ void AliRun::EnergySummary()
 }
 
 //_____________________________________________________________________________
-AliModule *AliRun::GetModule(const char *name)
+AliModule *AliRun::GetModule(const char *name) const
 {
   //
   // Return pointer to detector from name
@@ -681,7 +691,7 @@ AliModule *AliRun::GetModule(const char *name)
 }
  
 //_____________________________________________________________________________
-AliDetector *AliRun::GetDetector(const char *name)
+AliDetector *AliRun::GetDetector(const char *name) const
 {
   //
   // Return pointer to detector from name
@@ -690,7 +700,7 @@ AliDetector *AliRun::GetDetector(const char *name)
 }
  
 //_____________________________________________________________________________
-Int_t AliRun::GetModuleID(const char *name)
+Int_t AliRun::GetModuleID(const char *name) const
 {
   //
   // Return galice internal detector identifier from name
@@ -843,7 +853,7 @@ void AliRun::GetNextTrack(Int_t &mtrack, Int_t &ipart, Float_t *pmom,
 }
 
 //_____________________________________________________________________________
-Int_t AliRun::GetPrimary(Int_t track)
+Int_t AliRun::GetPrimary(Int_t track) const
 {
   //
   // return number of primary that has generated track
@@ -1458,6 +1468,16 @@ void AliRun::RunLego(const char *setup,Int_t ntheta,Float_t themin,
   SetGenerator(gen);
 }
 
+//_____________________________________________________________________________
+void AliRun::SetConfigFunction(const char * config) 
+{
+  //
+  // Set the signature of the function contained in Config.C to configure
+  // the run
+  //
+  fConfigFunction=config;
+}
+
 //_____________________________________________________________________________
 void AliRun::SetCurrentTrack(Int_t track)
 { 
index 75914ec58c845147586fbeeead8d1b9f4192b0fd..27964858751519eb96b34f58e053855c4fccaf2e 100644 (file)
@@ -5,24 +5,26 @@
 
 /* $Id$ */
 
-#include <TROOT.h>
-#include <TBrowser.h>
-#include <TList.h>
+class TBrowser;
+class TList;
+class TTree;
+class TGeometry;
+class TDatabasePDG;
+#include <TArrayI.h>
+#include <TArrayF.h>
 #include <TStopwatch.h>
-#include <TTree.h>
-#include <TGeometry.h>
-#include <TDatabasePDG.h>
 
-#include "AliDetector.h"
+class AliDetector;
+class AliModule;
+class AliMagF;
+class AliMC;
+class AliLego;
+class AliDisplay;
 #include "AliHeader.h"
-#include "AliMagF.h"
-#include "AliMC.h"
 #include "AliGenerator.h"
-class AliLego;
 
 enum {kKeepBit=1, kDaughtersBit=2, kDoneBit=4};
 
-class AliDisplay;
 
 class AliRun : public TNamed {
 public:
@@ -44,8 +46,8 @@ public:
    Int_t          CurrentTrack() const {return fCurrent;}
    AliDisplay    *Display() { return fDisplay;}
    virtual  Int_t DistancetoPrimitive(Int_t px, Int_t py);
-   virtual  void  DumpPart (Int_t i);
-   virtual  void  DumpPStack ();
+   virtual  void  DumpPart (Int_t i) const;
+   virtual  void  DumpPStack () const;
    virtual AliMagF *Field() const {return fField;}
    virtual  void  FillTree();
    virtual  void  FinishPrimary();
@@ -58,13 +60,12 @@ public:
    Int_t          GetRunNumber() const {return fRun;}
    void           SetRunNumber(Int_t run) {fRun=run;}
    Int_t          GetDebug() const {return fDebug;}
-   AliModule     *GetModule(const char *name);
-   AliDetector   *GetDetector(const char *name);
-   Int_t          GetModuleID(const char *name);
+   AliModule     *GetModule(const char *name) const;
+   AliDetector   *GetDetector(const char *name) const;
+   Int_t          GetModuleID(const char *name) const;
    virtual  Int_t GetEvent(Int_t event);
    virtual  void  SetEvent(Int_t event) {fEvent=event;}
-   virtual  void  SetConfigFunction(const char * config="Config();") 
-    {fConfigFunction=config;}
+   virtual  void  SetConfigFunction(const char * config="Config();");
    virtual  const char *GetConfigFunction() const 
     {return fConfigFunction.Data();}
    TGeometry     *GetGeometry();
@@ -72,8 +73,8 @@ public:
    virtual  void  GetNextTrack(Int_t &mtrack, Int_t &ipart, Float_t *pmom,
                               Float_t &e, Float_t *vpos, Float_t *polar, 
                               Float_t &tof);
-   Int_t          GetNtrack() {return fNtrack;}
-   virtual  Int_t GetPrimary(Int_t track);
+   Int_t          GetNtrack() const {return fNtrack;}
+   virtual  Int_t GetPrimary(Int_t track) const;
    virtual  void  InitMC(const char *setup="Config.C");
    virtual  void  Init(const char *setup="Config.C") {InitMC(setup);}
    Bool_t         IsFolder() const {return kTRUE;}
@@ -109,12 +110,12 @@ public:
    virtual  Float_t TrackingZmax() const {return fTrZmax;}
    virtual  Float_t TrackingRmax() const {return fTrRmax;}
    virtual  void    TrackingLimits( Float_t rmax=1.e10, Float_t zmax=1.e10) {fTrRmax=rmax; fTrZmax=zmax;}
-   virtual  Int_t   DetFromMate(Int_t i) { return (*fImedia)[i];}
-   virtual  AliGenerator* Generator() {return fGenerator;}
+   virtual  Int_t   DetFromMate(Int_t i) const { return (*fImedia)[i];}
+   virtual  AliGenerator* Generator() const {return fGenerator;}
    virtual  void SetGenerator(AliGenerator *generator);
    virtual  void ResetGenerator(AliGenerator *generator);
    virtual  void EnergySummary();
-   virtual  const TDatabasePDG* PDGDB() const {return fPDGDB;}
+   virtual  TDatabasePDG* PDGDB() const {return fPDGDB;}
 
 
    TTree         *TreeD() {return fTreeD;}
index cb7b64b5518f90c95ad7b8a33c02b820f990c0f8..929863f544175c37f74072c672a8477e0a5e860d 100644 (file)
@@ -38,17 +38,17 @@ public TObject {
     // Get member data
     //
     // Pad size in x
-    virtual Float_t Dpx()                                                               = 0;
+    virtual Float_t Dpx() const                                                         = 0;
     // Pad size in y 
-    virtual Float_t Dpy()                                                               = 0;
+    virtual Float_t Dpy() const                                                         = 0;
     // Pad size in x by Sector 
-    virtual Float_t Dpx(Int_t)                                                          = 0;
+    virtual Float_t Dpx(Int_t) const                                                    = 0;
     // Pad size in y by Sector 
-    virtual Float_t Dpy(Int_t)                                                          = 0;
+    virtual Float_t Dpy(Int_t) const                                                    = 0;
     // Maximum number of Pads in x
-    virtual Int_t    Npx()                                                              = 0;
+    virtual Int_t    Npx() const                                                        = 0;
     // Maximum number of Pads in y
-    virtual Int_t    Npy()                                                              = 0;
+    virtual Int_t    Npy() const                                                        = 0;
     // Set pad position
     virtual void     SetPad(Int_t, Int_t)                                               = 0;
     // Set hit position
@@ -75,13 +75,13 @@ public TObject {
     //
     // Current pad cursor during disintegration
     // x-coordinate
-    virtual Int_t  Ix()                                                                 = 0;
+    virtual Int_t  Ix() const                                                           = 0;
     // y-coordinate
-    virtual Int_t  Iy()                                                                 = 0;
+    virtual Int_t  Iy() const                                                           = 0;
     // current sector
-    virtual Int_t  ISector()                                                            = 0;
+    virtual Int_t  ISector() const                                                      = 0;
     // calculate sector from pad coordinates
-    virtual Int_t  Sector(Int_t ix, Int_t iy)                                           = 0;
+    virtual Int_t  Sector(Int_t ix, Int_t iy) const                                     = 0;
     //
     // Signal Generation Condition during Stepping
     virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z)                           = 0;
@@ -100,6 +100,6 @@ public TObject {
     // Get the correction Function
     virtual TF1* CorrFunc(Int_t)                                                        = 0;
            
-    ClassDef(AliSegmentation,1) //Segmentation virtual base class 
+    ClassDef(AliSegmentation,1) //Segmentation abstract base class 
 };
 #endif
index 396a18b1befeaefbac4498cb59f8924e6ead7c6b..e7e9f89d6b9fbb253153057456907ea8a173dbd8 100644 (file)
@@ -20,7 +20,7 @@ SRCS          = AliDetector.cxx       AliHeader.cxx   AliMagF.cxx \
 
 # C++ Headers
 
-HDRS          = $(SRCS:.cxx=.h) AliPDG.h STEERLinkDef.h
+HDRS          = $(SRCS:.cxx=.h) AliPDG.h $(ROOTSYS)/include/TH2.h STEERLinkDef.h 
 
 # Library dictionary
 
@@ -63,12 +63,11 @@ $(DICT):                            $(HDRS)
 
 depend:                                        $(SRCS)
 
-HEADERS =      $(filter-out %LinkDef.h,$(HDRS) AliConst.h AliCallf77.h \
-                  Copyright.h)
+HEADERS        = $(SRCS:.cxx=.h) AliPDG.h AliConst.h AliCallf77.h 
 
 TOCLEAN                = $(OBJS) *Cint.cxx *Cint.h
 
-CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
+CHECKS         = $(patsubst %.cxx,check/%.viol,$(SRCS))
 
 ############################### General Macros ################################
 
index 35fe220c1f43720e498a0dde9f1efa0ccf816e8f..b7f4b140f8f738cbbd839d48d295fdac96065126 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/06/11 12:32:12  morsch
+Coding rule violations corrected
+
 Revision 1.8  2000/02/23 13:46:04  morsch
 Detailed composition of insulation material.
 
@@ -49,6 +52,7 @@ Introduction of the Copyright and cvs Log
 
 #include "AliABSO.h"
 #include "AliRun.h"
+#include "AliMagF.h"
 #include "AliConst.h"
  
 ClassImp(AliABSO)
index 2332d6d3d302e41c7d3a172d320b1a2081bfc929..e6710369cc96d6fedd7c88bdbcfbe660ffda5ff2 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2000/06/15 09:40:31  morsch
+Obsolete typedef keyword removed
+
 Revision 1.5  2000/06/12 19:39:01  morsch
 New structure of beam pipe and heating jacket.
 
@@ -56,6 +59,7 @@ Standard version of ABSO
 
 #include "AliABSOv0.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliConst.h"
 
 ClassImp(AliABSOv0)
index 4412b9a4cf127b01c158ff6f753781af6bc635ba..1a4eaba44e69f13caca3a2822461a1833fe3aac5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/06/11 12:32:51  morsch
+Coding rule violations corrected
+
 Revision 1.6  1999/09/29 09:24:30  fca
 Introduction of the Copyright and cvs Log
 
@@ -42,6 +45,8 @@ Introduction of the Copyright and cvs Log
 ///////////////////////////////////////////////////////////////////////////////
 
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
 #include "AliBODY.h"
 
 ClassImp(AliBODY)
index a399d10f416ab1c495a604b98cb707a961567398..e0acb09da1dff84ab27481987edd01b3ae73364f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/06/11 12:33:34  morsch
+Coding rule violations corrected
+
 Revision 1.6  1999/09/29 09:24:30  fca
 Introduction of the Copyright and cvs Log
 
@@ -42,6 +45,8 @@ Introduction of the Copyright and cvs Log
 
 #include "AliDIPOv1.h"
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
  
 ClassImp(AliDIPOv1)
  
index 2490a5bd9d3cc902ef8c575cca47453a85d44f4c..a7da06cc2c03f5e96126d868c3a1924a48187c4f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.12  2000/06/20 10:53:01  morsch
+Volume placed outside mother volume (DDIP) corrected (Galina Chabratova)
+
 Revision 1.11  2000/06/11 12:33:46  morsch
 Coding rule violations corrected
 
@@ -53,6 +56,8 @@ Introduction of the Copyright and cvs Log
 
 #include "AliDIPOv2.h"
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
  
 ClassImp(AliDIPOv2)
index a838d8abd05b6f228122a489a96e2dee36a5ff95..c20ce44ae861acf03f2c24b7fed1b9562fe2daf1 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.13  2000/06/11 12:34:49  morsch
+Coding rule violations corrected
+
 Revision 1.12  2000/02/23 16:25:24  fca
 AliVMC and AliGeant3 classes introduced
 ReadEuclid moved from AliRun to AliModule
@@ -36,6 +39,7 @@ Introduction of the Copyright and cvs Log
 
 #include "AliFRAMEv0.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "TSystem.h"
  
 ClassImp(AliFRAMEv0)
index 8b259aa39b3ecb2f19c9413f89cc15188100c682..1b4b68aa93cd4b248b8021fd12ccece6425003dc 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/06/11 12:35:02  morsch
+Coding rule violations corrected
+
 Revision 1.8  2000/02/23 16:25:24  fca
 AliVMC and AliGeant3 classes introduced
 ReadEuclid moved from AliRun to AliModule
@@ -33,6 +36,7 @@ Introduction of the Copyright and cvs Log
 
 #include "AliFRAMEv1.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "TSystem.h"
  
 ClassImp(AliFRAMEv1)
index ccae59db52149f503cc9e27b164eb73532a68723..01de526a88815511967b735e844779bc9862926d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/06/13 14:55:26  morsch
+Unused variables removed
+
 Revision 1.8  2000/06/11 12:35:41  morsch
 Coding rule violations corrected
 
@@ -49,6 +52,8 @@ Introduction of the Copyright and cvs Log
 
 #include "AliHALL.h"
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
  
 ClassImp(AliHALL)
index b79058ab7eec73daddb6df907f04462629cbe01c..596528c4509f6e9be385a0eef9ae2db9359ae30c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/06/11 12:35:56  morsch
+Coding rule violations corrected
+
 Revision 1.6  1999/09/29 09:24:30  fca
 Introduction of the Copyright and cvs Log
 
@@ -41,6 +44,8 @@ Introduction of the Copyright and cvs Log
  
 #include "AliMAG.h"
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
  
 ClassImp(AliMAG)
  
index dd339ee2fbc96fa89b2f5097ff426df076078303..3a2ded7d96a8fa04c99780367f186e5a2e958d17 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.8  2000/06/11 12:37:01  morsch
+Coding rule violations corrected
+
 Revision 1.7  2000/02/23 16:25:24  fca
 AliVMC and AliGeant3 classes introduced
 ReadEuclid moved from AliRun to AliModule
@@ -30,6 +33,7 @@ Introduction of the Copyright and cvs Log
 
 #include "AliPIPEv0.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "TSystem.h"
  
 ClassImp(AliPIPEv0)
index f43b321dbd38fb6b0bd2c1b9a925c0a7ccd848bf..52dc328a1b6a46a5f87fa99b684f3c2e2a8a1282 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/06/11 12:37:25  morsch
+Coding rule violations corrected
+
 Revision 1.6  1999/09/29 09:24:30  fca
 Introduction of the Copyright and cvs Log
 
@@ -34,6 +37,7 @@ Introduction of the Copyright and cvs Log
 
 #include "AliPIPEv1.h"
 #include "AliRun.h"
+#include "AliMagF.h"
 #include "AliMC.h"
  
 ClassImp(AliPIPEv1)
index 9b51b75c46c9cdc0b791a6a796371e5278f7a61c..124011eb2eb2c2c62bf8c09f4f651441f28207d6 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/06/11 12:38:00  morsch
+Coding rule violations corrected
+
 Revision 1.6  1999/10/06 19:57:07  fca
 Correct materials in pipe
 
@@ -37,6 +40,8 @@ Introduction of the Copyright and cvs Log
 
 #include "AliPIPEv3.h"
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
  
 ClassImp(AliPIPEv3)
  
index cc243f901800e52d94f035a2a7945b5334528cb8..5dcec5265cd92ffb240f96dff44a5707c40837c5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/06/11 12:38:40  morsch
+Coding rule violations corrected
+
 Revision 1.8  2000/02/23 13:48:33  morsch
 Detailed composition of insulation material.
 
@@ -42,6 +45,7 @@ Introduction of the Copyright and cvs Log
 
 #include "AliSHIL.h"
 #include "AliRun.h"
+#include "AliMagF.h"
 #include "AliConst.h"
 
 ClassImp(AliSHIL)
index fe29ce0dd6f4021443001cd9ef59bd88528d0108..62aa193296afe53caabc90dedd41da26750fa252 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/09/12 17:00:45  morsch
+Overlaps in YMO3 and YMO4 (side-effect from last update only) corrected.
+
 Revision 1.8  2000/09/12 16:11:43  morsch
 - Bug in volume YGO2 corrected: PCON started with twice the same z-value.
 - Recesses for chambers added to outer Pb cone.
@@ -60,6 +63,7 @@ Standard version of SHIL
 
 #include "AliSHILv0.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliConst.h"
 
 ClassImp(AliSHILv0)
index 7c7363163a3a7e09237560f7c2e7d30361793974..873ae9184dd98ab7cdd872712f1fd78cf4000788 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/09/12 14:36:17  morsch
+In gudcay(): call ForceDecay() before Decay()
+
 Revision 1.8  2000/09/06 14:56:34  morsch
 gudcay() method implemented.
 Decays are performed using  the AliDecayer interface. The pointer to the instance of AliDecayer
@@ -51,6 +54,8 @@ ReadEuclid moved from AliRun to AliModule
 #include "AliRun.h"
 #include "TGeant3.h"
 #include "AliCallf77.h" 
+#include "AliModule.h"
+#include "AliMagF.h"
 
 #ifndef WIN32
 
index 49ffe9916576868b61bf9841bebb62aaec9a691e..666d9c7eedbaa32d7052b7b7dfd84f16d2acc27a 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.36  2000/09/14 07:08:41  fca
+Introducing glvolu in the interface
+
 Revision 1.35  2000/09/12 14:27:10  morsch
 No instance of AliDecayer created to initialize fDecayer.
 
@@ -109,6 +112,7 @@ Introduction of the Copyright and cvs Log
 #include <TDatabasePDG.h>
 #include "AliCallf77.h" 
 #include "AliDecayer.h" 
+#include "TLorentzVector.h"
  
 #ifndef WIN32 
 # define gzebra  gzebra_ 
index c86060e75c53981f000e6f7975e3c2b9b12f2dbc..19807d7bfd724b2a793c864b06baa5e294ca945e 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.15  2000/05/18 14:33:01  vicinanz
+Modified to be full HP compliant
+
 Revision 1.14  2000/05/15 19:32:36  fca
 Add AddHitList !!
 
@@ -71,7 +74,11 @@ Introduction of the Copyright and cvs Log
 #include "TNode.h"
 #include "TObject.h"
 #include "TRandom.h"
+#include "TTree.h"
+
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
 
  
index 1deeab7ee59e9fb11888f2bb5333bd341f2345ec..5afb38a1c25cef67385ec4cf993d50dbc00aa78b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  2000/05/18 14:33:01  vicinanz
+Modified to be full HP compliant
+
 Revision 1.1  2000/05/10 16:52:18  vicinanz
 New TOF version with holes for PHOS/RICH
 
@@ -249,7 +252,7 @@ void AliTOFRawSector::WriteSector()
     for(nRoc=1; nRoc<=14; nRoc++){
        AliTOFRoc* currentRoc = (AliTOFRoc*)fRocData->UncheckedAt(nRoc);
        currentRoc->SetHeader();
-       UInt_t RocHeader = currentRoc->Header;
+       //       UInt_t RocHeader = currentRoc->Header;
 //      fprintf(rawfile,RocHeader);
     }
     
@@ -258,14 +261,14 @@ void AliTOFRawSector::WriteSector()
        Int_t rocItems = currentRoc->Items;
 
        for(Int_t nItem=1; nItem<=rocItems;nItem++){
-          UInt_t TimeRow = currentRoc->GetTimeRow(nItem);
+        //          UInt_t TimeRow = currentRoc->GetTimeRow(nItem);
 //          fprintf(rawfile,TimeRow);
-          UInt_t ChrgRow = currentRoc->GetTimeRow(nItem);
+         //          UInt_t ChrgRow = currentRoc->GetTimeRow(nItem);
 //          fprintf(rawfile,ChrgRow);
        }
     }
     
-    UInt_t EndOfSector = GlobalCheckSum;
+    //    UInt_t EndOfSector = GlobalCheckSum;
 //    fprintf(rawfile,EndOfSector);
 }
 
@@ -290,12 +293,12 @@ void AliTOFRawSector::ReadSector()
        currentRoc->SetHeader(RocHeader);
     }
     
-    UInt_t SCMWord;
+    //    UInt_t SCMWord;
 //    fscanf(rawfile,SCMWord);
     
     for(nRoc=1; nRoc<=14; nRoc++){
        AliTOFRoc* currentRoc = (AliTOFRoc*)fRocData->UncheckedAt(nRoc);
-       Int_t Size = currentRoc->SetSize();
+       //       Int_t Size = currentRoc->SetSize();
        Int_t nItems = currentRoc->Items;
        for(Int_t nrow=0; nrow<=nItems; nrow++){
           UInt_t charRow,timeRow;
@@ -304,7 +307,7 @@ void AliTOFRawSector::ReadSector()
 //         fscanf(rawfile, timeRow);
          currentRoc->SetTime(nrow, timeRow);
        }
-       Int_t FinalWord;
+       //       Int_t FinalWord;
 //       fscanf(rawfile,FinalWord);              
     }
 //    fscanf(rawfile,GlobalCheckSum);
index 85324ca1d54ea183d2a5a73f6fccd4597e56a20d..0ed4e16c25272841a994deb6382bd3a293751543 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.16  2000/05/10 16:52:18  vicinanz
+New TOF version with holes for PHOS/RICH
+
 Revision 1.14.2.1  2000/05/10 09:37:16  vicinanz
 New version with Holes for PHOS/RICH
 
@@ -72,9 +75,11 @@ Introduction of the Copyright and cvs Log
 
 #include "AliTOFv0.h"
 #include "TBRIK.h"
+#include "TGeometry.h"
 #include "TNode.h"
 #include "TObject.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliConst.h"
  
 ClassImp(AliTOFv0)
index 937463688d88501d5c05ba2e74f4c9be7f4f5919..9f856101dfc8a89a0c15258a4cf7562b54658c77 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.17  2000/06/06 07:52:09  vicinanz
+NodeName array dimension enlarged
+
 Revision 1.16  2000/05/10 16:52:18  vicinanz
 New TOF version with holes for PHOS/RICH
 
@@ -76,9 +79,12 @@ Introduction of the Copyright and cvs Log
 
 #include "AliTOFv1.h"
 #include "TBRIK.h"
+#include "TGeometry.h"
 #include "TNode.h"
 #include "TObject.h"
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
 
  
index cce50d43643df0beece5835bb3fa14b90b78a1cd..0c89149357bcbeebed8b26aae733fc77c5b5d32d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.16  2000/05/10 16:52:18  vicinanz
+New TOF version with holes for PHOS/RICH
+
 Revision 1.14.2.1  2000/05/10 09:37:16  vicinanz
 New version with Holes for PHOS/RICH
 
@@ -73,9 +76,12 @@ Introduction of the Copyright and cvs Log
 
 #include "AliTOFv2.h"
 #include "TBRIK.h"
+#include "TGeometry.h"
 #include "TNode.h"
 #include "TObject.h"
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
 
  
index d2faa91491e983ab0361214e5c70d2ddbe60e92c..03a6a71f2b986fe6fed907c5c9cf18a3a18d7060 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.16  2000/05/10 16:52:18  vicinanz
+New TOF version with holes for PHOS/RICH
+
 Revision 1.14.2.1  2000/05/10 09:37:16  vicinanz
 New version with Holes for PHOS/RICH
 
@@ -73,9 +76,11 @@ Introduction of the Copyright and cvs Log
 
 #include "AliTOFv3.h"
 #include "TBRIK.h"
+#include "TGeometry.h"
 #include "TNode.h"
 #include "TObject.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliConst.h"
 
  
index c8e467e81b29f6349aa7c941990bce0c8b7bc8fc..2ee2718f294a7b29350c5c31da2b3f64345a85a7 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2000/05/10 16:52:18  vicinanz
+New TOF version with holes for PHOS/RICH
+
 Revision 1.4.2.1  2000/05/10 09:37:16  vicinanz
 New version with Holes for PHOS/RICH
 
@@ -73,9 +76,11 @@ Introduction of the Copyright and cvs Log
 
 #include "AliTOFv4.h"
 #include "TBRIK.h"
+#include "TGeometry.h"
 #include "TNode.h"
 #include "TObject.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliConst.h"
 
  
index db43fe993ff74b2f5927b9a4595e59a40f0ccee9..cfab1bffbccc1a562dc22c033c44bb7a6f06c783 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.22  2000/07/10 20:57:39  hristov
+Update of TPC code and macros by M.Kowalski
+
 Revision 1.19.2.4  2000/06/26 07:39:42  kowal2
 Changes to obey the coding rules
 
@@ -92,6 +95,7 @@ Introduction of the Copyright and cvs Log
 #include <iostream.h>
 #include <fstream.h>
 #include "AliMC.h"
+#include "AliMagF.h"
 
 
 #include "AliTPCParamSR.h"
@@ -770,14 +774,14 @@ void AliTPC::Hits2Clusters(TFile *of)
         if (tpcHit->fQ == 0.) continue; //information about track (I.Belikov)
        sector=tpcHit->fSector; // sector number
        if(sector != isec) continue; //terminate iteration
-       ipart=tpcHit->fTrack;
+       ipart=tpcHit->Track();
        particle=(TParticle*)particles->UncheckedAt(ipart);
        pl=particle->Pz();
        pt=particle->Pt();
        if(pt < 1.e-9) pt=1.e-9;
        tanth=pl/pt;
        tanth = TMath::Abs(tanth);
-       rpad=TMath::Sqrt(tpcHit->fX*tpcHit->fX + tpcHit->fY*tpcHit->fY);
+       rpad=TMath::Sqrt(tpcHit->X()*tpcHit->X() + tpcHit->Y()*tpcHit->Y());
        ratio=0.001*rpad/pt; // pt must be in MeV/c - historical reason
 
        //   space-point resolutions
@@ -803,15 +807,15 @@ void AliTPC::Hits2Clusters(TFile *of)
        // smearing --> rotate to the 1 (13) or to the 25 (49) sector,
        // then the inaccuracy in a X-Y plane is only along Y (pad row)!
        //
-        Float_t xprim= tpcHit->fX*cph + tpcHit->fY*sph;
-       Float_t yprim=-tpcHit->fX*sph + tpcHit->fY*cph;
+        Float_t xprim= tpcHit->X()*cph + tpcHit->Y()*sph;
+       Float_t yprim=-tpcHit->X()*sph + tpcHit->Y()*cph;
        xyz[0]=gRandom->Gaus(yprim,TMath::Sqrt(sigmaRphi));   // y
           Float_t alpha=(isec < fTPCParam->GetNInnerSector()) ?
          fTPCParam->GetInnerAngle() : fTPCParam->GetOuterAngle();
           Float_t ymax=xprim*TMath::Tan(0.5*alpha);
           if (TMath::Abs(xyz[0])>ymax) xyz[0]=yprim; 
-       xyz[1]=gRandom->Gaus(tpcHit->fZ,TMath::Sqrt(sigmaZ)); // z
-          if (TMath::Abs(xyz[1])>fTPCParam->GetZLength()) xyz[1]=tpcHit->fZ
+       xyz[1]=gRandom->Gaus(tpcHit->Z(),TMath::Sqrt(sigmaZ)); // z
+          if (TMath::Abs(xyz[1])>fTPCParam->GetZLength()) xyz[1]=tpcHit->Z()
        xyz[2]=tpcHit->fQ;                                     // q
        xyz[3]=sigmaRphi;                                     // fSigmaY2
        xyz[4]=sigmaZ;                                        // fSigmaZ2
@@ -819,7 +823,7 @@ void AliTPC::Hits2Clusters(TFile *of)
         AliTPCClustersRow *clrow=carray.GetRow(sector,tpcHit->fPadRow);
         if (!clrow) clrow=carray.CreateRow(sector,tpcHit->fPadRow);    
 
-        Int_t tracks[3]={tpcHit->fTrack, -1, -1};
+        Int_t tracks[3]={tpcHit->Track(), -1, -1};
        AliTPCcluster cluster(xyz,tracks);
 
         clrow->InsertCluster(&cluster); nclusters++;
@@ -906,12 +910,12 @@ void AliTPC::Hits2ExactClustersSector(Int_t isec)
       if (tpcHit==0) continue;
       sector=tpcHit->fSector; // sector number
       if(sector != isec) continue; 
-      ipart=tpcHit->fTrack;
+      ipart=tpcHit->Track();
       if (ipart<npart) particle=(TParticle*)particles->UncheckedAt(ipart);
       
       //find row number
 
-      Float_t  x[3]={tpcHit->fX,tpcHit->fY,tpcHit->fZ};
+      Float_t  x[3]={tpcHit->X(),tpcHit->Y(),tpcHit->Z()};
       Int_t    index[3]={1,isec,0};
       Int_t    currentrow = fTPCParam->GetPadRow(x,index) ;    
       if (currentrow<0) continue;
@@ -1435,7 +1439,7 @@ void AliTPC::MakeSector(Int_t isec,Int_t nrows,TTree *TH,
       Int_t sector=tpcHit->fSector; // sector number
       if(sector != isec) continue; 
 
-       currentTrack = tpcHit->fTrack; // track number
+       currentTrack = tpcHit->Track(); // track number
         if(currentTrack != previousTrack){
                           
            // store already filled fTrack
@@ -1469,7 +1473,7 @@ void AliTPC::MakeSector(Int_t isec,Int_t nrows,TTree *TH,
        //---------------------------------------------------
 
 
-        Float_t time = 1.e6*(fTPCParam->GetZLength()-TMath::Abs(tpcHit->fZ))
+        Float_t time = 1.e6*(fTPCParam->GetZLength()-TMath::Abs(tpcHit->Z()))
                                                         /fTPCParam->GetDriftV(); 
        // in microseconds!     
        Float_t attProb = fTPCParam->GetAttCoef()*
@@ -1483,9 +1487,9 @@ void AliTPC::MakeSector(Int_t isec,Int_t nrows,TTree *TH,
         for(Int_t nel=0;nel<qI;nel++){
           // skip if electron lost due to the attachment
           if((gRandom->Rndm(0)) < attProb) continue; // electron lost!
-         xyz[0]=tpcHit->fX;
-         xyz[1]=tpcHit->fY;
-         xyz[2]=tpcHit->fZ;      
+         xyz[0]=tpcHit->X();
+         xyz[1]=tpcHit->Y();
+         xyz[2]=tpcHit->Z();     
          xyz[3]= (Float_t) (-gasgain*TMath::Log(gRandom->Rndm()));
          index[0]=1;
          
index 0672615646eae60c5d9926f95abe187d86a9c3a0..b0d719c3851645d28375fc1fd949a10562ffb21d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.24  2000/08/28 10:02:30  kowal2
+Corrected bug in the StepManager
+
 Revision 1.23  2000/07/10 20:57:39  hristov
 Update of TPC code and macros by M.Kowalski
 
@@ -87,6 +90,7 @@ Introduction of the Copyright and cvs Log
 #include "AliTPCv2.h"
 #include "AliTPCDigitsArray.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliConst.h"
 #include "AliPDG.h"
 #include "AliTPCParam.h"
index 05e521d8f297b7cbd8d2518a18306e6ea9cee348..0fec01b0c02b03ababdba6f29262276f341471c8 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.15  2000/07/10 20:57:39  hristov
+Update of TPC code and macros by M.Kowalski
+
 Revision 1.14  2000/06/30 12:07:50  kowal2
 Updated from the TPC-PreRelease branch
 
@@ -81,6 +84,7 @@ Introduction of the Copyright and cvs Log
 #include <TMath.h>
 #include "AliTPCv3.h"
 #include "AliRun.h"
+#include "AliMC.h"
 #include "AliConst.h"
 #include "AliTPCDigitsArray.h"
 #include"AliTPCParam.h"
index 12c4551271b5e09888ab32da0a6a471c2336cc2a..9105866f6ae25a045271a1894f3a4337bd904293 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.21  2000/06/09 11:10:07  cblume
+Compiler warnings and coding conventions, next round
+
 Revision 1.20  2000/06/08 18:32:57  cblume
 Make code compliant to coding conventions
 
@@ -69,6 +72,8 @@ Introduction of the Copyright and cvs Log
 #include <TMath.h>
 #include <TNode.h>
 #include <TPGON.h> 
+#include <TGeometry.h>
+#include <TTree.h>
 
 #include "AliTRD.h"
 #include "AliRun.h"
@@ -78,6 +83,8 @@ Introduction of the Copyright and cvs Log
 #include "AliTRDgeometryHole.h"
 #include "AliTRDgeometryFull.h"
 #include "AliTRDrecPoint.h"
+#include "AliMagF.h"
+#include "AliMC.h"
  
 ClassImp(AliTRD)
  
index f13669d953faaa9ded0499fa81d456986fc897a3..dd2451dd8df1fb320788c18833095c48e4efe2c6 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2000/06/09 11:10:07  cblume
+Compiler warnings and coding conventions, next round
+
 Revision 1.3  2000/06/08 18:32:58  cblume
 Make code compliant to coding conventions
 
@@ -35,8 +38,10 @@ Add new TRD classes
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
-#include "AliRun.h"
+#include <TROOT.h>
+#include <TTree.h>
 
+#include "AliRun.h"
 #include "AliTRD.h"
 #include "AliTRDclusterizer.h"
 
index 789ebd613289bd5f91701eeec4b62f85779006f1..48091dee55d84d8d36154064a908578656009ef5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2000/06/08 18:32:58  cblume
+Make code compliant to coding conventions
+
 Revision 1.3  2000/06/07 16:27:01  cblume
 Try to remove compiler warnings on Sun and HP
 
@@ -44,6 +47,7 @@ Add new TRD classes
 ///////////////////////////////////////////////////////////////////////////////
 
 #include <TRandom.h>
+#include <TTree.h>
 
 #include "AliTRDclusterizerV0.h"
 #include "AliTRDconst.h"
@@ -162,10 +166,10 @@ Bool_t AliTRDclusterizerV0::MakeCluster()
               continue;
 
             Float_t pos[3];
-                    pos[0]   = hit->fX;
-                    pos[1]   = hit->fY;
-                    pos[2]   = hit->fZ;
-            Int_t   track    = hit->fTrack;
+                    pos[0]   = hit->X();
+                    pos[1]   = hit->Y();
+                    pos[2]   = hit->Z();
+            Int_t   track    = hit->Track();
             Int_t   detector = hit->GetDetector();
             Int_t   plane    = geo->GetPlane(detector);
             Int_t   sector   = geo->GetSector(detector);
index 8fd7c711ee4f32e30de785dc3d9cae034e2e7c00..520c521eb19ea48bda138dad26cc7f8e9a89aac9 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/06/27 13:08:50  cblume
+Changed to Copy(TObject &A) to appease the HP-compiler
+
 Revision 1.6  2000/06/09 11:10:07  cblume
 Compiler warnings and coding conventions, next round
 
@@ -42,6 +45,7 @@ Add new TRD classes
 ///////////////////////////////////////////////////////////////////////////////
 
 #include <TF1.h>
+#include <TTree.h>
 
 #include "AliTRDclusterizerV1.h"
 #include "AliTRDmatrix.h"
index bf508826e0252cbd12110f262ec7dd92e5175dc3..6c5c512b82040a4b59f3586658618209452bd93f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.8  2000/06/09 11:10:07  cblume
+Compiler warnings and coding conventions, next round
+
 Revision 1.7  2000/06/08 18:32:58  cblume
 Make code compliant to coding conventions
 
@@ -62,6 +65,8 @@ Add new TRD classes
 #include <TMath.h>
 #include <TVector.h>
 #include <TRandom.h>
+#include <TROOT.h>
+#include <TTree.h>
 
 #include "AliTRD.h"
 #include "AliTRDdigitizer.h"
@@ -457,11 +462,11 @@ Bool_t AliTRDdigitizer::MakeDigits()
 
             AliTRDhit *hit = (AliTRDhit *) fTRD->Hits()->UncheckedAt(iHit);
             Float_t pos[3];
-                    pos[0]   = hit->fX;
-                    pos[1]   = hit->fY;
-                    pos[2]   = hit->fZ;
+                    pos[0]   = hit->X();
+                    pos[1]   = hit->Y();
+                    pos[2]   = hit->Z();
             Float_t q        = hit->GetCharge();
-            Int_t   track    = hit->fTrack;
+            Int_t   track    = hit->Track();
             Int_t   detector = hit->GetDetector();
             Int_t   plane    = fGeo->GetPlane(detector);
             Int_t   sector   = fGeo->GetSector(detector);
index b37b097b5e343632a08e3918daedd4de06790784..606d2a9ed6a578c76a5cfef1ec84b82d8faef97e 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  2000/06/09 11:10:07  cblume
+Compiler warnings and coding conventions, next round
+
 Revision 1.4  2000/06/08 18:32:58  cblume
 Make code compliant to coding conventions
 
@@ -36,6 +39,8 @@ Add new class AliTRDdigitsManager
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TTree.h>
+
 #include "AliRun.h"
 
 #include "AliTRDdigitsManager.h"
index b044a80c84121bdb0d614dccdec13b64c08a0ab2..0988e5866307d992502e42462f9809c012c2b777 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2000/06/08 18:32:58  cblume
+Make code compliant to coding conventions
+
 Revision 1.3  2000/06/07 16:25:37  cblume
 Try to remove compiler warnings on Sun and HP
 
@@ -37,6 +40,7 @@ Add new TRD classes
 
 #include "AliTRDgeometry.h"
 #include "AliTRDrecPoint.h"
+#include "AliMC.h"
 
 ClassImp(AliTRDgeometry)
 
@@ -290,7 +294,7 @@ void AliTRDgeometry::CreateGeometry(Int_t *idtmed)
 }
 
 //_____________________________________________________________________________
-Bool_t AliTRDgeometry::Local2Global(Int_t idet, Float_t *local, Float_t *global)
+Bool_t AliTRDgeometry::Local2Global(Int_t idet, Float_t *local, Float_t *global) const
 {
   //
   // Converts local pad-coordinates (row,col,time) into 
@@ -307,7 +311,7 @@ Bool_t AliTRDgeometry::Local2Global(Int_t idet, Float_t *local, Float_t *global)
  
 //_____________________________________________________________________________
 Bool_t AliTRDgeometry::Local2Global(Int_t iplan, Int_t icham, Int_t isect
-                                  , Float_t *local, Float_t *global)
+                                  , Float_t *local, Float_t *global) const
 {
   //
   // Converts local pad-coordinates (row,col,time) into 
@@ -358,7 +362,7 @@ Bool_t AliTRDgeometry::Rotate(Int_t d, Float_t *pos, Float_t *rot)
 }
 
 //_____________________________________________________________________________
-Bool_t AliTRDgeometry::RotateBack(Int_t d, Float_t *rot, Float_t *pos)
+Bool_t AliTRDgeometry::RotateBack(Int_t d, Float_t *rot, Float_t *pos) const
 {
   //
   // Rotates a chambers from the position of sector 0 into its
@@ -379,7 +383,7 @@ Bool_t AliTRDgeometry::RotateBack(Int_t d, Float_t *rot, Float_t *pos)
 }
 
 //_____________________________________________________________________________
-Int_t AliTRDgeometry::GetDetector(Int_t p, Int_t c, Int_t s)
+Int_t AliTRDgeometry::GetDetector(Int_t p, Int_t c, Int_t s) const
 {
   //
   // Convert plane / chamber / sector into detector number
@@ -390,7 +394,7 @@ Int_t AliTRDgeometry::GetDetector(Int_t p, Int_t c, Int_t s)
 }
 
 //_____________________________________________________________________________
-Int_t AliTRDgeometry::GetPlane(Int_t d)
+Int_t AliTRDgeometry::GetPlane(Int_t d) const
 {
   //
   // Reconstruct the plane number from the detector number
@@ -401,7 +405,7 @@ Int_t AliTRDgeometry::GetPlane(Int_t d)
 }
 
 //_____________________________________________________________________________
-Int_t AliTRDgeometry::GetChamber(Int_t d)
+Int_t AliTRDgeometry::GetChamber(Int_t d) const
 {
   //
   // Reconstruct the chamber number from the detector number
@@ -412,7 +416,7 @@ Int_t AliTRDgeometry::GetChamber(Int_t d)
 }
 
 //_____________________________________________________________________________
-Int_t AliTRDgeometry::GetSector(Int_t d)
+Int_t AliTRDgeometry::GetSector(Int_t d) const
 {
   //
   // Reconstruct the sector number from the detector number
@@ -423,7 +427,7 @@ Int_t AliTRDgeometry::GetSector(Int_t d)
 }
 
 //_____________________________________________________________________________
-void AliTRDgeometry::GetGlobal(const AliRecPoint *p, TVector3 &pos, TMatrix &mat)
+void AliTRDgeometry::GetGlobal(const AliRecPoint *p, TVector3 &pos, TMatrix &mat) const
 {
   // 
   // Returns the global coordinate and error matrix of a AliTRDrecPoint
@@ -435,7 +439,7 @@ void AliTRDgeometry::GetGlobal(const AliRecPoint *p, TVector3 &pos, TMatrix &mat
 }
 
 //_____________________________________________________________________________
-void AliTRDgeometry::GetGlobal(const AliRecPoint *p, TVector3 &pos)
+void AliTRDgeometry::GetGlobal(const AliRecPoint *p, TVector3 &pos) const
 {
   // 
   // Returns the global coordinate and error matrix of a AliTRDrecPoint
index 1847b28d2e7efa177e06ce6fc5167a6c5d5c9b60..820946990d48629d5804689473416a3d2a763610 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "AliRun.h"
 #include "AliRecPoint.h"
+#include "AliGeometry.h"
 
 #include "AliTRDconst.h"
 
@@ -23,10 +24,10 @@ class AliTRDgeometry : public AliGeometry {
   virtual void    CreateGeometry(Int_t *idtmed);
   virtual Int_t   IsVersion() const = 0;
   virtual void    Init();
-  virtual Bool_t  Local2Global(Int_t d, Float_t *local, Float_t *global);
-  virtual Bool_t  Local2Global(Int_t p, Int_t c, Int_t s, Float_t *local, Float_t *global);
+  virtual Bool_t  Local2Global(Int_t d, Float_t *local, Float_t *global) const;
+  virtual Bool_t  Local2Global(Int_t p, Int_t c, Int_t s, Float_t *local, Float_t *global) const;
   virtual Bool_t  Rotate(Int_t d, Float_t *pos, Float_t *rot);
-  virtual Bool_t  RotateBack(Int_t d, Float_t *rot, Float_t *pos);
+  virtual Bool_t  RotateBack(Int_t d, Float_t *rot, Float_t *pos) const;
 
   virtual void    SetPHOShole() = 0;
   virtual void    SetRICHhole() = 0;
@@ -38,25 +39,25 @@ class AliTRDgeometry : public AliGeometry {
   virtual Bool_t  GetPHOShole() = 0;
   virtual Bool_t  GetRICHhole() = 0;
 
-  virtual Int_t   GetDetector(Int_t p, Int_t c, Int_t s);
-  virtual Int_t   GetPlane(Int_t d);
-  virtual Int_t   GetChamber(Int_t d);
-  virtual Int_t   GetSector(Int_t d);
+  virtual Int_t   GetDetector(Int_t p, Int_t c, Int_t s) const;
+  virtual Int_t   GetPlane(Int_t d) const;
+  virtual Int_t   GetChamber(Int_t d) const;
+  virtual Int_t   GetSector(Int_t d) const;
 
   virtual Int_t   GetRowMax(Int_t p, Int_t c, Int_t s) { return fRowMax[p][c][s]; };
   virtual Int_t   GetColMax(Int_t p)                   { return fColMax[p];       };
   virtual Int_t   GetTimeMax()                         { return fTimeMax;         };
  
-  virtual Float_t GetRow0(Int_t p, Int_t c, Int_t s)   { return fRow0[p][c][s]; };
-  virtual Float_t GetCol0(Int_t p)                     { return fCol0[p];       };
-  virtual Float_t GetTime0(Int_t p)                    { return fTime0[p];      };
+  virtual Float_t GetRow0(Int_t p, Int_t c, Int_t s)   const { return fRow0[p][c][s]; };
+  virtual Float_t GetCol0(Int_t p)                     const { return fCol0[p];       };
+  virtual Float_t GetTime0(Int_t p)                    const { return fTime0[p];      };
 
-  virtual Float_t GetRowPadSize()                      { return fRowPadSize;  };
-  virtual Float_t GetColPadSize()                      { return fColPadSize;  };
-  virtual Float_t GetTimeBinSize()                     { return fTimeBinSize; };
+  virtual Float_t GetRowPadSize()                      const { return fRowPadSize;  };
+  virtual Float_t GetColPadSize()                      const { return fColPadSize;  };
+  virtual Float_t GetTimeBinSize()                     const { return fTimeBinSize; };
 
-  virtual void    GetGlobal(const AliRecPoint *p, TVector3 &pos, TMatrix &mat); 
-  virtual void    GetGlobal(const AliRecPoint *p, TVector3 &pos);   
+  virtual void    GetGlobal(const AliRecPoint *p, TVector3 &pos, TMatrix &mat) const
+  virtual void    GetGlobal(const AliRecPoint *p, TVector3 &pos) const;   
 
  protected:
 
index 5e4a5303d69265eb916784affaa02f5079aa8d7a..008f2cf0b6203d9609db80aa707814e9b8761ae1 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  2000/06/08 18:32:58  cblume
+Make code compliant to coding conventions
+
 Revision 1.2  2000/05/08 16:17:27  cblume
 Merge TRD-develop
 
@@ -36,6 +39,7 @@ Add new TRD classes
 ///////////////////////////////////////////////////////////////////////////////
 
 #include "AliTRDgeometryFull.h"
+#include "AliMC.h"
 
 ClassImp(AliTRDgeometryFull)
 
index 73a34d88ae6a9cf1a513547e7fdde605425b2d4a..366b80721df19e716f6cffc4423d0d505f7e953b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  2000/06/08 18:32:58  cblume
+Make code compliant to coding conventions
+
 Revision 1.1  2000/02/28 19:01:42  cblume
 Add new TRD classes
 
@@ -27,6 +30,7 @@ Add new TRD classes
 ///////////////////////////////////////////////////////////////////////////////
 
 #include "AliTRDgeometryHole.h"
+#include "AliMC.h"
 
 ClassImp(AliTRDgeometryHole)
 
index 401f49b9f0ab9adfcfd618ae463903bd8f6e03eb..4c6973b910a4758317d6abe5429259ff24273f34 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2000/06/27 13:08:50  cblume
+Changed to Copy(TObject &A) to appease the HP-compiler
+
 Revision 1.3  2000/06/08 18:32:58  cblume
 Make code compliant to coding conventions
 
@@ -35,6 +38,8 @@ Add new TRD classes
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TTree.h>
+
 #include "AliTRD.h"
 #include "AliTRDgeometry.h"
 #include "AliTRDsegmentArray.h"
index ac87c05b089f58bd5db352fb58a9db0b92366510..084e1900c0ef0ecbefabe3cf2e0d74aa123c1d4f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  2000/07/11 11:12:34  fca
+Some syntax corrections for non standard HP aCC
+
 Revision 1.1  2000/07/10 13:58:01  fca
 New version of ZDC from E.Scomparin & C.Oppedisano
 
@@ -24,9 +27,12 @@ Revision 1.6  1999/09/29 09:24:35  fca
 Introduction of the Copyright and cvs Log
 
 */
+#include <assert.h>
+
 #include <TRandom.h>
 #include <TLorentzVector.h>
 #include <TVector3.h>
+#include "TDatabasePDG.h"
 
 #include "AliGenZDC.h"
 #include "AliConst.h"
@@ -113,8 +119,7 @@ void AliGenZDC::Generate()
     if((fIpart==kProton) || (fIpart==kNeutron)){
       ExtractFermi(fIpart,fPp,fProbintp,fProbintn,ddp);
     }
-    if(fIpart==kProton) {mass = 0.93956563;}
-    if(fIpart==kNeutron) {mass = 0.93827231;}
+    mass=gAlice->PDGDB()->GetParticle(fIpart)->Mass();
 //  printf(" pLABx = %f  pLABy = %f  pLABz = %f \n",pLab[0],pLab[1],pLab[2]); 
     for(i=0; i<=2; i++){
        balp[i] = -pLab[i];
@@ -189,12 +194,13 @@ void AliGenZDC::ExtractFermi(Int_t id, Double_t* fPp, Double_t* fProbintp,
 //
   Int_t i;
   Float_t xx = gRandom->Rndm();
+  assert ( id==kProton && id==kNeutron );
   if(id==kProton){
     for(i=0; i<=200; i++){
        if((xx>=fProbintp[i-1]) && (xx<fProbintp[i])) break;
        }
   }
-  else if(id==kNeutron){
+  else {
     for(i=0; i<=200; i++){
        if((xx>=fProbintn[i-1]) && (xx<fProbintn[i])) break;
        }
@@ -212,7 +218,7 @@ void AliGenZDC::ExtractFermi(Int_t id, Double_t* fPp, Double_t* fProbintp,
 void AliGenZDC::BeamDivCross(Int_t icross, Float_t fBeamDiv, Float_t fBeamCrossAngle, 
                 Int_t fBeamCrossPlane, Double_t* pLab)
 {
-  Double_t tetpart, fipart, tetdiv, fidiv, angleSum[2], tetsum, fisum, dplab[3];
+  Double_t tetpart, fipart, tetdiv=0, fidiv=0, angleSum[2], tetsum, fisum, dplab[3];
   Double_t rvec;
 
   Int_t i;
index 7eb20d5f4a27f9badcfa002c694672a9e73bef98..26074236691fc4799f5bc8dcbb7f2920caa75280 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.8  2000/07/10 13:58:01  fca
+New version of ZDC from E.Scomparin & C.Oppedisano
+
 Revision 1.7  2000/01/19 17:17:40  fca
 
 Revision 1.6  1999/09/29 09:24:35  fca
@@ -33,6 +36,7 @@ Introduction of the Copyright and cvs Log
 
 #include <TBRIK.h>
 #include <TNode.h>
+#include "TGeometry.h"
 
 #include "AliZDC.h"
 #include "AliRun.h"
index 07d4e0bce65ccfc7791e1d730fb784b73c0cb174..930dfbb4791a1c70801919023a8f84abd95418d9 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2000/08/24 09:23:59  hristov
+Bug in ZDC geometry corrected by E.Scomparin
+
 Revision 1.3  2000/07/12 06:59:16  fca
 Fixing dimension of hits array
 
@@ -47,6 +50,7 @@ Introduction of the Copyright and cvs Log
 #include "stdio.h"
 #include "AliZDCv1.h"
 #include "AliRun.h"
+#include "AliMagF.h"
 #include "AliMC.h"
 #include "AliCallf77.h"
 #include "AliConst.h"
@@ -1050,10 +1054,10 @@ void AliZDCv1::StepManager()
 //       Int_t pcID = gMC->TrackPid();
 //       printf("      Pc %d in quadrant %d -> beta = %f \n", pcID, vol[1], beta);
        if(beta<0.67) return;
-       if((beta>=0.67) && (beta<=0.75)) ibeta = 0;
-       if((beta>0.75)  && (beta<=0.85)) ibeta = 1;
-       if((beta>0.85)  && (beta<=0.95)) ibeta = 2;
-       if((beta>0.95)  && (beta<=1.00)) ibeta = 3;
+       else if((beta>=0.67) && (beta<=0.75)) ibeta = 0;
+       else if((beta>0.75)  && (beta<=0.85)) ibeta = 1;
+       else if((beta>0.85)  && (beta<=0.95)) ibeta = 2;
+       else ibeta = 3;
  
        // Angle between particle trajectory and fibre axis
        // 1 -> Momentum directions