Jpp
Public Member Functions | Public Attributes | List of all members
TriggerHistograms Struct Reference

#include <JRunHistograms.hh>

Public Member Functions

 TriggerHistograms ()
 
void initialize (std::set< int > &du_ids, int modules_per_string)
 
void init_h_Trigger_bit_event ()
 
void init_h_Trigger_bit_hit ()
 
void init_h_Snapshot_hits ()
 
void init_h_Triggered_hits ()
 
void init_h_Snapshot_hits_per_module (int modules_per_string, std::set< int > &du_ids)
 
void init_h_Triggered_hits_per_module (int modules_per_string, std::set< int > &du_ids)
 
void init_m_Snapshot_hits_per_pmt (int modules_per_string)
 
void init_h_pmt_distribution_triggered_hits ()
 
void init_h_tot_distribution_triggered_hits ()
 
void init_h_pmt_distribution_snapshot_hits ()
 
void init_h_tot_distribution_snapshot_hits ()
 

Public Attributes

TH1D * h_Trigger_bit_event
 
TH1D * h_Trigger_bit_hit
 
TH1D * h_Snapshot_hits
 
TH1D * h_Triggered_hits
 
TH2D * h_Snapshot_hits_per_module
 
TH2D * h_Triggered_hits_per_module
 
JManager< string, TH2D > * m_Snapshot_hits_per_pmt
 
TH1D * h_pmt_distribution_triggered_hits
 
TH1D * h_tot_distribution_triggered_hits
 
TH1D * h_pmt_distribution_snapshot_hits
 
TH1D * h_tot_distribution_snapshot_hits
 

Detailed Description

Definition at line 563 of file JRunHistograms.hh.

Constructor & Destructor Documentation

◆ TriggerHistograms()

TriggerHistograms::TriggerHistograms ( )
inline

Definition at line 584 of file JRunHistograms.hh.

584  {
585  h_Trigger_bit_event = NULL;
586  h_Trigger_bit_hit = NULL;
587  h_Snapshot_hits = NULL;
588  h_Triggered_hits = NULL;
596  }

Member Function Documentation

◆ initialize()

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

Definition at line 604 of file JRunHistograms.hh.

◆ init_h_Trigger_bit_event()

void TriggerHistograms::init_h_Trigger_bit_event ( )
inline

Definition at line 622 of file JRunHistograms.hh.

622  {
623 
624  string name = MAKE_STRING ("h_Trigger_bit_event");
625  string title = MAKE_STRING ("Number of events as a function of trigger bit in event ; Trigger Bit ; Counts ");
626 
627  h_Trigger_bit_event = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_TRIGGER_BITS , -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
628 
629  for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
630 
631  if (getTriggerName(i)){
632 
633  h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
634 
635  }else{
636 
637  h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , "" );
638  }
639  }
640 
641  h_Trigger_bit_event -> GetXaxis() -> LabelsOption("v");
642  }

◆ init_h_Trigger_bit_hit()

void TriggerHistograms::init_h_Trigger_bit_hit ( )
inline

Definition at line 648 of file JRunHistograms.hh.

648  {
649 
650  string name = MAKE_STRING ("h_Trigger_bit_hit");
651  string title = MAKE_STRING ("Number of hits per event as a function of trigger bit in hit ; Trigger Bit ; #Events ");
652 
653  h_Trigger_bit_hit = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_TRIGGER_BITS, -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
654 
655  for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
656 
657  if (getTriggerName(i)){
658 
659  h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
660  }else{
661 
662  h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , "" );
663  }
664  }
665 
666  h_Trigger_bit_hit -> GetXaxis() -> LabelsOption("v");
667  }

◆ init_h_Snapshot_hits()

void TriggerHistograms::init_h_Snapshot_hits ( )
inline

Definition at line 672 of file JRunHistograms.hh.

672  {
673 
674  string name = MAKE_STRING ("h_Snapshot_hits");
675  string title = MAKE_STRING (" ; Number of snapshot hits; Events ");
676 
677  h_Snapshot_hits = new TH1D (name.c_str() , title.c_str() , 50, 0, 4 );
678 
680  }

◆ init_h_Triggered_hits()

void TriggerHistograms::init_h_Triggered_hits ( )
inline

Definition at line 685 of file JRunHistograms.hh.

685  {
686 
687  string name = MAKE_STRING ("h_Triggered_hits");
688  string title = MAKE_STRING (" ; Number of triggered hits; Events ");
689 
690  h_Triggered_hits = new TH1D (name.c_str() , title.c_str() , 50 , 0, 4 );
691 
693  }

