//-------------------------------------------------------------------------
// Class AliCluster
-//
+// Generic class for clusters
// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
//-------------------------------------------------------------------------
/* $Id$ */
+//-----------------------------------------------------------------------
+// Class to debug entry and exit from a volume
+// Used by AliLego class
+// Author: A.Morsch
+//-----------------------------------------------------------------------
+
#include "TNamed.h"
class AliDebugVolume : public TNamed {
AliDigit();
AliDigit(Int_t *track);
virtual ~AliDigit() {}
- virtual Int_t *GetTracks() {return &fTracks[0];}
+ virtual Int_t *GetTracks() {return fTracks;}
virtual Int_t GetTrack(Int_t i) const
{assert(0<=i&&i<=2); return fTracks[i];}
public:
AliESDCaloTrack(): TObject(), fRecParticle(0) {}
+ AliESDCaloTrack(const AliESDCaloTrack &act): TObject(act)
+ {fRecParticle = act.fRecParticle;}
virtual ~AliESDCaloTrack() {
//PH delete fRecParticle;
}
AliESDCaloTrack(TParticle* recpart);
- Float_t Px() { return fRecParticle->Px(); }
- Float_t Py() { return fRecParticle->Py(); }
- Float_t Pz() { return fRecParticle->Pz(); }
+ Float_t Px() const { return fRecParticle->Px(); }
+ Float_t Py() const { return fRecParticle->Py(); }
+ Float_t Pz() const { return fRecParticle->Pz(); }
- TParticle * GetRecParticle() {return fRecParticle;}
+ TParticle * GetRecParticle() const {return fRecParticle;}
private:
+ AliESDCaloTrack & operator=(const AliESDCaloTrack &)
+ {Fatal("= operator","Not implemented\n"); return *this;}
TParticle *fRecParticle; // reconstructed particle from PHOS or EMCAL
ClassDef(AliESDCaloTrack,2) //ESD calorimeter track class
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
#include "AliESDPmdTrack.h"
+// Event Data Summary Class
+// For pmd tracks
+// This is part of the reconstructed
+// ESD events
+// for the PMD detector
+
ClassImp(AliESDPmdTrack)
AliESDPmdTrack::AliESDPmdTrack (const AliESDPmdTrack& PMDTrack):TObject(PMDTrack)
#ifndef ALIESDPMDTRACK_H
#define ALIESDPMDTRACK_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
+// Event Data Summary Class for pmd tracks
+// This is part of the reconstructed ESD events
+// for the PMD detector
+
#include "TObject.h"
class AliESDPmdTrack : public TObject {
// Author: Andreas Morsch <andreas.morsch@cern.ch>
//
#include <TNamed.h>
-class TVector;
+#include <TVector.h>
class AliFieldMap : public TNamed
{
/* $Id$ */
+////////////////////////////////////////////////////////////////////////
+// Class used to generate correlated gaussian numbers with mean
+// zero and known covariance matrix.
+// M.Masera 15.03.2001 9:30 - modified on 26.02.2002 17:40
+////////////////////////////////////////////////////////////////////////
+
#include <TMatrixD.h>
class TArrayD;
/* $Id$ */
+//---------------------------------------------------------------------
+// Event header base class for generator.
+// Stores generated event information
+// Author: andreas.morsch@cern.ch
+//---------------------------------------------------------------------
+
#include <TNamed.h>
#include <TArrayF.h>
/* $Id$ */
+//-----------------------------------------------------------------------
+// Simulation event header class
+// Collaborates with AliRun, AliStack, and AliGenReaderTreeK classes
+// Many other classes depend on it
+//-----------------------------------------------------------------------
+
#include <TObject.h>
class AliStack;
/* $Id$ */
+// Base class for hits
+// This class is used as a base class for
+// hits in the different detectors
+
#include "TObject.h"
class AliHit : public TObject {
#include "TString.h"
#include "TVirtualMC.h"
-#include "AliConst.h"
#include "AliDebugVolume.h"
#include "AliLego.h"
#include "AliLegoGenerator.h"
-#include "AliRun.h"
#include "AliMC.h"
+#include "AliRun.h"
ClassImp(AliLego)
#include <TLorentzVector.h>
#include <TMath.h>
#include <TObjArray.h>
-#include <TPad.h>
#include <TPaveLabel.h>
#include <TROOT.h>
#include <TVirtualMC.h>
+#include "AliMC.h"
#include "AliMCQA.h"
#include "AliModule.h"
#include "AliRun.h"
-#include "AliMC.h"
ClassImp(AliMCQA)
/* $Id$ */
+//----------------------------------------------------------------------
+// Basic magnetic field class
+// Used in all the detectors, and also in the traking classes
+// Author:
+//----------------------------------------------------------------------
+
#include "TNamed.h"
enum Field_t {kUndef=1, kConst=1, kConMesh=2, kDipoMap=3};
/* $Id$ */
+//-------------------------------------------------------------------------
+// Constant magnetic field class
+// Used by AliRun class
+// Author:
+//-------------------------------------------------------------------------
+
#include "AliMagF.h"
class AliMagFC : public AliMagF
// Used in the configuration macros (macros/Config.C, etc.)
// Author:
//-----------------------------------------------------------------------
+
#include "TSystem.h"
#include "TVector.h"
/* $Id$ */
+//-----------------------------------------------------------------------
+// Class for Alice magnetic field with constant mesh
+// Used in the configuration macros (macros/Config.C, etc.)
+// Author:
+//-----------------------------------------------------------------------
+
#include "AliMagFC.h"
class TVector;
// Author:
//-------------------------------------------------------------------------
-#include <stdlib.h>
-
#include "TSystem.h"
#include "AliMagFDM.h"
//
// Calculation of field componet for case (keps <r0<= fRdel) at a given axis
//
- Double_t fa11,fa12,fa13;
- Double_t fa21,fa22,fa23;
- Double_t faY1,faY2;
- Double_t bba;
+ Double_t fa11=0,fa12=0,fa13=0;
+ Double_t fa21=0,fa22=0,fa23=0;
+ Double_t faY1=0,faY2=0;
+ Double_t bba=0;
switch (kaai) {
case 0:
break;
default:
Fatal("Ba","Invalid value of kaai %d\n",kaai);
- exit(1);
}
faY1=alf1*fa11+alf2*fa12+alf3*fa13;
faY2=alf1*fa21+alf2*fa22+alf3*fa23;
//
// Calculation of field componet at a given axis (general case)
//
- Double_t fy1, fy2, ffy;
- Double_t gy1,gy2,ggy;
- Double_t bbi;
- Double_t bf11,bf12,bf21,bf22;
- Double_t bg11,bg12,bg21,bg22;
+ Double_t fy1=0,fy2=0,ffy=0;
+ Double_t gy1=0,gy2=0,ggy=0;
+ Double_t bbi=0;
+ Double_t bf11=0,bf12=0,bf21=0,bf22=0;
+ Double_t bg11=0,bg12=0,bg21=0,bg22=0;
/*-----------------Polar part ------------------*/
default:
Fatal("Bb","Invalid value of kv %d\n",kv);
- exit(1);
}
}
//
} else {
- printf("File %s not found !\n",fTitle.Data());
- exit(1);
+ Fatal("ReadField","File %s not found !\n",fTitle.Data());
}
}
/* $Id$ */
+//-------------------------------------------------------------------------
+// Field with Magnetic Field map
+// Used by AliRun class
+// Author:
+//-------------------------------------------------------------------------
+
#include "AliMagFC.h"
//
class AliMagFDM : public AliMagFC
#include <TFile.h>
#include <TSystem.h>
-#include <TVector.h>
#include "AliFieldMap.h"
#include "AliMagFMaps.h"
/* $Id$ */
//
+// Magnetic field composed by 3 maps: the L3 magnet, extended region, and
+// dipole magnet
// Author: Andreas Morsch <andreas.morsch@cern.ch>
//
#define ALIMEMORYWATCHER_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+
/* $Id$ */
+
//_________________________________________________________________________
-/*Basic Memory Leak utility.
-
- You can use this tiny class to *see* if your program is leaking.
- Usage:
- AliMemoryWatcher memwatcher;
- some program loop on events here {
- if ( nevents % x == 0 )
- {
- // take a sample every x events
- memwatcher.watch(nevents);
- }
- }
- TFile f("out.root","RECREATE");
- memwatcher.write();
- f.Close();
- In the output root file you'll get 3 graphs representing
- the evolAliPHOSon, as a function of the number of events, of :
- - VSIZE is the virtual size (in KBytes) of your program, that is sort of
- the total memory used
- - RSSIZE is the resident size (in KBytes), that is, the part of your
- program which is really in physical memory.
- - TIME is an estimate of time per event (really it's the time elasped
- between two calls to watch method)
- WARNING: this is far from a bulletproof memory report (it's basically
- using UNIX command ps -h -p [PID] -o vsize,rssize to do its job).
- It has only been tested on Linux so far.
-
- But by fitting the VSIZE by a pol1 under ROOT, you'll see right away
- by how much your program is leaking.
-*/
+//Basic Memory Leak utility.
+//
+// You can use this tiny class to *see* if your program is leaking.
+// Usage:
+// AliMemoryWatcher memwatcher;
+// some program loop on events here {
+// if ( nevents % x == 0 )
+// {
+// // take a sample every x events
+// memwatcher.watch(nevents);
+// }
+// }
+// TFile f("out.root","RECREATE");
+// memwatcher.write();
+// f.Close();
+// In the output root file you'll get 3 graphs representing
+// the evolAliPHOSon, as a function of the number of events, of :
+// - VSIZE is the virtual size (in KBytes) of your program, that is sort of
+// the total memory used
+// - RSSIZE is the resident size (in KBytes), that is, the part of your
+// program which is really in physical memory.
+// - TIME is an estimate of time per event (really it's the time elasped
+// between two calls to watch method)
+// WARNING: this is far from a bulletproof memory report (it's basically
+// using UNIX command ps -h -p [PID] -o vsize,rssize to do its job).
+// It has only been tested on Linux so far.
+//
+// But by fitting the VSIZE by a pol1 under ROOT, you'll see right away
+// by how much your program is leaking.
+//
//*-- Author: Laurent Aphecetche(SUBATECH)
+
// --- ROOT system ---
+
#include "TObject.h"
class TH2;
class TGraph;
////////////////////////////////////////////////////////////////////////
//
// Class to make combination for merging
-//
+// Returns combination of input event numbers
// Author: Jiri Chudoba (CERN), 2001
//
////////////////////////////////////////////////////////////////////////
#include "TObject.h"
+// Class to encapsulate the ALICE updates to TDatabasePDG.h
+// Can be used by TGeant3 and TGeant4
+// Comments to: andreas.morsch@cern.ch
+
class AliPDG : public TObject {
public:
static void AddParticlesToPdgDataBase();
#include "TView.h"
#include "AliDetector.h"
+#include "AliMC.h"
#include "AliPoints.h"
#include "AliRun.h"
-#include "AliMC.h"
ClassImp(AliPoints)
/* $Id$ */
+// This class contains the points
+// that are used for the ALICE
+// event display
+
#include "TPolyMarker3D.h"
class AliDetector;
class TParticle;
/* $Id$ */
+//
+// base class for reconstruction algorithm
+// Derived classes should implement a default constructor and
+// the virtual methods
+//
+
#include <TObject.h>
class AliRunLoader;
#include <Riostream.h>
-#include "TTree.h"
+#include "TError.h"
#include "TFile.h"
#include "TStopwatch.h"
-#include "TError.h"
+#include "TTree.h"
#include "AliDetector.h"
-#include "AliTrackMapper.h"
-#include "AliTrackMap.h"
+#include "AliHit.h"
+#include "AliLoader.h"
#include "AliRun.h"
#include "AliRunLoader.h"
-#include "AliLoader.h"
-#include "AliHit.h"
+#include "AliTrackMap.h"
+#include "AliTrackMapper.h"
ClassImp(AliTrackMapper)
* provided "as is" without express or implied warranty. *
**************************************************************************/
+/* $Id$ */
-#include "AliTrackReference.h"
+#include "TLorentzVector.h"
#include "TVirtualMC.h"
-#include "TParticle.h"
+
#include "AliRun.h"
-#include "TLorentzVector.h"
+#include "AliTrackReference.h"
//
// Track Reference object is created every time particle is
/* $Id$ */
+//
+// Track Reference object is created every time particle is
+// crossing detector bounds.
+// The object is created by Step Manager
+//
+
#include "TObject.h"
#include "TMath.h"
-#include <AliESDVertex.h>
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
#include <AliVertexer.h>
ClassImp(AliVertexer)