36   using namespace KM3NETDAQ;
 
   46     JParser<> zap(
"Example program to histogram string and floor hits.");
 
   51     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
   56   catch(
const exception& error) {
 
   57     FATAL(error.what() << endl);
 
   81   TH1D 
h1(
"h1", NULL, 100, 0.0, 1.0e1);
 
   86   for (Int_t i = 1; i <= h2.GetXaxis()->GetNbins(); ++i) {
 
   87     h2.GetXaxis()->SetBinLabel(i, 
MAKE_CSTRING(
string.at(i-1)));
 
   89   for (Int_t i = 1; i <= h2.GetYaxis()->GetNbins(); ++i) {
 
   93   TH2D* h3 = (TH2D*) h2.Clone(
"h3");
 
   95   while (inputFile.hasNext()) {
 
   97     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
  108         const JPMTChannel& channel = router.getPMTChannel(*hit);
 
  123         const JPMTChannel& channel = router.getPMTChannel(*hit);
 
Auxiliary class to set-up Hit. 
 
Utility class to parse command line options. 
 
Auxiliary class to uniquely identify PMT readout channel. 
 
int getFloor() const 
Get floor number. 
 
#define MAKE_CSTRING(A)
Make C-string. 
 
then for HISTOGRAM in h0 h1
 
double getTime(const Hit &hit)
Get true time of hit. 
 
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...
 
Auxiliary class for defining the range of iterations of objects. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
int getNumberOfFloors(const JDetector &detector)
Get number of floors. 
 
int getIndex()
Get index for user I/O manipulation. 
 
static const JStringCounter getNumberOfStrings
Function object to count unique strings. 
 
int getString() const 
Get string number. 
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
Router for mapping of string identifier to index. 
 
General purpose class for object reading from a list of file names. 
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
const JLimit & getLimit() const 
Get limit. 
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
JTriggerCounter_t next()
Increment trigger counter.