Jpp 20.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JRunHistograms.hh File Reference
#include "JSupport/JSupport.hh"
#include "JSupport/JSupportToolkit.hh"
#include "JTrigger/JTriggerInterface.hh"
#include "JTrigger/JTriggerBits.hh"
#include "JDetector/JModuleRouter.hh"
#include "JDetector/JDetectorToolkit.hh"
#include "km3net-dataformat/online/JDAQClock.hh"
#include "km3net-dataformat/online/JDAQ.hh"
#include "km3net-dataformat/online/JDAQTimeslice.hh"
#include "JGizmo/JGizmoToolkit.hh"
#include "JROOT/JManager.hh"
#include "TH1D.h"
#include "TH2D.h"
#include "TProfile2D.h"
#include "TAxis.h"
#include "TCanvas.h"
#include "TPaveText.h"
#include "TStyle.h"
#include "TString.h"
#include "TMath.h"
#include "TColor.h"
#include "TDirectory.h"
#include "TPRegexp.h"
#include "TObjArray.h"
#include "TObjString.h"

Go to the source code of this file.

Classes

struct  SummaryHistograms
 
struct  TimesliceHistograms
 
struct  TriggerHistograms
 
class  JRA_Histograms
 

Functions

TH2D * h2_detector_map_factory (const char *name, const char *title, std::set< int > &du_ids, int modules_per_string)
 

Function Documentation

◆ h2_detector_map_factory()

TH2D * h2_detector_map_factory ( const char * name,
const char * title,
std::set< int > & du_ids,
int modules_per_string )

Definition at line 51 of file JRunHistograms.hh.

51 {
52 TH2D * h2 = new TH2D (name, title,
53 du_ids.size(), -0.5 , du_ids.size() - 0.5 ,
54 modules_per_string , 0.5 , modules_per_string + 0.5);
55
56 for (Int_t ix = 1; ix <= h2->GetXaxis()->GetNbins(); ++ix) {
57 h2->GetXaxis()->SetBinLabel(ix, MAKE_CSTRING(*std::next(du_ids.begin(), ix-1)));
58 }
59
60 return h2;
61};
#define MAKE_CSTRING(A)
Make C-string.
Definition JPrint.hh:72