◆ init_h_Snapshot_hits_per_module()

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

Definition at line 700 of file JRunHistograms.hh.

700  {
701 
702  string name = MAKE_STRING ("h_Snapshot_hits_per_module");
703  string title = MAKE_STRING (" ; String ; Floor ; Number of snapshot hits ");
704 
705  h_Snapshot_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
706  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
707  modules_per_string , 0.5 , modules_per_string + 0.5 );
708  }

◆ init_h_Triggered_hits_per_module()

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

Definition at line 715 of file JRunHistograms.hh.

715  {
716 
717  string name = MAKE_STRING ("h_Triggered_hits_per_module");
718  string title = MAKE_STRING (" ; String ; Floor ; Number of triggered hits ");
719 
720  h_Triggered_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
721  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
722  modules_per_string , 0.5 , modules_per_string + 0.5 );
723  }

◆ init_m_Snapshot_hits_per_pmt()

void TriggerHistograms::init_m_Snapshot_hits_per_pmt ( int  modules_per_string)
inline

Definition at line 730 of file JRunHistograms.hh.

730  {
731 
732  string name = MAKE_STRING ("%/h_Snapshot_hits_per_pmt");
733  string title = MAKE_STRING (" ; PMT ; Floor ; Number of snapshot hits ");
734 
735  m_Snapshot_hits_per_pmt = new JManager < string , TH2D > ( new TH2D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5 ,
736  modules_per_string , 0.5 , modules_per_string + 0.5 ) );
737  }

◆ init_h_pmt_distribution_triggered_hits()

void TriggerHistograms::init_h_pmt_distribution_triggered_hits ( )
inline

Definition at line 744 of file JRunHistograms.hh.

744  {
745 
746  string name = MAKE_STRING ("h_pmt_distribution_triggered_hits");
747  string title = MAKE_STRING (" ; PMT number ; Counts [a.u.]");
748 
749  h_pmt_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
750  }

◆ init_h_tot_distribution_triggered_hits()

void TriggerHistograms::init_h_tot_distribution_triggered_hits ( )
inline

Definition at line 755 of file JRunHistograms.hh.

755  {
756 
757  string name = MAKE_STRING ("h_tot_distribution_triggered_hits");
758  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
759 
760  h_tot_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , 255 , 0.5 , 255.5 );
761 
762  }

◆ init_h_pmt_distribution_snapshot_hits()

void TriggerHistograms::init_h_pmt_distribution_snapshot_hits ( )
inline

Definition at line 767 of file JRunHistograms.hh.

767  {
768 
769  string name = MAKE_STRING ("h_pmt_distribution_snapshot_hits");
770  string title = MAKE_STRING (" ; PMT number ; Counts [a.u.]");
771 
772  h_pmt_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
773 
774  }

◆ init_h_tot_distribution_snapshot_hits()

void TriggerHistograms::init_h_tot_distribution_snapshot_hits ( )
inline

Definition at line 779 of file JRunHistograms.hh.

779  {
780 
781  string name = MAKE_STRING ("h_tot_distribution_snapshot_hits");
782  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
783 
784  h_tot_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , 255 , 0.5 , 255.5 );
785 
786  }

Member Data Documentation

◆ h_Trigger_bit_event

TH1D* TriggerHistograms::h_Trigger_bit_event

Definition at line 565 of file JRunHistograms.hh.

◆ h_Trigger_bit_hit

TH1D* TriggerHistograms::h_Trigger_bit_hit

Definition at line 566 of file JRunHistograms.hh.

◆ h_Snapshot_hits

TH1D* TriggerHistograms::h_Snapshot_hits

Definition at line 567 of file JRunHistograms.hh.

◆ h_Triggered_hits

TH1D* TriggerHistograms::h_Triggered_hits

Definition at line 568 of file JRunHistograms.hh.

◆ h_Snapshot_hits_per_module

TH2D* TriggerHistograms::h_Snapshot_hits_per_module

Definition at line 569 of file JRunHistograms.hh.

◆ h_Triggered_hits_per_module

TH2D* TriggerHistograms::h_Triggered_hits_per_module

Definition at line 570 of file JRunHistograms.hh.

◆ m_Snapshot_hits_per_pmt

JManager< string , TH2D >* TriggerHistograms::m_Snapshot_hits_per_pmt

Definition at line 574 of file JRunHistograms.hh.

◆ h_pmt_distribution_triggered_hits

TH1D* TriggerHistograms::h_pmt_distribution_triggered_hits

Definition at line 576 of file JRunHistograms.hh.

◆ h_tot_distribution_triggered_hits

