Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CemcMon Class Reference

#include <OnlMon/blob/main/subsystems/cemc/CemcMon.h>

+ Inheritance diagram for CemcMon:
+ Collaboration diagram for CemcMon:

Public Member Functions

 CemcMon (const std::string &name)
 
virtual ~CemcMon ()
 
int process_event (Event *evt)
 
int Init ()
 
int BeginRun (const int runno)
 
int Reset ()
 
- Public Member Functions inherited from OnlMon
 OnlMon (const std::string &name="NONE")
 
 ~OnlMon () override
 
virtual int process_event_common (Event *evt)
 
virtual int InitCommon (OnlMonServer *se)
 
virtual void identify (std::ostream &out=std::cout) const
 
virtual int BeginRunCommon (const int runno, OnlMonServer *se)
 
virtual int EndRun (const int)
 
virtual void SetStatus (const int newstatus)
 
virtual int ResetEvent ()
 
virtual void SetMonitorServerId (unsigned int i)
 
virtual unsigned int MonitorServerId () const
 
- Public Member Functions inherited from OnlMonBase
 OnlMonBase (const std::string &name="NONE")
 
virtual ~OnlMonBase ()
 
const std::string Name () const
 
void Name (const std::string &name)
 
virtual void Verbosity (const int i)
 
virtual int Verbosity () const
 

Protected Member Functions

std::vector< float > getSignal (Packet *p, const int channel)
 
std::vector< float > anaWaveformFast (Packet *p, const int channel)
 
std::vector< float > anaWaveformTemp (Packet *p, const int channel)
 

Protected Attributes

int idummy = 0
 
TH2 * cemc_occupancy = nullptr
 
TH2 * cemc_runningmean = nullptr
 
TH1 * cemc_signal = nullptr
 
TH1 * h1_cemc_adc = nullptr
 
const int Nsector = 64
 
const int Ntower = 64*2*192
 
const int packetlow = 6001
 
const int packethigh = 6128
 
const int m_nSamples = 16
 
const int m_nChannels = 192
 
const int templateDepth = 10000
 
int eventCounter = 0
 
TH1 * h1_packet_chans = nullptr
 
TH1 * h1_packet_length = nullptr
 
TH1 * h1_packet_number = nullptr
 
TH1 * h1_cemc_fitting_sigDiff = nullptr
 
TH1 * h1_cemc_fitting_pedDiff = nullptr
 
TH1 * h1_cemc_fitting_timeDiff = nullptr
 
TH2 * h2_cemc_hits = nullptr
 
TH2 * h2_waveform_twrAvg = nullptr
 
TH1 * h1_waveform_time = nullptr
 
TH1 * h1_waveform_pedestal = nullptr
 
TH2 * h2_cemc_rm = nullptr
 
TH2 * h2_cemc_mean = nullptr
 
TH1 * h1_sectorAvg_total = nullptr
 
TH1 * h1_event = nullptr
 
TH1 * h1_rm_sectorAvg [100] = {nullptr}
 
std::vector< runningMean * > rm_vector_twr
 
std::vector< runningMean * > rm_vector_sectAvg
 
std::string runtypestr = "Unknown"
 
std::string id_string
 
CaloWaveformFittingWaveformProcessingFast = nullptr
 
CaloWaveformFittingWaveformProcessingTemp = nullptr
 
std::vector< runningMean * > rm_vector
 
- Protected Attributes inherited from OnlMon
int status
 
unsigned int m_MonitorServerId = 0
 
TH1 * m_LocalFrameWorkVars = nullptr
 
- Protected Attributes inherited from OnlMonBase
std::string ThisName
 
int verbosity = 0
 

Additional Inherited Members

- Public Types inherited from OnlMon
enum  { ACTIVE = -1, OK = 0, WARNING = 1, ERROR = 2 }
 

Detailed Description

Definition at line 17 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 17 of file CemcMon.h

Constructor & Destructor Documentation

