// 2. Timing signal is collected and added to hit
// --- ROOT system ---
-#include "TPGON.h"
-#include "TTUBS.h"
-#include "TNode.h"
-#include "TRandom.h"
-#include "TTree.h"
-#include "TGeometry.h"
#include "TParticle.h"
+#include "TVirtualMC.h"
// --- Standard library ---
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <Rstrstream.h>
-#include <Riostream.h>
-#include <math.h>
-
// --- AliRoot header files ---
-
#include "AliEMCALv1.h"
#include "AliEMCALHit.h"
#include "AliEMCALGeometry.h"
-#include "AliConst.h"
#include "AliRun.h"
+#include "AliMC.h"
ClassImp(AliEMCALv1)
// Standard Creator.
fHits= new TClonesArray("AliEMCALHit",1000);
- gAlice->AddHitList(fHits);
+ gAlice->GetMCApp()->AddHitList(fHits);
fNhits = 0;
fIshunt = 2; // All hits are associated with particles entering the calorimeter
Float_t pmom[4]={0.,0.,0.,0.};
TLorentzVector pos; // Lorentz vector of the track current position.
TLorentzVector mom; // Lorentz vector of the track current momentum.
- Int_t tracknumber = gAlice->CurrentTrack();
+ Int_t tracknumber = gAlice->GetMCApp()->GetCurrentTrackNumber();
Int_t primary = 0;
static Int_t iparent = 0;
static Float_t ienergy = 0;
Int_t parent = iparent ;
while ( parent != -1 ) { // <------------- flags this particle to be kept and
//all the ancestors of this particle
- part = gAlice->Particle(parent) ;
+ part = gAlice->GetMCApp()->Particle(parent) ;
part->SetBit(kKeepBit);
parent = part->GetFirstMother() ;
}
gMC->CurrentVolOffID(1, id[0]); // get the POLY copy number;
gMC->CurrentVolID(id[1]); // get the phi number inside the layer
- Int_t tower = (id[0]-1) % geom->GetNZ() + 1 + (id[1] - 1) * 96 ;
+ Int_t tower = (id[0]-1) % geom->GetNZ() + 1 + (id[1] - 1) * geom->GetNZ() ;
Int_t layer = static_cast<Int_t>((id[0]-1)/(geom->GetNZ())) + 1 ;
Int_t absid = tower ;
if (layer <= geom->GetNPRLayers() )
;
xyzte[4] = lightYield ;
- primary = gAlice->GetPrimary(tracknumber);
+ primary = gAlice->GetMCApp()->GetPrimary(tracknumber);
if (gDebug == 2)
Info("StepManager", "id0 = %d, id1 = %d, absid = %d tower = %d layer = %d energy = %f\n", id[0], id[1], absid, tower, layer, xyzte[4]) ;