]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMD.cxx
Fixing problems in the HEAD
[u/mrichter/AliRoot.git] / FMD / AliFMD.cxx
index 7d2c92182738e3efba7377f9f4d33bffa6bd5d9a..e3cc9ff3a34148f98daf63a4ccbc0baa82c3b362 100644 (file)
@@ -1,3 +1,31 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/*
+$Log$
+Revision 1.8  2000/10/02 21:28:07  fca
+Removal of useless dependecies via forward declarations
+
+Revision 1.7  2000/01/19 17:16:47  fca
+Introducing a list of lists of hits -- more hits allowed for detector now
+
+Revision 1.6  1999/09/29 09:24:14  fca
+Introduction of the Copyright and cvs Log
+
+*/
+
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
 //  Forward Multiplicity Detector                                            //
@@ -6,7 +34,7 @@
 //                                                                           //
 //Begin_Html
 /*
-<img src="gif/AliFMDClass.gif">
+<img src="picts/AliFMDClass.gif">
 </pre>
 <br clear=left>
 <font size=+2 color=red>
 
 #include <TTUBE.h>
 #include <TNode.h>
+#include <TGeometry.h>
+#include <TLorentzVector.h>
+
+#include "AliMC.h"
 #include "AliRun.h"
 #include "AliFMD.h"
-#include "TGeant3.h"
  
 ClassImp(AliFMD)
  
@@ -48,6 +79,7 @@ AliFMD::AliFMD(const char *name, const char *title)
   //
   // Initialise Hit array
   fHits   = new TClonesArray("AliFMDhit",  405);
+  gAlice->AddHitList(fHits);
   
   fIshunt     =  0;
 }
@@ -136,13 +168,14 @@ void AliFMD::StepManager()
   //
   
   Float_t       hits[3];
-  Int_t         copy,vol[1];
+  Int_t         i,copy,vol[1];
   TClonesArray &lhits = *fHits;
-  AliMC* pMC=AliMC::GetMC();
+  TLorentzVector p;
   
-  pMC->CurrentVol(0, copy);
+  gMC->CurrentVolID(copy);
   vol[0] = copy;
-  pMC->TrackPosition(hits);
+  gMC->TrackPosition(p);
+  for(i=0;i<3;++i) hits[i]=p[i];
   new(lhits[fNhits++]) AliFMDhit(fIshunt,gAlice->CurrentTrack(),vol,hits);
 }