Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:14:01

0001 #pragma once
0002 
0003 /*!
0004   @brief A event class to make the timing plot of INTT streaming readout data
0005   @details The format of 1st argument of the constrctor is
0006   #event    GL1_BCO    INTT_GTM_BCO    FPHX0 ... FPHX119
0007  */
0008 
0009 class Event
0010 {
0011 private:
0012   int event_ = 0;
0013   uint64_t bco_gl1_ = 0;
0014   uint64_t bco_intt_ = 0;
0015   int offset_ = 0;
0016   
0017   TH1D* hist_fphx_bco_;
0018   TH1D* hist_fphx_bco_gl1_match_;
0019 public:
0020   Event( string line, int offset );
0021 
0022   TH1D* GetHist(){ return hist_fphx_bco_;};
0023   TH1D* GetHistGl1Match(){ return hist_fphx_bco_gl1_match_;};
0024 
0025   int GetEventNum(){ return event_;};
0026   uint64_t GetGl1Bco(){ return bco_gl1_;};
0027   uint64_t GetInttGtmBco(){ return bco_intt_;};
0028 
0029   int GetFatPeakNum( int ignore_smaller_than = 0 );
0030   int GetHitNumMachingGl1();
0031   int GetHitNumMaxEvent();
0032   int GetGl1Timing();
0033   int GetGl1Bin();
0034   int GetBinMoreThan( int threshold = 0 );
0035   
0036   bool IsGl1Correspondings();
0037   bool IsHitInAbortGap();
0038   void Print();
0039 };
0040 
0041 #ifndef Event_cc
0042 #include "Event.cc"
0043 #endif