Jpp test-rotations-new
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 248 of file JRunHistograms.hh.

Constructor & Destructor Documentation

◆ TriggerHistograms()

TriggerHistograms::TriggerHistograms ( )
inline

Definition at line 272 of file JRunHistograms.hh.

272 {
273 h_Trigger_bit_event = NULL;
274 h_Trigger_bit_hit = NULL;
275 h_Snapshot_hits = NULL;
276 h_Triggered_hits = NULL;
280 h_event_duration = NULL;
289 }
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 297 of file JRunHistograms.hh.

297 {
298
299 h_Trigger_bit_event = new TH1D ("h_Trigger_bit_event",
300 "Number of events as a function of trigger bit in event ; Trigger Bit ; Counts",
301 NUMBER_OF_TRIGGER_BITS , -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
302
303 for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
304
305 if (getTriggerName(i)){
306
307 h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
308 }else{
309
310 h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , "" );
311 }
312 }
313 h_Trigger_bit_event -> GetXaxis() -> LabelsOption("v");
314
315
316 h_Trigger_bit_hit = new TH1D ("h_Trigger_bit_hit",
317 "Number of hits per event as a function of trigger bit in hit ; Trigger Bit ; #Events",
318 NUMBER_OF_TRIGGER_BITS, -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
319
320 for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
321
322 if (getTriggerName(i)){
323
324 h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
325 }else{
326
327 h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , "" );
328 }
329 }
330
331 h_Trigger_bit_hit -> GetXaxis() -> LabelsOption("v");
332
333 h_Snapshot_hits = new TH1D ("h_Snapshot_hits", " ; Number of snapshot hits; Events ", 50, 0, 4 );
335
336 h_Triggered_hits = new TH1D ("h_Triggered_hits", " ; Number of triggered hits; Events ", 50 , 0, 4 );
338
339 h_Triggered_hits_3dmuon = new TH1D ("h_Triggered_hits_3dmuon", " ; Number of triggered hits for JTRIGGER3DMUON; Events ", 50 , 0, 3 );
341
342 h_Triggered_hits_3dmuon_per_module = new TH2D ("h_Triggered_hits_3dmuon_per_module",
343 "Number of triggered hits for JTRIGGER3DMUON; String ; Floor ; Number of JTRIGGER3DMUON hits",
344 *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5,
345 modules_per_string , 0.5 , modules_per_string + 0.5 );
346
347 h_Triggered_over_Snapshot_hits = new TH1D ("h_Triggered_over_Snapshot_hits", " ; Triggered/Snapshot hits; Events", 100 , 0, 0.5 );
348
349 h_event_duration = new TH1D ("h_event_duration", " ; Event Duration [ns]; Events", 60 , 1, 6 );
351
352 h_Number_of_overlays = new TH1D ("h_Number_of_overlays", " ; Number of overlays; Events ", 1000, -0.5, 1000 - 0.5 );
353 h_Snapshot_hits_per_module = new TH2D ("h_Snapshot_hits_per_module",
354 " ; String ; Floor ; Number of snapshot hits ",
355 *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
356 modules_per_string , 0.5 , modules_per_string + 0.5 );
357
358 h_Triggered_hits_per_module = new TH2D ("h_Triggered_hits_per_module",
359 " ; String ; Floor ; Number of triggered hits",
360 *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
361 modules_per_string , 0.5 , modules_per_string + 0.5 );
362
363 m_Snapshot_hits_per_pmt = new JManager < string , TH2D > ( new TH2D ("%/h_Snapshot_hits_per_pmt",
364 " ; TDC Channel ; Floor ; Number of snapshot hits",
365 NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5 ,
366 modules_per_string , 0.5 , modules_per_string + 0.5 ) );
367
368 h_pmt_distribution_triggered_hits = new TH1D ("h_pmt_distribution_triggered_hits",
369 " ; TDC Channel ; Counts [a.u.]", NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
370 h_tot_distribution_triggered_hits = new TH1D ("h_tot_distribution_triggered_hits", " ; ToT [ns] ; Counts [a.u.]", 256 , -0.5, 255.5);
371 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);
372 h_tot_distribution_snapshot_hits = new TH1D ("h_tot_distribution_snapshot_hits", " ; ToT [ns] ; Counts [a.u.]", 256, -0.5, 255.5);
373 }
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 250 of file JRunHistograms.hh.

◆ h_Trigger_bit_hit

TH1D* TriggerHistograms::h_Trigger_bit_hit

Definition at line 251 of file JRunHistograms.hh.

◆ h_Snapshot_hits

TH1D* TriggerHistograms::h_Snapshot_hits

Definition at line 252 of file JRunHistograms.hh.

◆ h_Triggered_hits

TH1D* TriggerHistograms::h_Triggered_hits

Definition at line 253 of file JRunHistograms.hh.

◆ h_Triggered_hits_3dmuon

TH1D* TriggerHistograms::h_Triggered_hits_3dmuon

Definition at line 254 of file JRunHistograms.hh.

◆ h_Triggered_hits_3dmuon_per_module

TH2D* TriggerHistograms::h_Triggered_hits_3dmuon_per_module

Definition at line 255 of file JRunHistograms.hh.

◆ h_Triggered_over_Snapshot_hits

TH1D* TriggerHistograms::h_Triggered_over_Snapshot_hits

Definition at line 256 of file JRunHistograms.hh.

◆ h_event_duration

TH1D* TriggerHistograms::h_event_duration

Definition at line 257 of file JRunHistograms.hh.

◆ h_Number_of_overlays

TH1D* TriggerHistograms::h_Number_of_overlays

Definition at line 258 of file JRunHistograms.hh.

◆ h_Snapshot_hits_per_module

TH2D* TriggerHistograms::h_Snapshot_hits_per_module

Definition at line 259 of file JRunHistograms.hh.

◆ h_Triggered_hits_per_module

TH2D* TriggerHistograms::h_Triggered_hits_per_module

Definition at line 260 of file JRunHistograms.hh.

◆ h_pmt_distribution_triggered_hits

TH1D* TriggerHistograms::h_pmt_distribution_triggered_hits

Definition at line 261 of file JRunHistograms.hh.

◆ h_tot_distribution_triggered_hits

TH1D* TriggerHistograms::h_tot_distribution_triggered_hits

Definition at line 262 of file JRunHistograms.hh.

◆ h_pmt_distribution_snapshot_hits

TH1D* TriggerHistograms::h_pmt_distribution_snapshot_hits

Definition at line 263 of file JRunHistograms.hh.

◆ h_tot_distribution_snapshot_hits

TH1D* TriggerHistograms::h_tot_distribution_snapshot_hits

Definition at line 264 of file JRunHistograms.hh.

◆ m_Snapshot_hits_per_pmt

JManager< string , TH2D >* TriggerHistograms::m_Snapshot_hits_per_pmt

Definition at line 267 of file JRunHistograms.hh.


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