CemcMon::CemcMon ( const std::string &  name)

Definition at line 44 of file CemcMon.cc.

View newest version in sPHENIX GitHub at line 44 of file CemcMon.cc

CemcMon::~CemcMon ( )
virtual

Definition at line 55 of file CemcMon.cc.

View newest version in sPHENIX GitHub at line 55 of file CemcMon.cc

References rm_vector, rm_vector_sectAvg, rm_vector_twr, WaveformProcessingFast, and WaveformProcessingTemp.

Member Function Documentation

std::vector< float > CemcMon::anaWaveformFast ( Packet p,
const int  channel 
)
protected

Definition at line 257 of file CemcMon.cc.

View newest version in sPHENIX GitHub at line 257 of file CemcMon.cc

References CaloWaveformFitting::calo_processing_fast(), Packet::iValue(), m_nSamples, physmon_simulation::s, and WaveformProcessingFast.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< float > CemcMon::anaWaveformTemp ( Packet p,
const int  channel 
)
protected

Definition at line 276 of file CemcMon.cc.

View newest version in sPHENIX GitHub at line 276 of file CemcMon.cc

References Packet::iValue(), m_nSamples, CaloWaveformFitting::process_waveform(), physmon_simulation::s, and WaveformProcessingTemp.

+ Here is the call graph for this function:

int CemcMon::BeginRun ( const int  runno)
virtual

Reimplemented from OnlMon.

Definition at line 205 of file CemcMon.cc.

View newest version in sPHENIX GitHub at line 205 of file CemcMon.cc

References rm_vector, and rm_vector_twr.

std::vector< float > CemcMon::getSignal ( Packet p,
const int  channel 
)
protected

Definition at line 226 of file CemcMon.cc.

View newest version in sPHENIX GitHub at line 226 of file CemcMon.cc

References Packet::iValue(), physmon_simulation::s, signal(), and ambiguity_solver_full_chain::x.

+ Here is the call graph for this function:

int CemcMon::Reset ( )
virtual

Reimplemented from OnlMon.

Definition at line 467 of file CemcMon.cc.

View newest version in sPHENIX GitHub at line 467 of file CemcMon.cc

References eventCounter, and idummy.

Member Data Documentation

TH2* CemcMon::cemc_occupancy = nullptr
protected

Definition at line 34 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 34 of file CemcMon.h

Referenced by Init().

TH2* CemcMon::cemc_runningmean = nullptr
protected

Definition at line 35 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 35 of file CemcMon.h

Referenced by Init().

TH1* CemcMon::cemc_signal = nullptr
protected

Definition at line 36 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 36 of file CemcMon.h

Referenced by Init().

int CemcMon::eventCounter = 0
protected

Definition at line 46 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 46 of file CemcMon.h

Referenced by process_event(), and Reset().

TH1* CemcMon::h1_cemc_adc = nullptr
protected

Definition at line 37 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 37 of file CemcMon.h

Referenced by Init(), and process_event().

TH1* CemcMon::h1_cemc_fitting_pedDiff = nullptr
protected

Definition at line 52 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 52 of file CemcMon.h

Referenced by Init().

TH1* CemcMon::h1_cemc_fitting_sigDiff = nullptr
protected

Definition at line 51 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 51 of file CemcMon.h

Referenced by Init().

TH1* CemcMon::h1_cemc_fitting_timeDiff = nullptr
protected

Definition at line 53 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 53 of file CemcMon.h

Referenced by Init().

TH1* CemcMon::h1_event = nullptr
protected

Definition at line 61 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 61 of file CemcMon.h

Referenced by Init(), and process_event().

TH1* CemcMon::h1_packet_chans = nullptr
protected

Definition at line 48 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 48 of file CemcMon.h

Referenced by Init(), and process_event().

TH1* CemcMon::h1_packet_length = nullptr
protected

Definition at line 49 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 49 of file CemcMon.h

Referenced by Init(), and process_event().

