Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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_Trigger_time ()
 
void init_h_Snapshot_hits ()
 
void init_h_Triggered_hits ()
 
void init_h_Number_of_overlays ()
 
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_Trigger_time
 
TH1D * h_Snapshot_hits
 
TH1D * h_Triggered_hits
 
TH1D * h_Number_of_overlays
 
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 479 of file JRunHistograms.hh.

Constructor & Destructor Documentation

TriggerHistograms::TriggerHistograms ( )
inline

Definition at line 502 of file JRunHistograms.hh.

502  {
503  h_Trigger_bit_event = NULL;
504  h_Trigger_bit_hit = NULL;
505  h_Trigger_time = NULL;
506  h_Snapshot_hits = NULL;
507  h_Triggered_hits = NULL;
508  h_Number_of_overlays = NULL;
516  }
TH1D * h_pmt_distribution_snapshot_hits
TH2D * h_Snapshot_hits_per_module
TH1D * h_pmt_distribution_triggered_hits
TH2D * h_Triggered_hits_per_module
TH1D * h_tot_distribution_snapshot_hits
TH1D * h_tot_distribution_triggered_hits
JManager< string, TH2D > * m_Snapshot_hits_per_pmt

Member Function Documentation

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

Definition at line 524 of file JRunHistograms.hh.

524  {
525 
532  init_h_Snapshot_hits_per_module (modules_per_string , du_ids);
533  init_h_Triggered_hits_per_module (modules_per_string , du_ids);
534  init_m_Snapshot_hits_per_pmt (modules_per_string);
539  }
void init_h_Trigger_bit_event()
void init_h_Triggered_hits_per_module(int modules_per_string, std::set< int > &du_ids)
void init_h_Snapshot_hits_per_module(int modules_per_string, std::set< int > &du_ids)
void init_h_pmt_distribution_snapshot_hits()
void init_h_tot_distribution_triggered_hits()
void init_h_Number_of_overlays()
void init_m_Snapshot_hits_per_pmt(int modules_per_string)
void init_h_tot_distribution_snapshot_hits()
void init_h_pmt_distribution_triggered_hits()
void TriggerHistograms::init_h_Trigger_bit_event ( )
inline

Definition at line 544 of file JRunHistograms.hh.

544  {
545 
546  string name = MAKE_STRING ("h_Trigger_bit_event");
547  string title = MAKE_STRING ("Number of events as a function of trigger bit in event ; Trigger Bit ; Counts ");
548 
549  h_Trigger_bit_event = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_TRIGGER_BITS , -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
550 
551  for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
552 
553  if (getTriggerName(i)){
554 
555  h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
556 
557  }else{
558 
559  h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , "" );
560  }
561  }
562 
563  h_Trigger_bit_event -> GetXaxis() -> LabelsOption("v");
564  }
static const unsigned int NUMBER_OF_TRIGGER_BITS
Number of trigger bits.
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
const char * getTriggerName(JTriggerbit_t bit)
Get trigger name.
void TriggerHistograms::init_h_Trigger_bit_hit ( )
inline

Definition at line 570 of file JRunHistograms.hh.

570  {
571 
572  string name = MAKE_STRING ("h_Trigger_bit_hit");
573  string title = MAKE_STRING ("Number of hits per event as a function of trigger bit in hit ; Trigger Bit ; #Events ");
574 
575  h_Trigger_bit_hit = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_TRIGGER_BITS, -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
576 
577  for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
578 
579  if (getTriggerName(i)){
580 
581  h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
582  }else{
583 
584  h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , "" );
585  }
586  }
587 
588  h_Trigger_bit_hit -> GetXaxis() -> LabelsOption("v");
589  }
static const unsigned int NUMBER_OF_TRIGGER_BITS
Number of trigger bits.
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
const char * getTriggerName(JTriggerbit_t bit)
Get trigger name.
void TriggerHistograms::init_h_Trigger_time ( )
inline

Definition at line 595 of file JRunHistograms.hh.

