Jpp  16.0.1
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 431 of file JRunHistograms.hh.

Constructor & Destructor Documentation

TriggerHistograms::TriggerHistograms ( )
inline

Definition at line 456 of file JRunHistograms.hh.

456  {
457  h_Trigger_bit_event = NULL;
458  h_Trigger_bit_hit = NULL;
459  h_Snapshot_hits = NULL;
460  h_Triggered_hits = NULL;
464  h_Number_of_overlays = NULL;
472  }
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 480 of file JRunHistograms.hh.

480  {
481 
487  init_h_Triggered_hits_3dmuon_per_module (modules_per_string , du_ids);
490  init_h_Snapshot_hits_per_module (modules_per_string , du_ids);
491  init_h_Triggered_hits_per_module (modules_per_string , du_ids);
492  init_m_Snapshot_hits_per_pmt (modules_per_string);
497  }
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 502 of file JRunHistograms.hh.

502  {
503 
504  string name = MAKE_STRING ("h_Trigger_bit_event");
505  string title = MAKE_STRING ("Number of events as a function of trigger bit in event ; Trigger Bit ; Counts ");
506 
507  h_Trigger_bit_event = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_TRIGGER_BITS , -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
508 
509  for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
510 
511  if (getTriggerName(i)){
512 
513  h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
514 
515  }else{
516 
517  h_Trigger_bit_event -> GetXaxis() -> SetBinLabel(i+1 , "" );
518  }
519  }
520 
521  h_Trigger_bit_event -> GetXaxis() -> LabelsOption("v");
522  }
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 528 of file JRunHistograms.hh.

528  {
529 
530  string name = MAKE_STRING ("h_Trigger_bit_hit");
531  string title = MAKE_STRING ("Number of hits per event as a function of trigger bit in hit ; Trigger Bit ; #Events ");
532 
533  h_Trigger_bit_hit = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_TRIGGER_BITS, -0.5, NUMBER_OF_TRIGGER_BITS - 0.5 );
534 
535  for (int i = 0 ; i < (int) NUMBER_OF_TRIGGER_BITS ; i++){
536 
537  if (getTriggerName(i)){
538 
539  h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , getTriggerName(i) );
540  }else{
541 
542  h_Trigger_bit_hit -> GetXaxis() -> SetBinLabel(i+1 , "" );
543  }
544  }
545 
546  h_Trigger_bit_hit -> GetXaxis() -> LabelsOption("v");
547  }
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 553 of file JRunHistograms.hh.

553  {
554 
555  string name = MAKE_STRING ("h_Snapshot_hits");
556  string title = MAKE_STRING (" ; Number of snapshot hits; Events ");
557 
558  h_Snapshot_hits = new TH1D (name.c_str() , title.c_str() , 50, 0, 4 );
559 
561  }
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 setLogarithmicX(TList *list)
Make x-axis of objects in list logarithmic (e.g. after using log10()).
void TriggerHistograms::init_h_Triggered_hits ( )
inline

Definition at line 566 of file JRunHistograms.hh.

566  {
567 
568  string name = MAKE_STRING ("h_Triggered_hits");
569  string title = MAKE_STRING (" ; Number of triggered hits; Events ");
570 
571  h_Triggered_hits = new TH1D (name.c_str() , title.c_str() , 50 , 0, 4 );
572 
574  }
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 setLogarithmicX(TList *list)
Make x-axis of objects in list logarithmic (e.g. after using log10()).
void TriggerHistograms::init_h_Triggered_hits_3dmuon ( )
inline

Definition at line 579 of file JRunHistograms.hh.

579  {
580 
581  string name = MAKE_STRING ("h_Triggered_hits_3dmuon");
582  string title = MAKE_STRING (" ; Number of triggered hits for JTRIGGER3DMUON; Events ");
583 
584  h_Triggered_hits_3dmuon = new TH1D (name.c_str() , title.c_str() , 50 , 0, 3 );
585 
587  }
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 setLogarithmicX(TList *list)
Make x-axis of objects in list logarithmic (e.g. after using log10()).
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 592 of file JRunHistograms.hh.

592  {
593 
594  string name = MAKE_STRING ("h_Triggered_hits_3dmuon_per_module");
595  string title = MAKE_STRING ("Number of triggered hits for JTRIGGER3DMUON; String ; Floor ; Number of JTRIGGER3DMUON hits");
596 
597  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 );
598  }
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 604 of file JRunHistograms.hh.

