20 using namespace KM3NETDAQ;
 
   21 using namespace JLANG;   
 
   32   TAxis *axis      = h->GetXaxis();
 
   33   int bins         = axis->GetNbins();
 
   34   Axis_t min       = axis->GetXmin();
 
   35   Axis_t max       = axis->GetXmax();
 
   36   Axis_t width     = (max - min) / bins;
 
   37   Axis_t *new_bins = 
new Axis_t[bins + 1];
 
   39   for (
int i = 0; i <= bins; i++) {
 
   40     new_bins[i] = TMath::Power(10, min + i * width);
 
   43   axis->Set(bins, new_bins);
 
   48 int main(
int argc, 
char **argv) {
 
   59     zap[
'f'] = 
make_field(inputFile  , 
"Path to input file ");
 
   60     zap[
'o'] = 
make_field(outputFile , 
"Path to output file") = 
"out.root"; 
 
   65   catch(
const exception &error) {
 
   66     ERROR(error.what() << endl);
 
   73   TH1D* 
h1 = 
new TH1D(
"rate_%", NULL, 100, -2, 2);
 
   74   TH1D* h2 = 
new TH1D(
"time_%", NULL, 1, -0.5, 0.5);
 
   90     for(JDAQTimeslice::const_iterator frame = slice->begin() ; frame != slice->end() ; ++frame) {
 
   95         pmt_hit_count[hit->getPMT()]++;
 
  107     for(
int j=1 ; 
j < i -> second -> GetNbinsX() ; ++
j){
 
  109       double width = i->second->GetXaxis()->GetBinWidth(
j);
 
  110       i -> second->SetBinContent(
j ,i->second->GetBinContent(
j)/width);
 
  111       i -> second->SetBinError  (
j ,i->second->GetBinError  (
j)/width);
 
  115   TFile out(outputFile.c_str(), 
"recreate");
 
Utility class to parse command line options. 
 
virtual const pointer_type & next()
Get next element. 
 
ROOT TTree parameter settings. 
 
then for HISTOGRAM in h0 h1
 
static counter_type max()
Get maximum counter value. 
 
Dynamic ROOT object management. 
 
Template definition for direct access of elements in ROOT TChain. 
 
int getFrameIndex() const 
Get frame index. 
 
esac $JPP_DIR examples JDetector JTransitTime o $OUTPUT_FILE n N $NPE T $TTS_NS d $DEBUG for HISTOGRAM in tts tt2 pmt
 
Auxiliary class to manage set of compatible ROOT objects (e.g. 
 
Auxiliary class for defining the range of iterations of objects. 
 
int getFrameIndex(const double t_ns)
Get frame index for a given time in ns. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
void Write(TDirectory &out, const bool wm=false)
Write objects to file. 
 
double getFrameTime()
Get frame time duration. 
 
Scanning of objects from multiple files according a format that follows from the extension of each fi...
 
virtual bool hasNext()
Check availability of next element. 
 
General purpose class for object reading from a list of file names. 
 
Utility class to parse command line options. 
 
KM3NeT DAQ constants, bit handling, etc. 
 
static const int NUMBER_OF_PMTS
Total number of PMTs in module. 
 
bool putObject(TDirectory *dir, const T &object)
Write object to ROOT directory. 
 
int main(int argc, char *argv[])