/*
$Log$
+Revision 1.7 2000/10/02 21:28:09 fca
+Removal of useless dependecies via forward declarations
+
+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->SetPoint(0,xpad,ypad,zpos);
for (Int_t imark=0;imark<nPara; imark++)
{
+ Int_t lineColor = (zpad-zpos > 0) ? 2:3;
segmentation->GetPadC(mdig->fPadX + imark*offset, mdig->fPadY,xpad, ypad, zpad);
marker=new TMarker3DBox(xpad,ypad,zpos,dpx,dpy,0,0,0);
- marker->SetLineColor(2);
+ marker->SetLineColor(lineColor);
marker->SetFillStyle(1001);
marker->SetFillColor(color);
marker->SetRefObject((TObject*)points);
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;
}