]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - BCM/AliBCM.cxx
added new files to build system
[u/mrichter/AliRoot.git] / BCM / AliBCM.cxx
index 4bf2ef112268bf589cc11eeab6799fd794154079..3cc5175f480975fc1afc74bc628118e69d69071d 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "AliBCM.h"
 #include "AliBCMHit.h"
+#include "AliBCMLoader.h"
 #include "AliMagF.h"
 #include "AliRun.h"
 #include "AliMC.h"
@@ -76,7 +77,7 @@ void AliBCM::StepManager()
 //    
 
     static Float_t edepT;    
-    static Double_t xh[3] = {0., 0., 0.};
+    static Double_t xh[4] = {0., 0., 0., 0.};
     Float_t edep = 0.;
     Int_t   copy = -1; 
     
@@ -88,7 +89,8 @@ void AliBCM::StepManager()
        // Entering
        if (gMC->IsTrackEntering()) {
            edepT = 0.;
-           gMC->TrackPosition(xh[0],xh[1],xh[2]); 
+           gMC->TrackPosition(xh[0],xh[1],xh[2]);
+           xh[3] = gMC->TrackTime();
        }
        
        //
@@ -224,3 +226,13 @@ void AliBCM::SetTreeAddress()
        fHits   = new TClonesArray("AliBCMHit",  4000);
     AliDetector::SetTreeAddress();
 }
+
+//_____________________________________________________________________________
+AliLoader* AliBCM::MakeLoader(const char* topfoldername)
+{ 
+  //
+  // Builds BCM getter (AliLoader type)
+  AliDebug(1,Form("Creating AliBCMLoader, Top folder is %s ",topfoldername));
+  fLoader = new AliBCMLoader(GetName(),topfoldername);
+  return fLoader;
+}