Jpp  15.0.3
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_Snapshot_hits ()
 
void init_h_Triggered_hits ()
 
void init_h_Triggered_hits_3dmuon ()
 
void init_h_Triggered_hits_3dmuon_per_module (int modules_per_string, std::set< int > &du_ids)
 
void init_h_Triggered_over_Snapshot_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_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_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 506 of file JRunHistograms.hh.

506  {
507  h_Trigger_bit_event = NULL;
508  h_Trigger_bit_hit = NULL;
509  h_Snapshot_hits = NULL;
510  h_Triggered_hits = NULL;
514  h_Number_of_overlays = NULL;
522  }
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
TH1D * h_Triggered_hits_3dmuon
TH2D * h_Triggered_hits_3dmuon_per_module
JManager< string, TH2D > * m_Snapshot_hits_per_pmt
TH1D * h_Triggered_over_Snapshot_hits

Member Function Documentation

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

Definition at line 530 of file JRunHistograms.hh.

530  {
531 
537  init_h_Triggered_hits_3dmuon_per_module (modules_per_string , du_ids);
540  init_h_Snapshot_hits_per_module (modules_per_string , du_ids);
541  init_h_Triggered_hits_per_module (modules_per_string , du_ids);
542  init_m_Snapshot_hits_per_pmt (modules_per_string);
547  }
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_Triggered_hits_3dmuon()
void init_h_Triggered_over_Snapshot_hits()
void init_h_pmt_distribution_snapshot_hits()
void init_h_tot_distribution_triggered_hits()
void init_h_Number_of_overlays()
void init_h_Triggered_hits_3dmuon_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_tot_distribution_snapshot_hits()
void init_h_pmt_distribution_triggered_hits()
void TriggerHistograms::init_h_Trigger_bit_event ( )
inline

Definition at line 552 of file JRunHistograms.hh.

552  {
553 
554  string name = MAKE_STRING ("h_Trigger_bit_event");
555  string title = MAKE_STRING ("Number of events as a function of trigger bit in event ; Trigger Bit ; Counts ");
556 
557  h_Trigger_bit_event = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_TRIGGER_BITS , -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
558 
559  for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
560 
561  if (getTriggerName(i)){
562 
563  h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
564 
565  }else{
566 
567  h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , "" );
568  }
569  }
570 
571  h_Trigger_bit_event -> GetXaxis() -> LabelsOption("v");
572  }
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 578 of file JRunHistograms.hh.

578  {
579 
580  string name = MAKE_STRING ("h_Trigger_bit_hit");
581  string title = MAKE_STRING ("Number of hits per event as a function of trigger bit in hit ; Trigger Bit ; #Events ");
582 
583  h_Trigger_bit_hit = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_TRIGGER_BITS, -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
584 
585  for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
586 
587  if (getTriggerName(i)){
588 
589  h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
590  }else{
591 
592  h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , "" );
593  }
594  }
595 
596  h_Trigger_bit_hit -> GetXaxis() -> LabelsOption("v");
597  }
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_Snapshot_hits ( )
inline

Definition at line 603 of file JRunHistograms.hh.

603  {
604 
605  string name = MAKE_STRING ("h_Snapshot_hits");
606  string title = MAKE_STRING (" ; Number of snapshot hits; Events ");
607 
608  h_Snapshot_hits = new TH1D (name.c_str() , title.c_str() , 50, 0, 4 );
609 
611  }
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 616 of file JRunHistograms.hh.

616  {
617 
618  string name = MAKE_STRING ("h_Triggered_hits");
619  string title = MAKE_STRING (" ; Number of triggered hits; Events ");
620 
621  h_Triggered_hits = new TH1D (name.c_str() , title.c_str() , 50 , 0, 4 );
622 
624  }
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_3dmuon ( )
inline

Definition at line 629 of file JRunHistograms.hh.

629  {
630 
631  string name = MAKE_STRING ("h_Triggered_hits_3dmuon");
632  string title = MAKE_STRING (" ; Number of triggered hits for JTRIGGER3DMUON; Events ");
633 
634  h_Triggered_hits_3dmuon = new TH1D (name.c_str() , title.c_str() , 50 , 0, 3 );
635 
637  }
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
TH1D * h_Triggered_hits_3dmuon
void TriggerHistograms::init_h_Triggered_hits_3dmuon_per_module ( int  modules_per_string,
std::set< int > &  du_ids 
)
inline

Definition at line 642 of file JRunHistograms.hh.

