BLCMDzntuple::Entry Struct Reference

Inheritance diagram for BLCMDzntuple::Entry:

BLManager::ZSteppingAction

List of all members.

Public Member Functions

 Entry (BLCMDzntuple *znt, G4double zpos, BLCoordinateType _coordinateType)
void UserZSteppingAction (const G4Track *track)

Public Attributes

BLCMDzntuplezntuple
BLTrackNTuplentuple
BLCoordinateType coordinateType


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }


Member Data Documentation

Referenced by Entry().

Referenced by Entry(), and UserZSteppingAction().


The documentation for this struct was generated from the following file:
g4beamline