]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSegmentationTrigger.cxx
AliRICHDetectV1 added.
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationTrigger.cxx
index 60a10b9c42b887b82996819b5635a88ad17e78da..47eeb44027c4705181b2d164e67946a633ab5975 100644 (file)
 
 /*
 $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
 
@@ -41,21 +62,26 @@ Draft version from P. Crochet
 
 #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;
 
@@ -69,7 +95,7 @@ void AliMUONSegmentationTrigger::Init(AliMUONChamber* Chamber)
   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;  
@@ -168,7 +194,11 @@ void AliMUONSegmentationTrigger::Init(AliMUONChamber* Chamber)
   fNpx=124;
   fNpy=64;  
 
-  cout << "---------------------------------------------------- \n";   
+// Set parent chamber number
+  fChamber=&(pMUON->Chamber(chamber));
+  fId=chamber;
+
+  if(pMUON->GetDebug()) cout << ClassName() << ": ---------------------------------------------------- \n";   
 
 }
 
@@ -220,8 +250,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;
 }