TH1D* TriggerHistograms::h_tot_distribution_triggered_hits

Definition at line 577 of file JRunHistograms.hh.

◆ h_pmt_distribution_snapshot_hits

TH1D* TriggerHistograms::h_pmt_distribution_snapshot_hits

Definition at line 578 of file JRunHistograms.hh.

◆ h_tot_distribution_snapshot_hits

TH1D* TriggerHistograms::h_tot_distribution_snapshot_hits

Definition at line 579 of file JRunHistograms.hh.


The documentation for this struct was generated from the following file:
TriggerHistograms::init_h_Snapshot_hits_per_module
void init_h_Snapshot_hits_per_module(int modules_per_string, std::set< int > &du_ids)
Definition: JRunHistograms.hh:700
TriggerHistograms::m_Snapshot_hits_per_pmt
JManager< string, TH2D > * m_Snapshot_hits_per_pmt
Definition: JRunHistograms.hh:574
TriggerHistograms::h_Snapshot_hits_per_module
TH2D * h_Snapshot_hits_per_module
Definition: JRunHistograms.hh:569
JManager< string, TH2D >
TriggerHistograms::init_h_Triggered_hits_per_module
void init_h_Triggered_hits_per_module(int modules_per_string, std::set< int > &du_ids)
Definition: JRunHistograms.hh:715
TriggerHistograms::h_pmt_distribution_triggered_hits
TH1D * h_pmt_distribution_triggered_hits
Definition: JRunHistograms.hh:576
TriggerHistograms::init_h_pmt_distribution_triggered_hits
void init_h_pmt_distribution_triggered_hits()
Definition: JRunHistograms.hh:744
TriggerHistograms::init_h_tot_distribution_triggered_hits
void init_h_tot_distribution_triggered_hits()
Definition: JRunHistograms.hh:755
TriggerHistograms::h_Trigger_bit_event
TH1D * h_Trigger_bit_event
Definition: JRunHistograms.hh:565
TriggerHistograms::init_h_tot_distribution_snapshot_hits
void init_h_tot_distribution_snapshot_hits()
Definition: JRunHistograms.hh:779
TriggerHistograms::h_Trigger_bit_hit
TH1D * h_Trigger_bit_hit
Definition: JRunHistograms.hh:566
TriggerHistograms::h_pmt_distribution_snapshot_hits
TH1D * h_pmt_distribution_snapshot_hits
Definition: JRunHistograms.hh:578
KM3NETDAQ::NUMBER_OF_PMTS
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
MAKE_STRING
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
KM3NETDAQ::NUMBER_OF_TRIGGER_BITS
static const unsigned int NUMBER_OF_TRIGGER_BITS
Number of trigger bits.
Definition: JDAQTriggerMask.hh:27
BinLogX
void BinLogX(T *h)
Definition: JRunHistograms.hh:48
TriggerHistograms::h_tot_distribution_triggered_hits
TH1D * h_tot_distribution_triggered_hits
Definition: JRunHistograms.hh:577
TriggerHistograms::init_h_Trigger_bit_event
void init_h_Trigger_bit_event()
Definition: JRunHistograms.hh:622
TriggerHistograms::h_tot_distribution_snapshot_hits
TH1D * h_tot_distribution_snapshot_hits
Definition: JRunHistograms.hh:579
TriggerHistograms::h_Triggered_hits
TH1D * h_Triggered_hits
Definition: JRunHistograms.hh:568
TriggerHistograms::init_h_Trigger_bit_hit
void init_h_Trigger_bit_hit()
Definition: JRunHistograms.hh:648
TriggerHistograms::h_Triggered_hits_per_module
TH2D * h_Triggered_hits_per_module
Definition: JRunHistograms.hh:570
TriggerHistograms::init_h_Snapshot_hits
void init_h_Snapshot_hits()
Definition: JRunHistograms.hh:672
JTRIGGER::getTriggerName
const char * getTriggerName(JTriggerbit_t bit)
Get trigger name.
Definition: JTriggerInterface.hh:237
TriggerHistograms::init_h_Triggered_hits
void init_h_Triggered_hits()
Definition: JRunHistograms.hh:685
TriggerHistograms::init_m_Snapshot_hits_per_pmt
void init_m_Snapshot_hits_per_pmt(int modules_per_string)
Definition: JRunHistograms.hh:730
TriggerHistograms::init_h_pmt_distribution_snapshot_hits
void init_h_pmt_distribution_snapshot_hits()
Definition: JRunHistograms.hh:767
TriggerHistograms::h_Snapshot_hits
TH1D * h_Snapshot_hits
Definition: JRunHistograms.hh:567