gMC->CurrentVolOffName(2),
gMC->CurrentVolOffName(3));
- Float_t a,z,den,rad,abs; a=z=den=rad=abs=kBad;
+ Float_t a,z,den,rad,abs; a=z=den=rad=abs=-1;
Int_t mid=gMC->CurrentMaterial(a,z,den,rad,abs);
Info("Material","id=%i a=%7.2f z=%7.2f den=%9.4f rad=%9.2f abs=%9.2f",mid,a,z,den,rad,abs);
- Int_t iTmedId=gMC->GetMedium();
+ Int_t iTmedId=gMC->CurrentMedium();
const char *sTmed;
switch(iTmedId){
case kAir: sTmed="Air" ;break;
}
Info("Medium","id=%i (%s)",iTmedId,sTmed);
- TLorentzVector x4;
- gMC->TrackPosition(x4);
+ TLorentzVector x4; gMC->TrackPosition(x4);
Float_t glo[3],loc[3];
glo[0]=x4.X();glo[1]=x4.Y();glo[2]=x4.Z();
gMC->Gmtod(glo,loc,1);
}
Info(Form("Step %i",iStepN++),"end of current step\n");
}//StepManager()
-