Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
TriggerHistograms Struct Reference

#include <JRunHistograms.hh>

Public Member Functions

 TriggerHistograms ()
 
void initialize (std::set< int > &du_ids, int modules_per_string)
 

Public Attributes

TH1D * h_Trigger_bit_event
 
TH1D * h_Trigger_bit_hit
 
TH1D * h_Snapshot_hits
 
TH1D * h_Triggered_hits
 
TH1D * h_Triggered_hits_3dmuon
 
TH2D * h_Triggered_hits_3dmuon_per_module
 
TH1D * h_Triggered_over_Snapshot_hits
 
TH1D * h_event_duration
 
TH1D * h_Number_of_overlays
 
TH2D * h_Snapshot_hits_per_module
 
TH2D * h_Triggered_hits_per_module
 
TH1D * h_pmt_distribution_triggered_hits
 
TH1D * h_tot_distribution_triggered_hits
 
TH1D * h_pmt_distribution_snapshot_hits
 
TH1D * h_tot_distribution_snapshot_hits
 
JManager< string, TH2D > * m_Snapshot_hits_per_pmt
 

Detailed Description

Definition at line 264 of file JRunHistograms.hh.

Constructor & Destructor Documentation

◆ TriggerHistograms()

TriggerHistograms::TriggerHistograms ( )
inline

Definition at line 288 of file JRunHistograms.hh.

288 {
289 h_Trigger_bit_event = NULL;
290 h_Trigger_bit_hit = NULL;
291 h_Snapshot_hits = NULL;
292 h_Triggered_hits = NULL;
296 h_event_duration = NULL;
305 }
TH2D * h_Triggered_hits_3dmuon_per_module
TH2D * h_Triggered_hits_per_module
JManager< string, TH2D > * m_Snapshot_hits_per_pmt
TH1D * h_tot_distribution_snapshot_hits
TH1D * h_pmt_distribution_snapshot_hits
TH2D * h_Snapshot_hits_per_module
TH1D * h_pmt_distribution_triggered_hits
TH1D * h_tot_distribution_triggered_hits
TH1D * h_Triggered_over_Snapshot_hits

Member Function Documentation

◆ initialize()

void TriggerHistograms::initialize ( std::set< int > & du_ids,
int modules_per_string )
inline

Definition at line 313 of file JRunHistograms.hh.

