55 JLimit_t& nSlices = inputFile.getLimit();
64 zap[
'f'] =
make_field(inputFile ,
"Path to input file ");
65 zap[
'o'] =
make_field(outputFile ,
"Path to output file") =
"out.root";
66 zap[
'C'] =
make_field(selector ,
"timeslice selector, e.g. JDAQTimesliceL1.") = getROOTClassSelection<JDAQTimesliceTypes_t>();
67 zap[
's'] =
make_field(nSlices ,
"number of slices" ) = JLimit::max();
71 catch(
const exception &error) {
72 ERROR(error.what() << endl);
77 TH1D* h1 =
new TH1D(
"rate_%", NULL, 100, -2, 2);
78 TH1D* h2 =
new TH1D(
"time_%", NULL, 1, -0.5, 0.5);
82 s->configure(inputFile);
98 for ( ; scanner.hasNext() && counter != inputFile.getLimit(); ++counter) {
102 for(JDAQTimeslice::const_iterator frame = slice->begin() ; frame != slice->end() ; ++frame) {
107 pmt_hit_count[hit->getPMT()]++;
119 for(
int j=1 ;
j <
i -> second -> GetNbinsX() ; ++
j){
121 double width =
i->second->GetXaxis()->GetBinWidth(
j);
122 i -> second->SetBinContent(
j ,
i->second->GetBinContent(
j)/width);
123 i -> second->SetBinError (
j ,
i->second->GetBinError (
j)/width);
127 TFile out(outputFile.c_str(),
"recreate");
Utility class to parse command line options.
Auxiliary class to select ROOT class based on class name.
Auxiliary interface for direct access of elements in ROOT TChain.
Long64_t counter_type
Type definition for counter.
Auxiliary class for a type holder.
Auxiliary class for multiplexing object iterators.
int getFrameIndex() const
Get frame index.
Auxiliary class for defining the range of iterations of objects.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
double getFrameTime()
Get frame time duration.
bool putObject(TDirectory &dir, const TObject &object)
Write object to ROOT directory.
Auxiliary class to select JTreeScanner based on ROOT class name.
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
General purpose class for object reading from a list of file names.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.