#include "AliBCM.h"
#include "AliBCMHit.h"
+#include "AliBCMLoader.h"
#include "AliMagF.h"
#include "AliRun.h"
#include "AliMC.h"
//
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;
// 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();
}
//
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;
+}
AliBCMHit::AliBCMHit():
AliHit(),
fId(-1),
- fEdep(0)
+ fEdep(0.),
+ fTime(0.)
{
// Default constructor
}
-AliBCMHit::AliBCMHit(Int_t shunt, Int_t track, Double_t x[3], Int_t isens, Float_t edep):
+AliBCMHit::AliBCMHit(Int_t shunt, Int_t track, Double_t x[4], Int_t isens, Float_t edep):
AliHit(shunt, track),
fId(isens),
- fEdep(edep)
+ fEdep(edep),
+ fTime(x[3])
{
// Constructor
fX = x[0];
{
public:
AliBCMHit();
- AliBCMHit(Int_t shunt, Int_t track, Double_t x[3], Int_t isens, Float_t edep);
- Int_t Id() { return fId; }
-
+ AliBCMHit(Int_t shunt, Int_t track, Double_t x[4], Int_t isens, Float_t edep);
+ Int_t Id() { return fId; }
+ Float_t Edep() { return fEdep; }
+ Float_t Time() { return fTime; }
private:
Int_t fId; // ID of the sensor (11, 12, 13, 14) for z > 0 and (21, 22, 23, 24) for z < 0
Float_t fEdep; // Deposited energy [GeV]
+ Float_t fTime; // Time of hit
ClassDef(AliBCMHit, 1) // BCM hit class
};