313 {
314
315 h_Trigger_bit_event = new TH1D ("h_Trigger_bit_event",
316 "Number of events as a function of trigger bit in event ; Trigger Bit ; Counts",
317 NUMBER_OF_TRIGGER_BITS , -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
318
319 for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
320
321 if (getTriggerName(i)){
322
323 h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
324 }else{
325
326 h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , "" );
327 }
328 }
329 h_Trigger_bit_event -> GetXaxis() -> LabelsOption("v");
330
331
332 h_Trigger_bit_hit = new TH1D ("h_Trigger_bit_hit",
333 "Number of hits per event as a function of trigger bit in hit ; Trigger Bit ; #Events",
334 NUMBER_OF_TRIGGER_BITS, -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
335
336 for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
337
338 if (getTriggerName(i)){
339
340 h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
341 }else{
342
343 h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , "" );
344 }
345 }
346
347 h_Trigger_bit_hit -> GetXaxis() -> LabelsOption("v");
348
349 h_Snapshot_hits = new TH1D ("h_Snapshot_hits", " ; Number of snapshot hits; Events ", 50, 0, 4 );
351
352 h_Triggered_hits = new TH1D ("h_Triggered_hits", " ; Number of triggered hits; Events ", 50 , 0, 4 );
354
355 h_Triggered_hits_3dmuon = new TH1D ("h_Triggered_hits_3dmuon", " ; Number of triggered hits for JTRIGGER3DMUON; Events ", 50 , 0, 3 );
357
358 h_Triggered_hits_3dmuon_per_module = h2_detector_map_factory("h_Triggered_hits_3dmuon_per_module",
359 "Number of triggered hits for JTRIGGER3DMUON; String ; Floor ; Number of JTRIGGER3DMUON hits",
360 du_ids, modules_per_string);
361
362 h_Triggered_over_Snapshot_hits = new TH1D ("h_Triggered_over_Snapshot_hits", " ; Triggered/Snapshot hits; Events", 100 , 0, 0.5 );
363
364 h_event_duration = new TH1D ("h_event_duration", " ; Event Duration [ns]; Events", 60 , 1, 6 );
366
367 h_Number_of_overlays = new TH1D ("h_Number_of_overlays", " ; Number of overlays; Events ", 1000, -0.5, 1000 - 0.5 );
368 h_Snapshot_hits_per_module = h2_detector_map_factory("h_Snapshot_hits_per_module",
369 " ; String ; Floor ; Number of snapshot hits ",
370 du_ids, modules_per_string);
371
372 h_Triggered_hits_per_module = h2_detector_map_factory("h_Triggered_hits_per_module",
373 " ; String ; Floor ; Number of triggered hits",
374 du_ids, modules_per_string);
375
376 m_Snapshot_hits_per_pmt = new JManager < string , TH2D > ( new TH2D ("%/h_Snapshot_hits_per_pmt",
377 " ; TDC Channel ; Floor ; Number of snapshot hits",
378 NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5 ,
379 modules_per_string , 0.5 , modules_per_string + 0.5 ) );
380
381 h_pmt_distribution_triggered_hits = new TH1D ("h_pmt_distribution_triggered_hits",
382 " ; TDC Channel ; Counts [a.u.]", NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
383 h_tot_distribution_triggered_hits = new TH1D ("h_tot_distribution_triggered_hits", " ; ToT [ns] ; Counts [a.u.]", 256 , -0.5, 255.5);
384 h_pmt_distribution_snapshot_hits = new TH1D ("h_pmt_distribution_snapshot_hits", " ; TDC Channel ; Counts [a.u.]", NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
385 h_tot_distribution_snapshot_hits = new TH1D ("h_tot_distribution_snapshot_hits", " ; ToT [ns] ; Counts [a.u.]", 256, -0.5, 255.5);
386 }
TH2D * h2_detector_map_factory(const char *name, const char *title, std::set< int > &du_ids, int modules_per_string)
void setLogarithmicX(TList *list)
Make x-axis of objects in list logarithmic (e.g. after using log10()).
const char * getTriggerName(JTriggerbit_t bit)
Get trigger name.
static const unsigned int NUMBER_OF_TRIGGER_BITS
Number of trigger bits.

Member Data Documentation

◆ h_Trigger_bit_event

TH1D* TriggerHistograms::h_Trigger_bit_event

Definition at line 266 of file JRunHistograms.hh.

◆ h_Trigger_bit_hit

TH1D* TriggerHistograms::h_Trigger_bit_hit

Definition at line 267 of file JRunHistograms.hh.

◆ h_Snapshot_hits

TH1D* TriggerHistograms::h_Snapshot_hits

Definition at line 268 of file JRunHistograms.hh.

◆ h_Triggered_hits

TH1D* TriggerHistograms::h_Triggered_hits

Definition at line 269 of file JRunHistograms.hh.

◆ h_Triggered_hits_3dmuon

TH1D* TriggerHistograms::h_Triggered_hits_3dmuon

Definition at line 270 of file JRunHistograms.hh.

◆ h_Triggered_hits_3dmuon_per_module

TH2D* TriggerHistograms::h_Triggered_hits_3dmuon_per_module

Definition at line 271 of file JRunHistograms.hh.

◆ h_Triggered_over_Snapshot_hits

TH1D* TriggerHistograms::h_Triggered_over_Snapshot_hits

Definition at line 272 of file JRunHistograms.hh.

◆ h_event_duration

TH1D* TriggerHistograms::h_event_duration

Definition at line 273 of file JRunHistograms.hh.

◆ h_Number_of_overlays

TH1D* TriggerHistograms::h_Number_of_overlays

Definition at line 274 of file JRunHistograms.hh.

◆ h_Snapshot_hits_per_module

TH2D* TriggerHistograms::h_Snapshot_hits_per_module

Definition at line 275 of file JRunHistograms.hh.

◆ h_Triggered_hits_per_module

TH2D* TriggerHistograms::h_Triggered_hits_per_module

Definition at line 276 of file JRunHistograms.hh.

◆ h_pmt_distribution_triggered_hits

TH1D* TriggerHistograms::h_pmt_distribution_triggered_hits

Definition at line 277 of file JRunHistograms.hh.

◆ h_tot_distribution_triggered_hits

TH1D* TriggerHistograms::h_tot_distribution_triggered_hits

Definition at line 278 of file JRunHistograms.hh.

◆ h_pmt_distribution_snapshot_hits

TH1D* TriggerHistograms::h_pmt_distribution_snapshot_hits

Definition at line 279 of file JRunHistograms.hh.

◆ h_tot_distribution_snapshot_hits

TH1D* TriggerHistograms::h_tot_distribution_snapshot_hits

Definition at line 280 of file JRunHistograms.hh.

◆ m_Snapshot_hits_per_pmt

JManager< string , TH2D >* TriggerHistograms::m_Snapshot_hits_per_pmt

Definition at line 283 of file JRunHistograms.hh.


The documentation for this struct was generated from the following file: