// DEFINITION OF THE TRACKING MEDIA
// for PHOS: idtmed[699->798] equivalent to fIdtmed[0->100]
- Int_t isxfld = AliSimulation::Instance()->GetMCApp()->Field()->Integ() ;
- Float_t sxmgmx = AliSimulation::Instance()->GetMCApp()->Field()->Max() ;
+ Int_t isxfld = gAlice->Field()->Integ() ;
+ Float_t sxmgmx = gAlice->Field()->Max() ;
// The scintillator of the calorimeter made of PBW04 -> idtmed[699]
AliMedium(0, "PHOS Xtal $", 0, 1,
Int_t bufferSize = 32000 ;
Int_t splitlevel = 0 ;
- TreeH()->Branch("PHOSEmcImpacts" , "TList", &fEMCImpacts , bufferSize, splitlevel);
- TreeH()->Branch("PHOSCpvImpacts" , "TList", &fCPVImpacts , bufferSize, splitlevel);
+ fLoader->TreeH()->Branch("PHOSEmcImpacts" , "TList", &fEMCImpacts , bufferSize, splitlevel);
+ fLoader->TreeH()->Branch("PHOSCpvImpacts" , "TList", &fCPVImpacts , bufferSize, splitlevel);
}
#include "AliHeader.h"
#include "AliLego.h"
#include "AliMC.h"
-#include "AliMCQA.h"
#include "AliRun.h"
#include "AliHit.h"
#include "AliStack.h"
fDecayPdg(0),
fImedia(0),
fTransParName("\0"),
- fMCQA(0),
fHitLists(0),
fTmpTreeTR(0),
fTmpFileTR(0),
fDecayPdg(0),
fImedia(new TArrayI(1000)),
fTransParName("\0"),
- fMCQA(0),
fHitLists(new TList()),
fTmpTreeTR(0),
fTmpFileTR(0),
//destructor
delete fGenerator;
delete fImedia;
- delete fMCQA;
delete fHitLists;
// Delete track references
}
if((module = dynamic_cast<AliModule*>(dets[i])))
module->PreTrack();
- fMCQA->PreTrack();
}
//_______________________________________________________________________
//Call the appropriate stepping routine;
AliModule *det = dynamic_cast<AliModule*>(gAlice->Modules()->At(id));
if(det && det->StepManagerIsEnabled()) {
- if(AliLog::GetGlobalDebugLevel()>0) fMCQA->StepManager(id);
det->StepManager();
}
}
fSummEnergy.Set(gMC->NofVolumes()+1);
fSum2Energy.Set(gMC->NofVolumes()+1);
- //
- fMCQA = new AliMCQA(gAlice->GetNdets());
-
// Register MC in configuration
AliConfig::Instance()->Add(gMC);
fTransParName = filename;
}
-//_______________________________________________________________________
-void AliMC::Browse(TBrowser *b)
-{
- //
- // Called when the item "Run" is clicked on the left pane
- // of the Root browser.
- // It displays the Root Trees and all detectors.
- //
- //detectors are in folders anyway
- b->Add(fMCQA,"AliMCQA");
-}
-
//_______________________________________________________________________
void AliMC::AddHit(Int_t id, Int_t track, Int_t *vol, Float_t *hits) const
{
class TTree;
class AliGenerator;
-class AliMCQA;
class AliTrackReference;
class AliMC : public TVirtualMCApplication {
virtual void Init();
virtual void SetTransPar(const char *filename="$(ALICE_ROOT)/data/galice.cuts");
- virtual void Browse(TBrowser *b);
- AliMCQA *GetMCQA() const {return fMCQA;}
//PH
virtual void AddHit(Int_t id, Int_t track, Int_t *vol, Float_t *hits) const;
virtual void AddDigit(Int_t id, Int_t *tracks, Int_t *digits) const;
Int_t fDecayPdg; // PDG code of particle with forced decay length
TArrayI *fImedia; //! Array of correspondence between media and detectors
TString fTransParName; // Name of the transport parameters file
- AliMCQA *fMCQA; // Pointer to MC Quality assurance class
TList *fHitLists; //! Lists of hits to be remapped by PurifyKine
//Temporary Track Reference tree related
TTree *fTmpTreeTR; //! Temporary track reference tree
}
//_______________________________________________________________________
-void AliMagF::Field(const float*, float *b) const
+void AliMagF::Field(const Float_t*, Float_t *b) const
{
//
// Method to return the field in one point -- dummy in this case
}
//_______________________________________________________________________
-void AliMagF::GetTPCInt(Float_t *, Float_t *b) const
+void AliMagF::GetTPCInt(const Float_t *, Float_t *b) const
{
//
// Obtain the integral of the field components in the TPC from given point
}
//_______________________________________________________________________
-void AliMagF::GetTPCIntCyl(Float_t *, Float_t *b) const
+void AliMagF::GetTPCIntCyl(const Float_t *, Float_t *b) const
{
//
// Obtain the integral of the field components in the TPC from given point
AliMagF(const AliMagF& maps);
virtual ~AliMagF() {}
AliMagF& operator=(const AliMagF& rhs);
- virtual void Field(const float *x, float *b) const;
- virtual void Field(const double *x, double *b) const;
- virtual void GetTPCInt(Float_t *xyz, Float_t *b) const;
- virtual void GetTPCIntCyl(Float_t *rphiz, Float_t *b) const;
+ virtual void Field(const Float_t *x, Float_t *b) const;
+ virtual void Field(const Double_t *x, Double_t *b) const;
+ virtual void GetTPCInt(const Float_t *xyz, Float_t *b) const;
+ virtual void GetTPCIntCyl(const Float_t *rphiz, Float_t *b) const;
virtual Int_t Type() const {return fType;}
virtual Float_t Max() const {return fMax;}
virtual Int_t Map() const {return fMap;}
}
Double_t
-AliTracker::MeanMaterialBudget(const Double_t *start, const Double_t *end, const Double_t *mparam)
+AliTracker::MeanMaterialBudget(const Double_t *start, const Double_t *end, Double_t *mparam)
{
//
// Calculate mean material budget and material properties between
Double_t GetSigmaZ() const {return fSigmaZ;}
static
- Double_t MeanMaterialBudget(const Double_t *start, const Double_t *end, const Double_t *mparam);
+ Double_t MeanMaterialBudget(const Double_t *start, const Double_t *end, Double_t *mparam);
static
Bool_t PropagateTrackTo(AliExternalTrackParam *track, Double_t x, Double_t m,
Double_t maxStep, Bool_t rotateTo=kTRUE, Double_t maxSnp=0.8);
fTracks->Clear();
// The magnetic field strength
- Double_t x[3] = { 0.0, 0.0, 0.0 };
+ const Double_t x[3] = { 0.0, 0.0, 0.0 };
Double_t b[3];
gAlice->Field(x,b); // b[] is in kilo Gauss
fField = b[2] * 0.1; // Tesla