TH1* CemcMon::h1_packet_number = nullptr
protected

Definition at line 50 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 50 of file CemcMon.h

Referenced by Init(), and process_event().

TH1* CemcMon::h1_rm_sectorAvg[100] = {nullptr}
protected

Definition at line 62 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 62 of file CemcMon.h

Referenced by Init(), and process_event().

TH1* CemcMon::h1_sectorAvg_total = nullptr
protected

Definition at line 60 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 60 of file CemcMon.h

Referenced by Init(), and process_event().

TH1* CemcMon::h1_waveform_pedestal = nullptr
protected

Definition at line 57 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 57 of file CemcMon.h

Referenced by Init(), and process_event().

TH1* CemcMon::h1_waveform_time = nullptr
protected

Definition at line 56 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 56 of file CemcMon.h

Referenced by Init(), and process_event().

TH2* CemcMon::h2_cemc_hits = nullptr
protected

Definition at line 54 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 54 of file CemcMon.h

Referenced by Init(), and process_event().

TH2* CemcMon::h2_cemc_mean = nullptr
protected

Definition at line 59 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 59 of file CemcMon.h

Referenced by Init(), and process_event().

TH2* CemcMon::h2_cemc_rm = nullptr
protected

Definition at line 58 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 58 of file CemcMon.h

Referenced by Init(), and process_event().

TH2* CemcMon::h2_waveform_twrAvg = nullptr
protected

Definition at line 55 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 55 of file CemcMon.h

Referenced by Init(), and process_event().

std::string CemcMon::id_string
protected

Definition at line 68 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 68 of file CemcMon.h

int CemcMon::idummy = 0
protected

Definition at line 33 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 33 of file CemcMon.h

Referenced by Reset().

const int CemcMon::m_nChannels = 192
protected

Definition at line 44 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 44 of file CemcMon.h

Referenced by process_event().

const int CemcMon::m_nSamples = 16
protected

Definition at line 43 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 43 of file CemcMon.h

Referenced by anaWaveformFast(), and anaWaveformTemp().

const int CemcMon::Nsector = 64
protected

Definition at line 39 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 39 of file CemcMon.h

Referenced by Init(), and process_event().

const int CemcMon::Ntower = 64*2*192
protected

Definition at line 40 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 40 of file CemcMon.h

Referenced by Init().

const int CemcMon::packethigh = 6128
protected

Definition at line 42 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 42 of file CemcMon.h

Referenced by process_event().

const int CemcMon::packetlow = 6001
protected

Definition at line 41 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 41 of file CemcMon.h

Referenced by process_event().

std::vector<runningMean*> CemcMon::rm_vector
protected

Definition at line 74 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 74 of file CemcMon.h

Referenced by BeginRun(), Init(), and ~CemcMon().

std::vector<runningMean*> CemcMon::rm_vector_sectAvg
protected

Definition at line 65 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 65 of file CemcMon.h

Referenced by Init(), process_event(), and ~CemcMon().

std::vector<runningMean*> CemcMon::rm_vector_twr
protected

Definition at line 64 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 64 of file CemcMon.h

Referenced by BeginRun(), Init(), process_event(), and ~CemcMon().

std::string CemcMon::runtypestr = "Unknown"
protected

Definition at line 67 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 67 of file CemcMon.h

const int CemcMon::templateDepth = 10000
protected

Definition at line 45 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 45 of file CemcMon.h

CaloWaveformFitting* CemcMon::WaveformProcessingFast = nullptr
protected

Definition at line 70 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 70 of file CemcMon.h

Referenced by anaWaveformFast(), Init(), and ~CemcMon().

CaloWaveformFitting* CemcMon::WaveformProcessingTemp = nullptr
protected

Definition at line 71 of file CemcMon.h.

View newest version in sPHENIX GitHub at line 71 of file CemcMon.h

Referenced by anaWaveformTemp(), Init(), and ~CemcMon().


The documentation for this class was generated from the following files: