Public Member Functions | |
Entry (BLCMDzntuple *znt, G4double zpos, BLCoordinateType _coordinateType) | |
void | UserZSteppingAction (const G4Track *track) |
Public Attributes | |
BLCMDzntuple * | zntuple |
BLTrackNTuple * | ntuple |
BLCoordinateType | coordinateType |
BLCMDzntuple::Entry::Entry | ( | BLCMDzntuple * | znt, | |
G4double | zpos, | |||
BLCoordinateType | _coordinateType | |||
) |
References coordinateType, BLTrackNTuple::create(), BLCMDzntuple::file, BLCMDzntuple::format, BLCMDzntuple::noSingles, ntuple, BLCMDzntuple::require, snprintf, and zntuple.
00231 { 00232 char name[128]; 00233 snprintf(name,sizeof(name),"Z%.0f",floor(zpos+0.5)); 00234 00235 zntuple = znt; 00236 00237 coordinateType = _coordinateType; 00238 00239 ntuple = BLTrackNTuple::create(zntuple->format,"NTuple",name, 00240 zntuple->file,coordinateType,zntuple->require, 00241 zntuple->noSingles); 00242 }
void BLCMDzntuple::Entry::UserZSteppingAction | ( | const G4Track * | track | ) | [virtual] |
Implements BLManager::ZSteppingAction.
References BLTrackNTuple::appendTrack(), BEAM, BLCOORD_REFERENCE, coordinateType, BLManager::getObject(), BLManager::getState(), and ntuple.
00245 { 00246 // only use reference coordinates when they are valid 00247 BLManagerState state = BLManager::getObject()->getState(); 00248 if(coordinateType == BLCOORD_REFERENCE && state != BEAM) return; 00249 00250 ntuple->appendTrack(track); 00251 }
Referenced by Entry().
Referenced by BLCMDzntuple::callback(), Entry(), and UserZSteppingAction().
Referenced by Entry(), and UserZSteppingAction().