/*
$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
#include "AliCASTOR.h"
#include <TNode.h>
#include <TPGON.h>
+#include "TGeometry.h"
+#include "AliMagF.h"
#include "AliRun.h"
#include "AliMC.h"
#include "AliConst.h"
/*
$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)
#include "AliRun.h"
#include "AliConst.h"
#include "AliPDG.h"
+#include "AliMC.h"
ClassImp(AliGenBox)
/*
$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
#include "AliGenDoubleScan.h"
#include "AliRun.h"
+#include "AliMC.h"
ClassImp(AliGenDoubleScan)
/*
$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)
#include "AliRun.h"
#include <TDirectory.h>
+#include <TDatabasePDG.h>
#include <TFile.h>
#include <stdlib.h>
/*
$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)
#include "AliGenHIJINGpara.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "AliConst.h"
#include "AliPDG.h"
/*
$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)
#include "AliGenHijing.h"
#include "AliGenHijingEventHeader.h"
#include "AliRun.h"
+#include "AliMC.h"
#include <TArrayI.h>
#include <TParticle.h>
/*
$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.
#include "AliDecayerPythia.h"
#include "AliGenMUONlib.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "AliPythia.h"
#include <TParticle.h>
#include <TParticlePDG.h>
/*
$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
#include "AliGenScan.h"
#include "AliRun.h"
+#include "AliMC.h"
ClassImp(AliGenScan)
/*
$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
#include <TTUBE.h>
#include <TNode.h>
+#include <TGeometry.h>
+
+#include "AliMC.h"
#include "AliRun.h"
#include "AliFMD.h"
/*
$Log$
+Revision 1.7 1999/09/29 09:24:14 fca
+Introduction of the Copyright and cvs Log
+
*/
///////////////////////////////////////////////////////////////////////////////
#include "AliRun.h"
#include "AliFMDv0.h"
#include "AliMC.h"
+#include "AliMagF.h"
+
#include "stdlib.h"
ClassImp(AliFMDv0)
/*
$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
#include "AliRun.h"
#include "AliFMDv1.h"
#include "AliMC.h"
+#include "AliMagF.h"
#include "stdlib.h"
ClassImp(AliFMDv1)
/*
$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)
#include "AliITSmodule.h"
#include "AliITSRecPoint.h"
#include "AliITSRawCluster.h"
+#include "AliMC.h"
const Int_t AliITS::fgkNTYPES=3;
#include "AliDetector.h"
+#include "TObjArray.h"
class TObjArray;
class TString;
class AliITS;
class AliITShit;
-class TArrayI;
+#include "TArrayI.h"
class AliITSmodule:public TObject{
#include <string.h>
#include <TStopwatch.h>
+#include <TSystem.h>
+#include <TROOT.h>
#include <TCanvas.h>
#include <TF1.h>
#include <TRandom.h>
/*
$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
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
#include "AliITShit.h"
/*
$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
#include <TClonesArray.h>
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
#include "AliITShit.h"
/*
$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
#include <TBRIK.h>
#include "AliRun.h"
+#include "AliMC.h"
#include "TSystem.h"
#if ALIITSPRINTGEOM==1
#include "../TGeant3/TGeant3.h"
**************************************************************************/
/*
$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.
#include <TTUBE.h>
#include <TBRIK.h>
#include <TRotMatrix.h>
+#include <TGeometry.h>
#include <TNode.h>
#include <TTree.h>
#include <TRandom.h>
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]);
}
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++) {
class AliMUONClusterFinderVS;
class AliMUONReconstHit;
class TVector;
-class TObjArray;
+#include "TObjArray.h"
class TFile;
class TTree;
/*
$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
#include <TVirtualX.h>
#include <TMath.h>
#include <TMatrix.h>
+#include <TGeometry.h>
#include <X3DBuffer.h>
#include <TMarker3DBox.h>
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;
}
/*
$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
#include <TRandom.h>
#include <TFile.h>
+#include <TTree.h>
#include "AliMUONEventReconstructor.h"
#include "AliMUON.h"
#include "AliMUONTrack.h"
#include "AliMUONChamber.h"
#include "AliMUONTrackHit.h"
+#include "AliMagF.h"
#include "AliRun.h"
#include "TParticle.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
/*
$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
// 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
/*
$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.
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);
-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)
// 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
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
**************************************************************************/
/*
$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.
#include "AliMUONRawCluster.h"
+#include <TROOT.h>
+#include <TTree.h>
#include <TPolyMarker3D.h>
#include <TMatrix.h>
#include <TPad.h>
// 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
//
// 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);
/*
$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
(*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
// 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);
//
// 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);
/*
$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...
#include "AliMUONTrackParam.h"
#include "AliMUONChamber.h"
#include "AliRun.h"
+#include "AliMagF.h"
ClassImp(AliMUONTrackParam) // Class implementation in ROOT context
**************************************************************************/
/*
$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.
{
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++;
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) {
// 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
// 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
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;
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();
**************************************************************************/
/*
$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
#include "AliMUONPoints.h"
#include "TMath.h"
#include "TFile.h"
+#include "TROOT.h"
#include "TH3.h"
#include <iostream.h>
/*
$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.
#include "AliMUONChamber.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliMUONHit.h"
#include "AliMUONPadHit.h"
#include "AliCallf77.h"
/*
$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
#include "AliMUONv1.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliCallf77.h"
#include "AliConst.h"
#include "AliMUONChamber.h"
#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;
# C++ Headers
-HDRS = $(SRCS:.cxx=.h) MUONLinkDef.h
+HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h \
+ $(ROOTSYS)/include/TMatrix.h MUONLinkDef.h
# Library dictionary
#include "AliPHOS.h"
#include "AliMC.h"
#include "AliRun.h"
+#include "AliMagF.h"
ClassImp(AliPHOS)
}
//____________________________________________________________________________
-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
}
//____________________________________________________________________________
-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
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
// --- ROOT system ---
+#include "TTree.h"
+
// --- Standard library ---
// --- AliRoot header files ---
#include "TBRIK.h"
#include "TNode.h"
#include "TRandom.h"
+#include "TGeometry.h"
// --- Standard library ---
#include "AliPHOSv0.h"
#include "AliRun.h"
#include "AliConst.h"
+#include "AliMC.h"
ClassImp(AliPHOSv0)
#include "TBRIK.h"
#include "TNode.h"
#include "TRandom.h"
+#include "TTree.h"
// --- Standard library ---
#include "AliPHOSReconstructioner.h"
#include "AliRun.h"
#include "AliConst.h"
+#include "AliMC.h"
ClassImp(AliPHOSv1)
#include "AliPHOSDigit.h"
#include "AliRun.h"
#include "AliConst.h"
+#include "AliMC.h"
ClassImp(AliPHOSv3)
#include "TBRIK.h"
#include "TNode.h"
#include "TParticle.h"
+#include "TTree.h"
+#include "TGeometry.h"
// --- Standard library ---
#include "AliPHOSv4.h"
#include "AliRun.h"
#include "AliConst.h"
+#include "AliMC.h"
ClassImp(AliPHOSv4)
# C++ Headers
-HDRS = $(SRCS:.cxx=.h) PHOSLinkDef.h
+HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h
# Library dictionary
/*
$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
#include <TBRIK.h>
#include <TNode.h>
+#include <TGeometry.h>
+
#include "AliPMD.h"
#include "AliRun.h"
#include "AliMC.h"
/*
$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
#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;
/*
$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
#include "AliPMDv1.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
static Int_t maxbox, kdet;
/*
$Log$
+Revision 1.6 1999/09/29 09:24:28 fca
+Introduction of the Copyright and cvs 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];
/*
$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
#include <TArrayF.h>
#include <TFile.h>
#include <TParticle.h>
+#include <TGeometry.h>
+#include <TTree.h>
+
#include <iostream.h>
#include <strings.h>
#include "AliRICHClusterFinder.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
#include "AliPDG.h"
#include "AliPoints.h"
/*
$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.
}
-
-
-
-
-
-
-
-
-
+//______________________________________________________________________________
+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;
+ }
+}
/*
$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)
#include "AliRICHDigit.h"
#include "AliRun.h"
#include "TParticle.h"
+#include "TTree.h"
#include "TMath.h"
#include "TRandom.h"
//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];
/*
$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.
#include <TArc.h>
#include <TTUBE.h>
#include <TSlider.h>
+#include <TGeometry.h>
#include <TSliderBox.h>
#include <TGaxis.h>
#include <TVirtualX.h>
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) {
}
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++;
}
}
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++;
/*
$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.)
#include <TRandom.h>
#include <TCanvas.h>
#include <TH2.h>
+#include <TTree.h>
ClassImp(AliRICHPatRec)
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;
/*
$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"
/*
$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>
#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
/*
$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
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;
/*
$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
#include "AliSTARTv0.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliSTARThit.h"
#include <iostream.h>
#include "AliSTARTv1.h"
#include "AliRun.h"
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliSTARThit.h"
#include <iostream.h>
**************************************************************************/
/*
$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"
/*
$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
//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;
} 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]++;
}
//
/* $Id$ */
#include <AliModule.h>
-#include <AliHit.h>
+class AliHit;
class AliDetector : public AliModule {
// 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);}
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);
////////////////////////////////////////////////
#include "TObject.h"
-#include "TClonesArray.h"
+class TClonesArray;
typedef TClonesArray DigitsList ;
/*
$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
#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;
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*
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*
/*
$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
//
}
+//_______________________________________________________________________
+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);
+}
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;}
// 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
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
// --- 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 {
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
};
/*
$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
fEvent=event;
}
-void AliHeader::Dump()
+void AliHeader::Print(const char *)
{
//
// Dumps header content
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
#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
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
};
// 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
/*
$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
//////////////////////////////////////////////////////////////
#include "TMath.h"
+
#include "AliLego.h"
#include "AliLegoGenerator.h"
#include "AliRun.h"
#include "AliConst.h"
#include "AliMC.h"
+#include "TH2.h"
ClassImp(AliLego)
// //
///////////////////////////////////////////////////////////////////////////////
-#include <TH2.h>
+#include "TNamed.h"
+class TH2F;
class AliLegoGenerator;
///////////////////////////////////////////////////////////////////////////////
#include <TNamed.h>
-#include <TLorentzVector.h>
+class TLorentzVector;
class AliMC;
class AliDecayer;
AliMC(const AliMC &) {}
AliMC & operator=(const AliMC &) {return (*this);}
- ClassDef(AliMC,1) //Geometry Interface Class
+ ClassDef(AliMC,1) //Virtual MonteCarlo Interface
};
#endif
/*
$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
#include "AliMagF.h"
-#include "TSystem.h"
#include <stdlib.h>
#include <stdio.h>
/* $Id$ */
#include "TNamed.h"
-#include "TVector.h"
enum Field_t {kUndef=1, kConst=1, kConMesh=2, kDipoMap=3};
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;}
/* $Id$ */
#include "AliMagF.h"
+#include "TVector.h"
class AliMagFCM : public AliMagF
{
/*
$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
//_________________________________________
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
/*
$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
//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)
/* $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:
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;}
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);
/*
$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
#include "AliDetector.h"
#include "TPad.h"
#include "TView.h"
+#include "TParticle.h"
ClassImp(AliPoints)
/* $Id$ */
#include "TPolyMarker3D.h"
-#include "AliDetector.h"
-#include "TParticle.h"
+class AliDetector;
+class TParticle;
class AliPoints : public TPolyMarker3D {
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*
/*
$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
//-*-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
//////////////////////////////////////////////////////////////////////////////
// --- AliRoot header files ---
#include "AliRecPoint.h"
+#include "AliGeometry.h"
+#include "AliDigitNew.h"
ClassImp(AliRecPoint)
}
//____________________________________________________________________________
-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
//____________________________________________________________________________
-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
// //
////////////////////////////////////////////////
-// --- 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 {
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; }
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
};
/*
$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
// //
///////////////////////////////////////////////////////////////////////////////
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
#include <TFile.h>
#include <TRandom.h>
#include <TBRIK.h>
#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"
#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;
}
//_____________________________________________________________________________
-void AliRun::DumpPart (Int_t i)
+void AliRun::DumpPart (Int_t i) const
{
//
// Dumps particle i in the stack
}
//_____________________________________________________________________________
-void AliRun::DumpPStack ()
+void AliRun::DumpPStack () const
{
//
// Dumps the particle stack
}
//_____________________________________________________________________________
-AliModule *AliRun::GetModule(const char *name)
+AliModule *AliRun::GetModule(const char *name) const
{
//
// Return pointer to detector from name
}
//_____________________________________________________________________________
-AliDetector *AliRun::GetDetector(const char *name)
+AliDetector *AliRun::GetDetector(const char *name) const
{
//
// Return pointer to detector from name
}
//_____________________________________________________________________________
-Int_t AliRun::GetModuleID(const char *name)
+Int_t AliRun::GetModuleID(const char *name) const
{
//
// Return galice internal detector identifier from name
}
//_____________________________________________________________________________
-Int_t AliRun::GetPrimary(Int_t track)
+Int_t AliRun::GetPrimary(Int_t track) const
{
//
// return number of primary that has generated track
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)
{
/* $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:
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();
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();
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;}
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;}
// 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
//
// 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;
// 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
# C++ Headers
-HDRS = $(SRCS:.cxx=.h) AliPDG.h STEERLinkDef.h
+HDRS = $(SRCS:.cxx=.h) AliPDG.h $(ROOTSYS)/include/TH2.h STEERLinkDef.h
# Library dictionary
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 ################################
/*
$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.
#include "AliABSO.h"
#include "AliRun.h"
+#include "AliMagF.h"
#include "AliConst.h"
ClassImp(AliABSO)
/*
$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.
#include "AliABSOv0.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "AliConst.h"
ClassImp(AliABSOv0)
/*
$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
///////////////////////////////////////////////////////////////////////////////
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
#include "AliBODY.h"
ClassImp(AliBODY)
/*
$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
#include "AliDIPOv1.h"
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
ClassImp(AliDIPOv1)
/*
$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
#include "AliDIPOv2.h"
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
ClassImp(AliDIPOv2)
/*
$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
#include "AliFRAMEv0.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "TSystem.h"
ClassImp(AliFRAMEv0)
/*
$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
#include "AliFRAMEv1.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "TSystem.h"
ClassImp(AliFRAMEv1)
/*
$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
#include "AliHALL.h"
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
ClassImp(AliHALL)
/*
$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
#include "AliMAG.h"
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
ClassImp(AliMAG)
/*
$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
#include "AliPIPEv0.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "TSystem.h"
ClassImp(AliPIPEv0)
/*
$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
#include "AliPIPEv1.h"
#include "AliRun.h"
+#include "AliMagF.h"
#include "AliMC.h"
ClassImp(AliPIPEv1)
/*
$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
#include "AliPIPEv3.h"
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
ClassImp(AliPIPEv3)
/*
$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.
#include "AliSHIL.h"
#include "AliRun.h"
+#include "AliMagF.h"
#include "AliConst.h"
ClassImp(AliSHIL)
/*
$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.
#include "AliSHILv0.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "AliConst.h"
ClassImp(AliSHILv0)
/*
$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
#include "AliRun.h"
#include "TGeant3.h"
#include "AliCallf77.h"
+#include "AliModule.h"
+#include "AliMagF.h"
#ifndef WIN32
/*
$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.
#include <TDatabasePDG.h>
#include "AliCallf77.h"
#include "AliDecayer.h"
+#include "TLorentzVector.h"
#ifndef WIN32
# define gzebra gzebra_
/*
$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 !!
#include "TNode.h"
#include "TObject.h"
#include "TRandom.h"
+#include "TTree.h"
+
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
/*
$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
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);
}
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);
}
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;
// fscanf(rawfile, timeRow);
currentRoc->SetTime(nrow, timeRow);
}
- Int_t FinalWord;
+ // Int_t FinalWord;
// fscanf(rawfile,FinalWord);
}
// fscanf(rawfile,GlobalCheckSum);
/*
$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
#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)
/*
$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
#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"
/*
$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
#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"
/*
$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
#include "AliTOFv3.h"
#include "TBRIK.h"
+#include "TGeometry.h"
#include "TNode.h"
#include "TObject.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "AliConst.h"
/*
$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
#include "AliTOFv4.h"
#include "TBRIK.h"
+#include "TGeometry.h"
#include "TNode.h"
#include "TObject.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "AliConst.h"
/*
$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
#include <iostream.h>
#include <fstream.h>
#include "AliMC.h"
+#include "AliMagF.h"
#include "AliTPCParamSR.h"
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
// 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
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++;
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;
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
//---------------------------------------------------
- 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()*
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;
/*
$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
#include "AliTPCv2.h"
#include "AliTPCDigitsArray.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "AliConst.h"
#include "AliPDG.h"
#include "AliTPCParam.h"
/*
$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
#include <TMath.h>
#include "AliTPCv3.h"
#include "AliRun.h"
+#include "AliMC.h"
#include "AliConst.h"
#include "AliTPCDigitsArray.h"
#include"AliTPCParam.h"
/*
$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
#include <TMath.h>
#include <TNode.h>
#include <TPGON.h>
+#include <TGeometry.h>
+#include <TTree.h>
#include "AliTRD.h"
#include "AliRun.h"
#include "AliTRDgeometryHole.h"
#include "AliTRDgeometryFull.h"
#include "AliTRDrecPoint.h"
+#include "AliMagF.h"
+#include "AliMC.h"
ClassImp(AliTRD)
/*
$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
// //
///////////////////////////////////////////////////////////////////////////////
-#include "AliRun.h"
+#include <TROOT.h>
+#include <TTree.h>
+#include "AliRun.h"
#include "AliTRD.h"
#include "AliTRDclusterizer.h"
/*
$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
///////////////////////////////////////////////////////////////////////////////
#include <TRandom.h>
+#include <TTree.h>
#include "AliTRDclusterizerV0.h"
#include "AliTRDconst.h"
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);
/*
$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
///////////////////////////////////////////////////////////////////////////////
#include <TF1.h>
+#include <TTree.h>
#include "AliTRDclusterizerV1.h"
#include "AliTRDmatrix.h"
/*
$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
#include <TMath.h>
#include <TVector.h>
#include <TRandom.h>
+#include <TROOT.h>
+#include <TTree.h>
#include "AliTRD.h"
#include "AliTRDdigitizer.h"
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);
/*
$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
// //
///////////////////////////////////////////////////////////////////////////////
+#include <TTree.h>
+
#include "AliRun.h"
#include "AliTRDdigitsManager.h"
/*
$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
#include "AliTRDgeometry.h"
#include "AliTRDrecPoint.h"
+#include "AliMC.h"
ClassImp(AliTRDgeometry)
}
//_____________________________________________________________________________
-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
//_____________________________________________________________________________
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
}
//_____________________________________________________________________________
-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
}
//_____________________________________________________________________________
-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
}
//_____________________________________________________________________________
-Int_t AliTRDgeometry::GetPlane(Int_t d)
+Int_t AliTRDgeometry::GetPlane(Int_t d) const
{
//
// Reconstruct the plane number from the detector number
}
//_____________________________________________________________________________
-Int_t AliTRDgeometry::GetChamber(Int_t d)
+Int_t AliTRDgeometry::GetChamber(Int_t d) const
{
//
// Reconstruct the chamber number from the detector number
}
//_____________________________________________________________________________
-Int_t AliTRDgeometry::GetSector(Int_t d)
+Int_t AliTRDgeometry::GetSector(Int_t d) const
{
//
// Reconstruct the sector number from the detector number
}
//_____________________________________________________________________________
-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
}
//_____________________________________________________________________________
-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
#include "AliRun.h"
#include "AliRecPoint.h"
+#include "AliGeometry.h"
#include "AliTRDconst.h"
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;
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:
/*
$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
///////////////////////////////////////////////////////////////////////////////
#include "AliTRDgeometryFull.h"
+#include "AliMC.h"
ClassImp(AliTRDgeometryFull)
/*
$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
///////////////////////////////////////////////////////////////////////////////
#include "AliTRDgeometryHole.h"
+#include "AliMC.h"
ClassImp(AliTRDgeometryHole)
/*
$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
// //
///////////////////////////////////////////////////////////////////////////////
+#include <TTree.h>
+
#include "AliTRD.h"
#include "AliTRDgeometry.h"
#include "AliTRDsegmentArray.h"
/*
$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
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"
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];
//
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;
}
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;
/*
$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
#include <TBRIK.h>
#include <TNode.h>
+#include "TGeometry.h"
#include "AliZDC.h"
#include "AliRun.h"
/*
$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
#include "stdio.h"
#include "AliZDCv1.h"
#include "AliRun.h"
+#include "AliMagF.h"
#include "AliMC.h"
#include "AliCallf77.h"
#include "AliConst.h"
// 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