Analysis Software
Documentation for sPHENIX simulation software
|
#include <OnlMon/blob/main/subsystems/tpot/TpotMon.h>
Classes | |
class | detector_histograms_t |
Public Types | |
using | sample_window_t = std::pair< int, int > |
Public Types inherited from OnlMon | |
enum | { ACTIVE = -1, OK = 0, WARNING = 1, ERROR = 2 } |
Public Member Functions | |
TpotMon (const std::string &name) | |
~TpotMon () override=default | |
int | process_event (Event *evt) override |
int | Init () override |
int | BeginRun (const int runno) override |
int | Reset () override |
void | set_calibration_file (const std::string &value) |
calibration file | |
void | set_max_sample (int value) |
max sample | |
void | set_n_sigma (double value) |
set number of RMS sigma used to defined static threshold on a given channel | |
void | set_min_adc (double value) |
set minimum ADC value, disregarding pedestal and RMS. This removes channels for which calibration has failed | |
void | set_sample_window_signal (const sample_window_t &value) |
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 |
Private Member Functions | |
void | setup_detector_bins (TH2Poly *) |
setup bins in a TH2Poly. One bin per detector | |
void | setup_resist_bins (TH2Poly *, MicromegasDefs::SegmentationType) |
setup bins in TH2Poly, one bin per Resist sector | |
Private Attributes | |
int | m_evtcnt = 0 |
keep track of number of events | |
double | m_fullevtcnt = 0 |
keep track of number of 'full' triggers | |
MicromegasMapping | m_mapping |
mapping | |
MicromegasGeometry | m_geometry |
geometry | |
std::string | m_calibration_filename |
calibration filename | |
MicromegasCalibrationData | m_calibration_data |
calibration data | |
int | m_max_sample = 100 |
max sample | |
sample_window_t | m_sample_window_signal = {20, 40} |
double | m_n_sigma = 5 |
number of RMS sigma used to define threshold | |
double | m_min_adc = 50 |
minimum ADC value, disregarding pedestal and RMS. This removes channels for which calibration has failed | |
TH1 * | m_counters = nullptr |
counter | |
TH2Poly * | m_detector_multiplicity_z = nullptr |
TPOT per/detector multiplicity. | |
TH2Poly * | m_detector_multiplicity_phi = nullptr |
TH2Poly * | m_detector_occupancy_z = nullptr |
TPOT per/detector occupancy. | |
TH2Poly * | m_detector_occupancy_phi = nullptr |
TH2Poly * | m_resist_multiplicity_z = nullptr |
TPOT per/detector multiplicity. | |
TH2Poly * | m_resist_multiplicity_phi = nullptr |
TH2Poly * | m_resist_occupancy_z = nullptr |
TPOT per/detector occupancy. | |
TH2Poly * | m_resist_occupancy_phi = nullptr |
std::map< int, MicromegasGeometry::point_t > | m_tile_centers |
std::map< int, detector_histograms_t > | m_detector_histograms |
Additional Inherited Members | |
Protected Attributes inherited from OnlMon | |
int | status |
unsigned int | m_MonitorServerId = 0 |
TH1 * | m_LocalFrameWorkVars = nullptr |
Definition at line 19 of file TpotMon.h.
View newest version in sPHENIX GitHub at line 19 of file TpotMon.h
using TpotMon::sample_window_t = std::pair<int, int> |
TpotMon::TpotMon | ( | const std::string & | name | ) |
Definition at line 49 of file TpotMon.cc.
View newest version in sPHENIX GitHub at line 49 of file TpotMon.cc
References m_calibration_filename.
|
overridedefault |
|
overridevirtual |
Reimplemented from OnlMon.
Definition at line 209 of file TpotMon.cc.
View newest version in sPHENIX GitHub at line 209 of file TpotMon.cc
|
overridevirtual |
Reimplemented from OnlMon.
Definition at line 65 of file TpotMon.cc.
View newest version in sPHENIX GitHub at line 65 of file TpotMon.cc
References MicromegasMapping::get_detname_sphenix(), MicromegasMapping::get_fee_id_list(), MicromegasMapping::get_hitsetkey(), MicromegasGeometry::get_tile_center(), MicromegasDefs::getTileId(), h, OnlMonServer::instance(), TpotMonDefs::kEventCounter, TpotMonDefs::kFullEventCounter, TpotMonDefs::kValidEventCounter, TpotMon::detector_histograms_t::m_adc_sample, m_calibration_data, m_calibration_filename, m_counters, TpotMon::detector_histograms_t::m_counts_sample, m_detector_histograms, m_detector_multiplicity_phi, m_detector_multiplicity_z, m_detector_occupancy_phi, m_detector_occupancy_z, m_geometry, TpotMon::detector_histograms_t::m_hit_charge, TpotMon::detector_histograms_t::m_hit_multiplicity, TpotMon::detector_histograms_t::m_hit_vs_channel, m_mapping, m_max_sample, m_resist_multiplicity_phi, m_resist_multiplicity_z, m_resist_occupancy_phi, m_resist_occupancy_z, m_tile_centers, testing::internal::move(), MicromegasCalibrationData::read(), Reset(), PHG4InttDefs::SEGMENTATION_PHI, PHG4InttDefs::SEGMENTATION_Z, setup_detector_bins(), setup_resist_bins(), and OnlMonBase::Verbosity().
|
overridevirtual |
Reimplemented from OnlMon.
Definition at line 217 of file TpotMon.cc.
View newest version in sPHENIX GitHub at line 217 of file TpotMon.cc
References channel(), double(), MicromegasMapping::get_hitsetkey(), MicromegasCalibrationData::get_pedestal(), MicromegasMapping::get_physical_strip(), MicromegasCalibrationData::get_rms(), Event::getEvtType(), Event::getPacket(), MicromegasDefs::getSegmentationType(), h, i, TpotMonDefs::kEventCounter, TpotMonDefs::kFullEventCounter, TpotMonDefs::kValidEventCounter, m_calibration_data, m_counters, m_detector_histograms, m_detector_multiplicity_phi, m_detector_multiplicity_z, m_detector_occupancy_phi, m_detector_occupancy_z, m_evtcnt, m_fullevtcnt, m_mapping, m_min_adc, m_n_sigma, MicromegasDefs::m_nchannels_fee, MicromegasDefs::m_nchannels_total, MicromegasDefs::m_packet_ids, m_resist_multiplicity_phi, m_resist_multiplicity_z, m_resist_occupancy_phi, m_resist_occupancy_z, m_sample_window_signal, m_tile_centers, MicromegasGeometry::m_tile_length, MicromegasGeometry::m_tile_width, full_chain_odd::multiplicity, pedestal(), rms(), PHG4InttDefs::SEGMENTATION_PHI, PHG4InttDefs::SEGMENTATION_Z, parse_cmake_options::source, and OnlMonBase::Verbosity().
|
overridevirtual |
Reimplemented from OnlMon.
Definition at line 369 of file TpotMon.cc.
View newest version in sPHENIX GitHub at line 369 of file TpotMon.cc
References h, m_detector_histograms, m_detector_multiplicity_phi, m_detector_multiplicity_z, m_detector_occupancy_phi, m_detector_occupancy_z, m_evtcnt, m_fullevtcnt, m_resist_multiplicity_phi, m_resist_multiplicity_z, m_resist_occupancy_phi, and m_resist_occupancy_z.
Referenced by Init().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
setup bins in a TH2Poly. One bin per detector
Definition at line 393 of file TpotMon.cc.
View newest version in sPHENIX GitHub at line 393 of file TpotMon.cc
References MicromegasGeometry::get_ntiles(), MicromegasGeometry::get_tile_boundaries(), i, and m_geometry.
Referenced by Init().
|
private |
setup bins in TH2Poly, one bin per Resist sector
Definition at line 404 of file TpotMon.cc.
View newest version in sPHENIX GitHub at line 404 of file TpotMon.cc
References MicromegasGeometry::get_ntiles(), MicromegasGeometry::get_resist_boundaries(), m_geometry, and MicromegasGeometry::m_nresist.
Referenced by Init().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
geometry
Definition at line 71 of file TpotMon.h.
View newest version in sPHENIX GitHub at line 71 of file TpotMon.h
Referenced by Init(), setup_detector_bins(), and setup_resist_bins().
|
private |
|
private |
|
private |
minimum ADC value, disregarding pedestal and RMS. This removes channels for which calibration has failed
Definition at line 89 of file TpotMon.h.
View newest version in sPHENIX GitHub at line 89 of file TpotMon.h
Referenced by process_event(), and set_min_adc().
|
private |
number of RMS sigma used to define threshold
Definition at line 86 of file TpotMon.h.
View newest version in sPHENIX GitHub at line 86 of file TpotMon.h
Referenced by process_event(), and set_n_sigma().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 83 of file TpotMon.h.
View newest version in sPHENIX GitHub at line 83 of file TpotMon.h
Referenced by process_event(), and set_sample_window_signal().
|
private |