Jpp  15.0.0
the software that should make you happy
 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 481 of file JRunHistograms.hh.

Constructor & Destructor Documentation

TriggerHistograms::TriggerHistograms ( )
inline

Definition at line 504 of file JRunHistograms.hh.

504  {
505  h_Trigger_bit_event = NULL;
506  h_Trigger_bit_hit = NULL;
507  h_Trigger_time = NULL;
508  h_Snapshot_hits = NULL;
509  h_Triggered_hits = NULL;
510  h_Number_of_overlays = NULL;
518  }
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 526 of file JRunHistograms.hh.

526  {
527 
534  init_h_Snapshot_hits_per_module (modules_per_string , du_ids);
535  init_h_Triggered_hits_per_module (modules_per_string , du_ids);
536  init_m_Snapshot_hits_per_pmt (modules_per_string);
541  }
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 546 of file JRunHistograms.hh.

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

Definition at line 572 of file JRunHistograms.hh.

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

Definition at line 597 of file JRunHistograms.hh.

597  {
598 
599  string name = MAKE_STRING ("h_Trigger_time");
600  string title = MAKE_STRING ("Time of first triggered hit ; time [ms] ; #Events ");
601 
602  h_Trigger_time = new TH1D (name.c_str() , title.c_str() , 50, -0.5, 100.5 );
603 
604  }
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
void TriggerHistograms::init_h_Snapshot_hits ( )
inline

Definition at line 609 of file JRunHistograms.hh.

609  {
610 
611  string name = MAKE_STRING ("h_Snapshot_hits");
612  string title = MAKE_STRING (" ; Number of snapshot hits; Events ");
613 
614  h_Snapshot_hits = new TH1D (name.c_str() , title.c_str() , 50, 0, 4 );
615 
617  }
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
void BinLogX(TH1 *h)
Definition: JDomAnalyser.cc:34
void TriggerHistograms::init_h_Triggered_hits ( )
inline

Definition at line 622 of file JRunHistograms.hh.

622  {
623 
624  string name = MAKE_STRING ("h_Triggered_hits");
625  string title = MAKE_STRING (" ; Number of triggered hits; Events ");
626 
627  h_Triggered_hits = new TH1D (name.c_str() , title.c_str() , 50 , 0, 4 );
628 
630  }
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
void BinLogX(TH1 *h)
Definition: JDomAnalyser.cc:34
void TriggerHistograms::init_h_Number_of_overlays ( )
inline

Definition at line 635 of file JRunHistograms.hh.

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

Definition at line 650 of file JRunHistograms.hh.

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

Definition at line 665 of file JRunHistograms.hh.

665  {
666 
667  string name = MAKE_STRING ("h_Triggered_hits_per_module");
668  string title = MAKE_STRING (" ; String ; Floor ; Number of triggered hits ");
669 
670  h_Triggered_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
671  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
672  modules_per_string , 0.5 , modules_per_string + 0.5 );
673  }
TH2D * h_Triggered_hits_per_module
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
void TriggerHistograms::init_m_Snapshot_hits_per_pmt ( int  modules_per_string)
inline

Definition at line 680 of file JRunHistograms.hh.

680  {
681 
682  string name = MAKE_STRING ("%/h_Snapshot_hits_per_pmt");
683  string title = MAKE_STRING (" ; TDC Channel ; Floor ; Number of snapshot hits ");
684 
685  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 ,
686  modules_per_string , 0.5 , modules_per_string + 0.5 ) );
687  }
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
Definition: JManager.hh:43
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 694 of file JRunHistograms.hh.

694  {
695 
696  string name = MAKE_STRING ("h_pmt_distribution_triggered_hits");
697  string title = MAKE_STRING (" ; TDC Channel ; Counts [a.u.]");
698 
699  h_pmt_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
700  }
TH1D * h_pmt_distribution_triggered_hits
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
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 705 of file JRunHistograms.hh.

705  {
706 
707  string name = MAKE_STRING ("h_tot_distribution_triggered_hits");
708  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
709 
710  h_tot_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , nbinsToT , binsToT);
711 
712  }
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
TH1D * h_tot_distribution_triggered_hits
double binsToT[]
int nbinsToT
void TriggerHistograms::init_h_pmt_distribution_snapshot_hits ( )
inline

Definition at line 717 of file JRunHistograms.hh.

717  {
718 
719  string name = MAKE_STRING ("h_pmt_distribution_snapshot_hits");
720  string title = MAKE_STRING (" ; TDC Channel ; Counts [a.u.]");
721 
722  h_pmt_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
723 
724  }
TH1D * h_pmt_distribution_snapshot_hits
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
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 729 of file JRunHistograms.hh.

729  {
730 
731  string name = MAKE_STRING ("h_tot_distribution_snapshot_hits");
732  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
733 
734  h_tot_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , nbinsToT , binsToT);
735 
736  }
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
#define MAKE_STRING(A)
Make string.
Definition: JPrint.hh:142
TH1D * h_tot_distribution_snapshot_hits
double binsToT[]
int nbinsToT

Member Data Documentation

TH1D* TriggerHistograms::h_Trigger_bit_event

Definition at line 483 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Trigger_bit_hit

Definition at line 484 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Trigger_time

Definition at line 485 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Snapshot_hits

Definition at line 486 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Triggered_hits

Definition at line 487 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Number_of_overlays

Definition at line 488 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Snapshot_hits_per_module

Definition at line 489 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Triggered_hits_per_module

Definition at line 490 of file JRunHistograms.hh.

JManager< string , TH2D >* TriggerHistograms::m_Snapshot_hits_per_pmt

Definition at line 494 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_pmt_distribution_triggered_hits

Definition at line 496 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_tot_distribution_triggered_hits

Definition at line 497 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_pmt_distribution_snapshot_hits

Definition at line 498 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_tot_distribution_snapshot_hits

Definition at line 499 of file JRunHistograms.hh.


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