Public Member Functions | |
BLCMDeventcuts () | |
G4String | commandName () |
int | command (BLArgumentVector &argv, BLArgumentMap &namedArgs) |
void | defineNamedArgs () |
Private Attributes | |
G4String | filename |
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 }
G4String BLCMDeventcuts::commandName | ( | ) | [inline, virtual] |
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] |
G4String BLCMDeventcuts::filename [private] |
Referenced by BLCMDeventcuts(), command(), and defineNamedArgs().