]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUON.cxx
Adding new AddHit function
[u/mrichter/AliRoot.git] / MUON / AliMUON.cxx
index f9a805bb760546395f0c74bce7181be5ded5dbeb..1667bfcf7770fc135062bb6a6a41a1873e4631b5 100644 (file)
  **************************************************************************/
 /*
 $Log$
+Revision 1.59  2002/11/21 17:01:56  alibrary
+Removing AliMCProcess and AliMC
+
+Revision 1.58  2002/10/21 09:01:33  alibrary
+Getting rid of unused variable
+
+Revision 1.57  2002/10/14 14:57:29  hristov
+Merging the VirtualMC branch to the main development branch (HEAD)
+
 Revision 1.56.6.2  2002/07/24 10:07:20  alibrary
 Updating VirtualMC
 
@@ -263,10 +272,9 @@ Log message added
 #include "AliMUONTriggerDecision.h"
 #include "AliRun.h"
 #include "AliHeader.h"
-#include "AliMC.h"
 #include "AliMUONClusterInput.h"
 #include "AliMUONMerger.h"     
-#include "iostream.h"
+#include "Riostream.h"
 #include "AliConst.h" 
 
 // Defaults parameters for Z positions of chambers
@@ -430,7 +438,6 @@ AliMUON::~AliMUON()
 // Destructor
     if(fDebug) printf("%s: Calling AliMUON destructor !!!\n",ClassName());
     
-    Int_t i;
     fIshunt  = 0;
  
     // Delete TObjArrays
@@ -493,7 +500,19 @@ void AliMUON::AddHit(Int_t track, Int_t *vol, Float_t *hits)
   new(lhits[fNhits++]) AliMUONHit(fIshunt,track,vol,hits);
 }
 //___________________________________________
-void AliMUON::AddPadHit(Int_t *clhits)
+void AliMUON::AddHit(Int_t fIshunt, Int_t track, Int_t iChamber, 
+             Int_t idpart, Float_t X, Float_t Y, Float_t Z, 
+             Float_t tof, Float_t momentum, Float_t theta, 
+             Float_t phi, Float_t length, Float_t destep)
+{
+  TClonesArray &lhits = *fHits;
+  new(lhits[fNhits++]) AliMUONHit(fIshunt, track, iChamber, 
+              idpart, X, Y, Z, 
+              tof, momentum, theta, 
+              phi, length, destep);
+}
+//___________________________________________
+void AliMUON::AddPadHit(Int_t *clhits)  // To be removed
 {
    TClonesArray &lclusters = *fPadHits;
    new(lclusters[fNPadHits++]) AliMUONPadHit(clhits);
@@ -575,6 +594,7 @@ void AliMUON::MakeBranch(Option_t* option, const char *file)
     const char *cR = strstr(option,"R");
     const char *cH = strstr(option,"H");
 
+    // PadHits to be removed
     if (fPadHits   && gAlice->TreeH() && cH) {
       MakeBranchInTree(gAlice->TreeH(), 
                        branchname, &fPadHits, kBufferSize, file);
@@ -901,6 +921,7 @@ void AliMUON::SDigits2Digits()
 }
 
 //___________________________________________
+// To be removed
 void AliMUON::MakePadHits(Float_t xhit,Float_t yhit, Float_t zhit,
                          Float_t eloss, Float_t tof,  Int_t idvol)
 {
@@ -1184,7 +1205,7 @@ void AliMUON::Streamer(TBuffer &R__b)
 
 AliMUONPadHit* AliMUON::FirstPad(AliMUONHit*  hit, TClonesArray *clusters) 
 {
-//
+// to be removed
     // Initialise the pad iterator
     // Return the address of the first padhit for hit
     TClonesArray *theClusters = clusters;
@@ -1200,6 +1221,7 @@ AliMUONPadHit* AliMUON::FirstPad(AliMUONHit*  hit, TClonesArray *clusters)
 
 AliMUONPadHit* AliMUON::NextPad(TClonesArray *clusters) 
 {
+  // To be removed
 // Get next pad (in iterator) 
 //
     AliMUON::fCurIterPad++;