Monitoring of PMT time over threshold distributions.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "TROOT.h"
#include "TFile.h"
#include "TH2D.h"
#include "JGizmo/JManager.hh"
#include "JDAQ/JDAQ.hh"
#include "JDAQ/JDAQTimeslice.hh"
#include "JDAQ/JDAQSummaryslice.hh"
#include "JDetector/JDetectorToolkit.hh"
#include "JDetector/JModuleRouter.hh"
#include "JTools/JRange.hh"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JSupport.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Monitoring of PMT time over threshold distributions.
- Author
- mkarel
Definition in file JMonitorSinglesRates.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 31 of file JMonitorSinglesRates.cc.
35 using namespace KM3NETDAQ;
37 JMultipleFileScanner<JDAQSummaryslice> inputFile;
43 JParser<> zap(
"Monitoring of PMT time over threshold distributions.");
50 catch(
const exception &error) {
51 FATAL(error.what() << endl);
56 using namespace KM3NETDAQ;
58 const double factor = 1.0/1000 ;
59 const int Nbins = 90 ;
63 while (inputFile.hasNext()) {
65 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
69 for (KM3NETDAQ::JDAQSummaryslice::const_iterator summary_frame = summary->begin(); summary_frame != summary->end(); ++summary_frame) {
71 int DOMID = summary_frame->getModuleID() ;
72 TH2D* h_i = SinglesRatedistr[DOMID] ;
75 h_i->Fill(ipmt, summary_frame->getRate(ipmt, factor), summary_frame->getWeight(ipmt, factor));
85 SinglesRatedistr.Write(out) ;
Utility class to parse command line options.
Auxiliary class to manage set of histograms.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
#define DEBUG(A)
Message macros.