642  {
643 
644  string name = MAKE_STRING ("h_Triggered_hits_3dmuon_per_module");
645  string title = MAKE_STRING ("Number of triggered hits for JTRIGGER3DMUON; String ; Floor ; Number of JTRIGGER3DMUON hits");
646 
647  h_Triggered_hits_3dmuon_per_module = new TH2D (name.c_str() , title.c_str() , *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 , modules_per_string , 0.5 , modules_per_string + 0.5 );
648  }
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
TH2D * h_Triggered_hits_3dmuon_per_module
void TriggerHistograms::init_h_Triggered_over_Snapshot_hits ( )
inline

Definition at line 654 of file JRunHistograms.hh.

654  {
655 
656  string name = MAKE_STRING ("h_Triggered_over_Snapshot_hits");
657  string title = MAKE_STRING (" ; Triggered/Snapshot hits; Events ");
658 
659  h_Triggered_over_Snapshot_hits = new TH1D (name.c_str() , title.c_str() , 100 , 0, 0.5 );
660  }
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_Triggered_over_Snapshot_hits
void TriggerHistograms::init_h_Number_of_overlays ( )
inline

Definition at line 666 of file JRunHistograms.hh.

666  {
667 
668  string name = MAKE_STRING ("h_Number_of_overlays");
669  string title = MAKE_STRING (" ; Number of overlays; Events ");
670 
671  int MAX_OVERLAYS = 1000;
672 
673  h_Number_of_overlays = new TH1D (name.c_str() , title.c_str() , MAX_OVERLAYS , -0.5, MAX_OVERLAYS - 0.5 );
674  }
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 681 of file JRunHistograms.hh.

681  {
682 
683  string name = MAKE_STRING ("h_Snapshot_hits_per_module");
684  string title = MAKE_STRING (" ; String ; Floor ; Number of snapshot hits ");
685 
686  h_Snapshot_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
687  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
688  modules_per_string , 0.5 , modules_per_string + 0.5 );
689  }
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 696 of file JRunHistograms.hh.

696  {
697 
698  string name = MAKE_STRING ("h_Triggered_hits_per_module");
699  string title = MAKE_STRING (" ; String ; Floor ; Number of triggered hits ");
700 
701  h_Triggered_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
702  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
703  modules_per_string , 0.5 , modules_per_string + 0.5 );
704  }
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 711 of file JRunHistograms.hh.

711  {
712 
713  string name = MAKE_STRING ("%/h_Snapshot_hits_per_pmt");
714  string title = MAKE_STRING (" ; TDC Channel ; Floor ; Number of snapshot hits ");
715 
716  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 ,
717  modules_per_string , 0.5 , modules_per_string + 0.5 ) );
718  }
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 725 of file JRunHistograms.hh.

725  {
726 
727  string name = MAKE_STRING ("h_pmt_distribution_triggered_hits");
728  string title = MAKE_STRING (" ; TDC Channel ; Counts [a.u.]");
729 
730  h_pmt_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
731  }
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 736 of file JRunHistograms.hh.

736  {
737 
738  string name = MAKE_STRING ("h_tot_distribution_triggered_hits");
739  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
740 
741  h_tot_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , nbinsToT , binsToT);
742 
743  }
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 748 of file JRunHistograms.hh.

748  {
749 
750  string name = MAKE_STRING ("h_pmt_distribution_snapshot_hits");
751  string title = MAKE_STRING (" ; TDC Channel ; Counts [a.u.]");
752 
753  h_pmt_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
754 
755  }
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 760 of file JRunHistograms.hh.

760  {
761 
762  string name = MAKE_STRING ("h_tot_distribution_snapshot_hits");
763  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
764 
765  h_tot_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , nbinsToT , binsToT);
766 
767  }
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_Snapshot_hits

Definition at line 485 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Triggered_hits

Definition at line 486 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Triggered_hits_3dmuon

Definition at line 487 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Triggered_hits_3dmuon_per_module

Definition at line 488 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Triggered_over_Snapshot_hits

Definition at line 489 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Number_of_overlays

Definition at line 490 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Snapshot_hits_per_module

Definition at line 491 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Triggered_hits_per_module

Definition at line 492 of file JRunHistograms.hh.

JManager< string , TH2D >* TriggerHistograms::m_Snapshot_hits_per_pmt

Definition at line 496 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_pmt_distribution_triggered_hits

Definition at line 498 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_tot_distribution_triggered_hits

Definition at line 499 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_pmt_distribution_snapshot_hits

Definition at line 500 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_tot_distribution_snapshot_hits

Definition at line 501 of file JRunHistograms.hh.


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