BLCMDeventcuts Class Reference

Inheritance diagram for BLCMDeventcuts:

BLCommand

List of all members.

Public Member Functions

 BLCMDeventcuts ()
G4String commandName ()
int command (BLArgumentVector &argv, BLArgumentMap &namedArgs)
void defineNamedArgs ()

Private Attributes

G4String filename


Constructor & Destructor Documentation

BLCMDeventcuts::BLCMDeventcuts (  ) 

References BLCMDTYPE_CUTS, filename, BLCommand::registerCommand(), BLCommand::setDescription(), and BLCommand::setSynopsis().

00039 {
00040         registerCommand(BLCMDTYPE_CUTS);
00041         setSynopsis("implements cuts on event number.");
00042         setDescription("The file is ASCII, with one event number per line. "
00043                 "Events whose EventID is not contained in the file will be "
00044                 "skipped. "
00045                 "The file is read at the start of every run, so it can be "
00046                 "changed between runs. This is particularly useful when "
00047                 "the file is written by HistoRoot (via its EventID option), "
00048                 "because the G4beamline GUI "
00049                 "and a HistoRoot window can both be left open, and the user "
00050                 "can alternate between them, selecting regions of plots with "
00051                 "HistoScope sliders, and then looking at the selected events "
00052                 "with G4beamline and a viewer.");
00053 
00054         filename = "";
00055 }


Member Function Documentation

G4String BLCMDeventcuts::commandName (  )  [inline, virtual]

Implements BLCommand.

00029 { return "eventcuts"; }

int BLCMDeventcuts::command ( BLArgumentVector argv,
BLArgumentMap namedArgs 
) [virtual]

Implements BLCommand.

References filename, BLManager::getObject(), BLCommand::handleNamedArgs(), BLCommand::print(), and BLManager::setEventCutFile().

00058 {
00059         int retval = handleNamedArgs(namedArgs);
00060 
00061         BLManager::getObject()->setEventCutFile(filename);
00062 
00063         print("");
00064 
00065         return retval;
00066 }

void BLCMDeventcuts::defineNamedArgs (  )  [virtual]

Reimplemented from BLCommand.

References BLCommand::argString(), and filename.

00069 {
00070         argString(filename,"filename","The file containing a list of event numbers.");
00071         argString(filename,"file","Synonym for filename.");
00072 }


Member Data Documentation

G4String BLCMDeventcuts::filename [private]


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