595  {
596 
597  string name = MAKE_STRING ("h_Trigger_time");
598  string title = MAKE_STRING ("Time of first triggered hit ; time [ms] ; #Events ");
599 
600  h_Trigger_time = new TH1D (name.c_str() , title.c_str() , 50, -0.5, 100.5 );
601 
602  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
void TriggerHistograms::init_h_Snapshot_hits ( )
inline

Definition at line 607 of file JRunHistograms.hh.

607  {
608 
609  string name = MAKE_STRING ("h_Snapshot_hits");
610  string title = MAKE_STRING (" ; Number of snapshot hits; Events ");
611 
612  h_Snapshot_hits = new TH1D (name.c_str() , title.c_str() , 50, 0, 4 );
613 
615  }
void BinLogX(T *h)
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
void TriggerHistograms::init_h_Triggered_hits ( )
inline

Definition at line 620 of file JRunHistograms.hh.

620  {
621 
622  string name = MAKE_STRING ("h_Triggered_hits");
623  string title = MAKE_STRING (" ; Number of triggered hits; Events ");
624 
625  h_Triggered_hits = new TH1D (name.c_str() , title.c_str() , 50 , 0, 4 );
626 
628  }
void BinLogX(T *h)
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
void TriggerHistograms::init_h_Number_of_overlays ( )
inline

Definition at line 633 of file JRunHistograms.hh.

633  {
634 
635  string name = MAKE_STRING ("h_Number_of_overlays");
636  string title = MAKE_STRING (" ; Number of overlays; Events ");
637 
638  int MAX_OVERLAYS = 1000;
639 
640  h_Number_of_overlays = new TH1D (name.c_str() , title.c_str() , MAX_OVERLAYS , -0.5, MAX_OVERLAYS - 0.5 );
641  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
void TriggerHistograms::init_h_Snapshot_hits_per_module ( int  modules_per_string,
std::set< int > &  du_ids 
)
inline

Definition at line 648 of file JRunHistograms.hh.

648  {
649 
650  string name = MAKE_STRING ("h_Snapshot_hits_per_module");
651  string title = MAKE_STRING (" ; String ; Floor ; Number of snapshot hits ");
652 
653  h_Snapshot_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
654  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
655  modules_per_string , 0.5 , modules_per_string + 0.5 );
656  }
TH2D * h_Snapshot_hits_per_module
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
void TriggerHistograms::init_h_Triggered_hits_per_module ( int  modules_per_string,
std::set< int > &  du_ids 
)
inline

Definition at line 663 of file JRunHistograms.hh.

663  {
664 
665  string name = MAKE_STRING ("h_Triggered_hits_per_module");
666  string title = MAKE_STRING (" ; String ; Floor ; Number of triggered hits ");
667 
668  h_Triggered_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
669  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
670  modules_per_string , 0.5 , modules_per_string + 0.5 );
671  }
TH2D * h_Triggered_hits_per_module
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
void TriggerHistograms::init_m_Snapshot_hits_per_pmt ( int  modules_per_string)
inline

Definition at line 678 of file JRunHistograms.hh.

678  {
679 
680  string name = MAKE_STRING ("%/h_Snapshot_hits_per_pmt");
681  string title = MAKE_STRING (" ; TDC Channel ; Floor ; Number of snapshot hits ");
682 
683  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 ,
684  modules_per_string , 0.5 , modules_per_string + 0.5 ) );
685  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
Auxiliary class to manage set of compatible ROOT objects (e.g.
Definition: JManager.hh:42
then echo n User name
Definition: JCookie.sh:45
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
JManager< string, TH2D > * m_Snapshot_hits_per_pmt
void TriggerHistograms::init_h_pmt_distribution_triggered_hits ( )
inline

Definition at line 692 of file JRunHistograms.hh.

692  {
693 
694  string name = MAKE_STRING ("h_pmt_distribution_triggered_hits");
695  string title = MAKE_STRING (" ; TDC Channel ; Counts [a.u.]");
696 
697  h_pmt_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
698  }
TH1D * h_pmt_distribution_triggered_hits
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void TriggerHistograms::init_h_tot_distribution_triggered_hits ( )
inline

Definition at line 703 of file JRunHistograms.hh.

703  {
704 
705  string name = MAKE_STRING ("h_tot_distribution_triggered_hits");
706  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
707 
708  h_tot_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , nbinsToT , binsToT);
709 
710  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
TH1D * h_tot_distribution_triggered_hits
double binsToT[]
int nbinsToT
void TriggerHistograms::init_h_pmt_distribution_snapshot_hits ( )
inline

Definition at line 715 of file JRunHistograms.hh.

715  {
716 
717  string name = MAKE_STRING ("h_pmt_distribution_snapshot_hits");
718  string title = MAKE_STRING (" ; TDC Channel ; Counts [a.u.]");
719 
720  h_pmt_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
721 
722  }
TH1D * h_pmt_distribution_snapshot_hits
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
then echo n User name
Definition: JCookie.sh:45
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void TriggerHistograms::init_h_tot_distribution_snapshot_hits ( )
inline

Definition at line 727 of file JRunHistograms.hh.

727  {
728 
729  string name = MAKE_STRING ("h_tot_distribution_snapshot_hits");
730  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
731 
732  h_tot_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , nbinsToT , binsToT);
733 
734  }
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:699
TH1D * h_tot_distribution_snapshot_hits
then echo n User name
Definition: JCookie.sh:45
double binsToT[]
int nbinsToT

Member Data Documentation

TH1D* TriggerHistograms::h_Trigger_bit_event

Definition at line 481 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Trigger_bit_hit

Definition at line 482 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Trigger_time

Definition at line 483 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Snapshot_hits

Definition at line 484 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Triggered_hits

Definition at line 485 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Number_of_overlays

Definition at line 486 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Snapshot_hits_per_module

Definition at line 487 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Triggered_hits_per_module

Definition at line 488 of file JRunHistograms.hh.

JManager< string , TH2D >* TriggerHistograms::m_Snapshot_hits_per_pmt

Definition at line 492 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_pmt_distribution_triggered_hits

Definition at line 494 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_tot_distribution_triggered_hits

Definition at line 495 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_pmt_distribution_snapshot_hits

Definition at line 496 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_tot_distribution_snapshot_hits

Definition at line 497 of file JRunHistograms.hh.


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