#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "TProfile.h"
#include "JDAQ/JDAQSummarysliceIO.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) |
|
Example program to histogram KM3NETDAQ::JDAQSummaryslice.
- Author
- mdejong
Definition in file JDAQSummaryslice.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 27 of file JDAQSummaryslice.cc.
34 JLimit_t& numberOfEvents = inputFile.getLimit();
40 JParser<> zap(
"Example program to histogram summary data.");
44 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
49 catch(
const exception& error) {
50 FATAL(error.what() << endl);
54 const double factor = 1.0e-3;
60 TH1D h0(
"h0", NULL, JDAQRate::getN(), JDAQRate::getData(factor));
61 TH1D h1(
"h1", NULL, 32,-0.5, 32.5);
73 << setw(6) << summaryslice->size() << endl);
75 for (JDAQSummaryslice::const_iterator frame = summaryslice->begin(); frame != summaryslice->end(); ++frame) {
78 h0.Fill(frame->getRate(pmt, factor), frame->getWeight(pmt, factor));
79 h1.Fill((Double_t) pmt, frame->testHighRateVeto(pmt));
82 if (frame->testWhiteRabbitStatus()) {
83 h1.Fill((Double_t) 32);