* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.2 2000/06/15 07:58:48 morsch
-Code from MUON-dev joined
-
-Revision 1.1.2.1 2000/06/09 21:47:24 morsch
-Code from AliMUONSegResTrigger.cxx
-
-*/
-
-/*
-old Log:
-AliMUONSegResTrigger.cxx,v $
-Revision 1.1.2.3 2000/04/26 12:32:39 morsch
-Mods by P. Crochet:
-- adapted to the new Trigger chamber geometry
-- method SetZScale removed
-
-Revision 1.1.2.2 2000/02/21 16:13:33 morsch
-Full cluster simulation activated by uncommenting corresponding lines in IntXY()
-
-Revision 1.1.2.1 2000/02/17 14:32:40 morsch
-Draft version from P. Crochet
-
-*/
+/* $Id$ */
#include "AliMUONSegmentationTrigger.h"
#include "AliMUONTriggerConstants.h"
+#include "AliRun.h"
+#include "AliMUON.h"
#include <TMath.h>
#include <TRandom.h>
#include <TArc.h>
#include "AliMUONChamber.h"
-#include <iostream.h>
-
+#include <Riostream.h>
+
ClassImp(AliMUONSegmentationTrigger)
//------------------------------------------------------------------
-void AliMUONSegmentationTrigger::Init(AliMUONChamber* Chamber)
+void AliMUONSegmentationTrigger::Init(Int_t chamber)
{
// initialize Module geometry
- cout << "Initialize Trigger Chamber Module Geometry " << "\n";
+ AliMUON *pMUON = (AliMUON *) gAlice->GetModule("MUON");
+ AliMUONChamber* iChamber=&(pMUON->Chamber(chamber));
+
+ if(pMUON->GetDebug()>1) printf("%s: Initialize Trigger Chamber Module Geometry\n",ClassName());
- Float_t zPos=Chamber->Z();
+ Float_t zPos=iChamber->Z();
Float_t z1Pos=1603.5;
fZscale = zPos/z1Pos;
Float_t z1pm=z1PosPlus/z1PosMinus;
Float_t z1mp=z1PosMinus/z1PosPlus;
- cout << " fZscale = " << fZscale << "\n";
+ if(pMUON->GetDebug()>1) printf("%s: fZscale = %f \n",ClassName(),fZscale);
// calculate yCmin and fYcmax
Int_t i;
fNpx=124;
fNpy=64;
- cout << "---------------------------------------------------- \n";
+// Set parent chamber number
+ fChamber=&(pMUON->Chamber(chamber));
+ fId=chamber;
}
// Sets virtual hit position, needed for evaluating pad response
// outside the tracking program
- fxhit=xhit;
- fyhit=yhit;
+ fXhit=xhit;
+ fYhit=yhit;
}