/*
$Log$
+Revision 1.7 2001/05/16 14:57:17 alibrary
+New files for folders and Stack
+
+Revision 1.6 2000/11/12 17:17:03 pcrochet
+BuildGeometry of AliMUON for trigger chambers delegated to AliMUONSegmentationTriggerX (same strategy as for tracking chambers)
+
+Revision 1.5 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.4 2000/06/29 12:34:09 morsch
+AliMUONSegmentation class has been made independent of AliMUONChamber. This makes
+it usable with any other geometry class. The link to the object to which it belongs is
+established via an index. This assumes that there exists a global geometry manager
+from which the pointer to the parent object can be obtained (in our case gAlice).
+
+Revision 1.3 2000/06/26 10:00:14 pcrochet
+global variables removed, problem with HP compiler solved (PH)
+
Revision 1.2 2000/06/15 07:58:48 morsch
Code from MUON-dev joined
#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));
- Float_t zPos=Chamber->Z();
+ if(pMUON->GetDebug()) cout << ClassName() << ": Initialize Trigger Chamber Module Geometry " << "\n";
+
+ 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()) cout << ClassName() << ": fZscale = " << fZscale << "\n";
// calculate yCmin and fYcmax
Int_t i;
fNpx=124;
fNpy=64;
- cout << "---------------------------------------------------- \n";
+// Set parent chamber number
+ fChamber=&(pMUON->Chamber(chamber));
+ fId=chamber;
+
+ if(pMUON->GetDebug()) cout << ClassName() << ": ---------------------------------------------------- \n";
}
// Sets virtual hit position, needed for evaluating pad response
// outside the tracking program
- fxhit=xhit;
- fyhit=yhit;
+ fXhit=xhit;
+ fYhit=yhit;
}