return;
}
-void AliFastGlauber::PlotLengthDistr(Int_t n,Bool_t save,Char_t *fname)
+void AliFastGlauber::PlotLengthDistr(Int_t n,Bool_t save,const char *fname)
{
//
// Plot length distribution
return;
}
-void AliFastGlauber::PlotLengthB2BDistr(Int_t n,Bool_t save,Char_t *fname)
+void AliFastGlauber::PlotLengthB2BDistr(Int_t n,Bool_t save,const char *fname)
{
//
// Plot lengths back-to-back distributions
}
void AliFastGlauber::PlotI0I1Distr(Int_t n,Double_t ellCut,
- Bool_t save,Char_t *fname)
+ Bool_t save,const char *fname)
{
//
// Plot I0-I1 distribution
}
void AliFastGlauber::PlotI0I1B2BDistr(Int_t n,Double_t ellCut,
- Bool_t save,Char_t *fname)
+ Bool_t save,const char *fname)
{
//
// Plot I0-I1 back-to-back distributions
void SetAuAuRhic();
void SetPbPbLHC();
void SetFileName(TString &fn){fName=fn;}
- void SetFileName(Char_t *fn="$(ALICE_ROOT)/FASTSIM/data/glauberPbPb.root"){fName=fn;}
+ void SetFileName(const char *fn="$(ALICE_ROOT)/FASTSIM/data/glauberPbPb.root"){fName=fn;}
static Double_t WSb (Double_t *xx, Double_t *par);
static Double_t WSbz (Double_t *xx, Double_t *par);
Double_t b=-1.);
void PlotBDistr(Int_t n=1000);
void PlotLengthDistr(Int_t n=1000,Bool_t save=kFALSE,
- Char_t *fname="length.root");
+ const char *fname="length.root");
void PlotLengthB2BDistr(Int_t n=1000,Bool_t save=kFALSE,
- Char_t *fname="lengthB2B.root");
+ const char *fname="lengthB2B.root");
void CalculateI0I1(Double_t& integral0,Double_t& integral1,
Double_t b=0.,
Double_t x0=0.,Double_t y0=0.,Double_t phi0=0.,
Double_t&x, Double_t &y,
Double_t ellCut=20.,Double_t b=-1.);
void PlotI0I1Distr(Int_t n=1000,Double_t ellCut=20.,Bool_t save=kFALSE,
- Char_t *fname="i0i1.root");
+ const char *fname="i0i1.root");
void PlotI0I1B2BDistr(Int_t n=1000,Double_t ellCut=20.,Bool_t save=kFALSE,
- Char_t *fname="i0i1B2B.root");
+ const char *fname="i0i1B2B.root");
void PlotAlmonds() const;
protected:
void Reset();
Int_t GetModuleType(Int_t index){
return GetGeomMatrix(index)->GetDetectorIndex();}
// Returns the detector type as a string
- Char_t * GetModuleTypeName(Int_t index){switch(GetModuleType(index)) {
+ const char * GetModuleTypeName(Int_t index){switch(GetModuleType(index)) {
case kSPD: return "kSPD";case kSDD: return "kSDD";case kSSD: return "kSSD";
case kSSDp: return"kSSDp";case kSDDp: return "kSDDp"; default: return "";}}
//
Int_t mod,typ,lay,lad,det,cpy,i,j,k;
Char_t names[ltypess][ndeep][4];
Int_t itsGeomTreeCopys[ltypess][ndeep];
- Char_t *namesA[ltypess][ndeep] = {
+ const char *namesA[ltypess][ndeep] = {
{"ALIC","ITSV","ITEL","ITAI","IMB0","IMBS"}, // lay=5
{"ALIC","ITSV","IDET","IDAI","ITS0","ITST"}};// Test SDD
Int_t itsGeomTreeCopysA[ltypess][ndeep]= {{1,1,10,1,1,1},// lay=5
//____________________________________________________________________________
-TVector3 AliPHOSGeometry::GetModuleCenter(char *det, Int_t module) const
+TVector3 AliPHOSGeometry::GetModuleCenter(const char *det, Int_t module) const
{
// Returns a position of the center of the CPV or EMC module
Float_t rDet = 0.;
Float_t GetCPVBoxSize(Int_t index) const { return fGeometryCPV ->GetCPVBoxSize(index); }
Float_t GetIPtoCPVDistance(void) const { return GetIPtoOuterCoverDistance() -
GetCPVBoxSize(1) - 1.0; }
- TVector3 GetModuleCenter(char *det, Int_t module) const;
+ TVector3 GetModuleCenter(const char *det, Int_t module) const;
TVector3 Global2Local(TVector3 globalPosition, Int_t module) const;
// Return PHOS' support geometry parameters
//____________________________________________________________________________
TVector3 AliPHOSTrackSegmentMakerv1::PropagateToPlane(Double_t *x, Double_t *p,
- char *det, Int_t moduleNumber) const
+ const char *det, Int_t moduleNumber) const
{
// Propagate a straight-line track from the origin point x
// along the direction p to the CPV or EMC module moduleNumber
const TString BranchName() const ;
Float_t GetDistanceInPHOSPlane(AliPHOSEmcRecPoint * EmcClu , AliPHOSCpvRecPoint * Cpv , Int_t & track ) const ; // see R0
- TVector3 PropagateToPlane(Double_t *x, Double_t *p, char *det, Int_t module) const;
+ TVector3 PropagateToPlane(Double_t *x, Double_t *p, const char *det, Int_t module) const;
void Init() ;
void InitParameters() ;
void PrintTrackSegments(Option_t *option) ;
//__________________________________________________________________________________________________
void AliRICHcluster::Print(Option_t*)const
{
- char *status=0;
+ const char *status=0;
switch(fStatus){
case kRaw: status="raw" ;break;
case kResolved: status="resolved";break;
// Converts hits to digits of the current event
//
// Inputs file name
- Char_t *alifile = "galice.root";
+ const char *alifile = "galice.root";
// Create the run digitizer
AliRunDigitizer* manager = new AliRunDigitizer(1, 1);