604  {
605 
606  string name = MAKE_STRING ("h_Triggered_over_Snapshot_hits");
607  string title = MAKE_STRING (" ; Triggered/Snapshot hits; Events ");
608 
609  h_Triggered_over_Snapshot_hits = new TH1D (name.c_str() , title.c_str() , 100 , 0, 0.5 );
610  }
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 616 of file JRunHistograms.hh.

616  {
617 
618  string name = MAKE_STRING ("h_Number_of_overlays");
619  string title = MAKE_STRING (" ; Number of overlays; Events ");
620 
621  int MAX_OVERLAYS = 1000;
622 
623  h_Number_of_overlays = new TH1D (name.c_str() , title.c_str() , MAX_OVERLAYS , -0.5, MAX_OVERLAYS - 0.5 );
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 TriggerHistograms::init_h_Snapshot_hits_per_module ( int  modules_per_string,
std::set< int > &  du_ids 
)
inline

Definition at line 631 of file JRunHistograms.hh.

631  {
632 
633  string name = MAKE_STRING ("h_Snapshot_hits_per_module");
634  string title = MAKE_STRING (" ; String ; Floor ; Number of snapshot hits ");
635 
636  h_Snapshot_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
637  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
638  modules_per_string , 0.5 , modules_per_string + 0.5 );
639  }
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 646 of file JRunHistograms.hh.

646  {
647 
648  string name = MAKE_STRING ("h_Triggered_hits_per_module");
649  string title = MAKE_STRING (" ; String ; Floor ; Number of triggered hits ");
650 
651  h_Triggered_hits_per_module = new TH2D (name.c_str() , title.c_str() ,
652  *du_ids.rbegin() , 0.5 , *du_ids.rbegin() + 0.5 ,
653  modules_per_string , 0.5 , modules_per_string + 0.5 );
654  }
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 661 of file JRunHistograms.hh.

661  {
662 
663  string name = MAKE_STRING ("%/h_Snapshot_hits_per_pmt");
664  string title = MAKE_STRING (" ; TDC Channel ; Floor ; Number of snapshot hits ");
665 
666  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 ,
667  modules_per_string , 0.5 , modules_per_string + 0.5 ) );
668  }
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 675 of file JRunHistograms.hh.

675  {
676 
677  string name = MAKE_STRING ("h_pmt_distribution_triggered_hits");
678  string title = MAKE_STRING (" ; TDC Channel ; Counts [a.u.]");
679 
680  h_pmt_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
681  }
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 686 of file JRunHistograms.hh.

686  {
687 
688  string name = MAKE_STRING ("h_tot_distribution_triggered_hits");
689  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
690 
691  h_tot_distribution_triggered_hits = new TH1D (name.c_str() , title.c_str() , nbinsToT , binsToT);
692 
693  }
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 698 of file JRunHistograms.hh.

698  {
699 
700  string name = MAKE_STRING ("h_pmt_distribution_snapshot_hits");
701  string title = MAKE_STRING (" ; TDC Channel ; Counts [a.u.]");
702 
703  h_pmt_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , NUMBER_OF_PMTS , -0.5 , NUMBER_OF_PMTS - 0.5);
704 
705  }
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 710 of file JRunHistograms.hh.

710  {
711 
712  string name = MAKE_STRING ("h_tot_distribution_snapshot_hits");
713  string title = MAKE_STRING (" ; ToT [ns] ; Counts [a.u.]");
714 
715  h_tot_distribution_snapshot_hits = new TH1D (name.c_str() , title.c_str() , nbinsToT , binsToT);
716 
717  }
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 433 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Trigger_bit_hit

Definition at line 434 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Snapshot_hits

Definition at line 435 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Triggered_hits

Definition at line 436 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Triggered_hits_3dmuon

Definition at line 437 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Triggered_hits_3dmuon_per_module

Definition at line 438 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Triggered_over_Snapshot_hits

Definition at line 439 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_Number_of_overlays

Definition at line 440 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Snapshot_hits_per_module

Definition at line 441 of file JRunHistograms.hh.

TH2D* TriggerHistograms::h_Triggered_hits_per_module

Definition at line 442 of file JRunHistograms.hh.

JManager< string , TH2D >* TriggerHistograms::m_Snapshot_hits_per_pmt

Definition at line 446 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_pmt_distribution_triggered_hits

Definition at line 448 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_tot_distribution_triggered_hits

Definition at line 449 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_pmt_distribution_snapshot_hits

Definition at line 450 of file JRunHistograms.hh.

TH1D* TriggerHistograms::h_tot_distribution_snapshot_hits

Definition at line 451 of file JRunHistograms.hh.


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