]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSegmentationTrigger.cxx
Transition to NewIO
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationTrigger.cxx
index 60a10b9c42b887b82996819b5635a88ad17e78da..91183666e173aeebc32463346e950530c345e3bf 100644 (file)
  * 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;
 
@@ -69,7 +50,7 @@ void AliMUONSegmentationTrigger::Init(AliMUONChamber* Chamber)
   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;  
@@ -168,7 +149,9 @@ void AliMUONSegmentationTrigger::Init(AliMUONChamber* Chamber)
   fNpx=124;
   fNpy=64;  
 
-  cout << "---------------------------------------------------- \n";   
+// Set parent chamber number
+  fChamber=&(pMUON->Chamber(chamber));
+  fId=chamber;
 
 }
 
@@ -220,8 +203,8 @@ void AliMUONSegmentationTrigger::SetHit(Float_t xhit, Float_t yhit)
     // Sets virtual hit position, needed for evaluating pad response 
     // outside the tracking program 
     
-  fxhit=xhit;
-  fyhit=yhit;
+  fXhit=xhit;
+  fYhit=yhit;
 }