// TRACKR.ytrack = y-position of the last point
// TRACKR.ztrack = z-position of the last point
Int_t caller = GetCaller();
- if (caller == 1 || caller == 3 || caller == 6) { //bxdraw,endraw,usdraw
+ if (caller == 1 || caller == 3 || caller == 6 || caller == 11 || caller == 12) { //bxdraw,endraw,usdraw
position.SetX(GetXsco());
position.SetY(GetYsco());
position.SetZ(GetZsco());
// TRACKR.ytrack = y-position of the last point
// TRACKR.ztrack = z-position of the last point
Int_t caller = GetCaller();
- if (caller == 1 || caller == 3 || caller == 6) { //bxdraw,endraw,usdraw
+ if (caller == 1 || caller == 3 || caller == 6 || caller == 11 || caller == 12) { //bxdraw,endraw,usdraw
x = GetXsco();
y = GetYsco();
z = GetZsco();
// True if this is the first step of the track in the current volume
Int_t caller = GetCaller();
- if (caller == 11 || caller == 4) // bxdraw entering
+ if (caller == 11) // bxdraw entering
return 1;
else return 0;
}
// Returns the material number for a given volume ID
//
if (fVerbosityLevel >= 3)
- printf("VolId2Mate %d %d\n", id, fMediaByRegion[id]);
+ printf("VolId2Mate %d %d\n", id, fMediaByRegion[id-1]);
return fMediaByRegion[id-1];
}
//
int ir = fCurrentFlukaRegion;
int id = (FGeometryInit::GetInstance())->CurrentVolID(ir, copyNo);
+ copyNo++;
if (fVerbosityLevel >= 3)
printf("CurrentVolID: %d %d %d \n", ir, id, copyNo);
return id;
-
}
Int_t TFluka::CurrentVolOffID(Int_t off, Int_t& copyNo) const
int ir = fCurrentFlukaRegion;
int id = (FGeometryInit::GetInstance())->CurrentVolOffID(ir, off, copyNo);
+ copyNo++;
if (fVerbosityLevel >= 3)
printf("CurrentVolOffID: %d %d %d \n", ir, id, copyNo);
if (id == -1)