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

#include <OnlMon/blob/main/subsystems/tpc/TpcMon.h>

+ Inheritance diagram for TpcMon:
+ Collaboration diagram for TpcMon:

Public Member Functions

 TpcMon (const std::string &name)
 
virtual ~TpcMon ()
 
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

void Locate (int id, float *rbin, float *thbin)
 
int Index_from_Module (int sec_id, int fee_id)
 
int Module_ID (int fee_id)
 
int Max_Nine (int one, int two, int three, int four, int five, int six, int seven, int eight, int nine)
 
bool side (int server_id)
 
std::pair< float, float > calculateMedianAndStdDev (const std::vector< int > &values)
 

Protected Attributes

int evtcnt = 0
 
int idummy = 0
 
int weird_counter = 0
 
const int N_thBins = 12
 
const double rBin_edges [N_rBins+1] = {0.0, 0.256, 0.504, 0.752, 1.00}
 
const double r_bins [N_rBins_XY+1]
 
TH2 * NorthSideADC_clusterXY_R1 = nullptr
 
TH2 * NorthSideADC_clusterXY_R2 = nullptr
 
TH2 * NorthSideADC_clusterXY_R3 = nullptr
 
TH2 * SouthSideADC_clusterXY_R1 = nullptr
 
TH2 * SouthSideADC_clusterXY_R2 = nullptr
 
TH2 * SouthSideADC_clusterXY_R3 = nullptr
 
TH2 * NorthSideADC_clusterXY_R1_unw = nullptr
 
TH2 * NorthSideADC_clusterXY_R2_unw = nullptr
 
TH2 * NorthSideADC_clusterXY_R3_unw = nullptr
 
TH2 * SouthSideADC_clusterXY_R1_unw = nullptr
 
TH2 * SouthSideADC_clusterXY_R2_unw = nullptr
 
TH2 * SouthSideADC_clusterXY_R3_unw = nullptr
 
TH2 * NorthSideADC_clusterZY = nullptr
 
TH2 * SouthSideADC_clusterZY = nullptr
 
TH2 * NorthSideADC_clusterZY_unw = nullptr
 
TH2 * SouthSideADC_clusterZY_unw = nullptr
 
TH1 * tpchist1 = nullptr
 
TH2 * tpchist2 = nullptr
 
TH2 * NorthSideADC = nullptr
 
TH2 * SouthSideADC = nullptr
 
TH2 * ADC_vs_SAMPLE = nullptr
 
TH2 * ADC_vs_SAMPLE_large = nullptr
 
TH1 * sample_size_hist = nullptr
 
TH1 * Check_Sum_Error = nullptr
 
TH1 * Check_Sums = nullptr
 
TH2 * MAXADC = nullptr
 
TH1 * RAWADC_1D_R1 = nullptr
 
TH1 * MAXADC_1D_R1 = nullptr
 
TH1 * PEDEST_SUB_1D_R1 = nullptr
 
TH1 * RAWADC_1D_R2 = nullptr
 
TH1 * MAXADC_1D_R2 = nullptr
 
TH1 * PEDEST_SUB_1D_R2 = nullptr
 
TH1 * RAWADC_1D_R3 = nullptr
 
TH1 * MAXADC_1D_R3 = nullptr
 
TH1 * PEDEST_SUB_1D_R3 = nullptr
 
TH2 * Layer_ChannelPhi_ADC_weighted = nullptr
 
TpcMap M
 
int starting_BCO
 
int rollover_value
 
int current_BCOBIN
 
int serverid
 
- 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
 

Static Protected Attributes

static const int N_rBins = 4
 
static const int N_rBins_XY = 66
 
static const int N_phi_binx_XY_R1 = 1152
 
static const int N_phi_binx_XY_R2 = 1536
 
static const int N_phi_binx_XY_R3 = 2304
 
static const int N_z_bins = 3350
 

Additional Inherited Members

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

Detailed Description

Definition at line 19 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 19 of file TpcMon.h

Constructor & Destructor Documentation

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

Definition at line 40 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 40 of file TpcMon.cc

References current_BCOBIN, M, rollover_value, serverid, TpcMap::setMapNames(), and starting_BCO.

+ Here is the call graph for this function:

TpcMon::~TpcMon ( )
virtual

Definition at line 56 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 56 of file TpcMon.cc

Member Function Documentation

int TpcMon::BeginRun ( const int  runno)
virtual

Reimplemented from OnlMon.

Definition at line 363 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 363 of file TpcMon.cc

References current_BCOBIN, rollover_value, and starting_BCO.

std::pair< float, float > TpcMon::calculateMedianAndStdDev ( const std::vector< int > &  values)
protected

Definition at line 735 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 735 of file TpcMon.cc

References mean(), size, Acts::Experimental::detail::BlueprintHelper::sort(), sum(), value, and Acts::Test::values.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int TpcMon::Index_from_Module ( int  sec_id,
int  fee_id 
)
protected

Definition at line 671 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 671 of file TpcMon.cc

Referenced by process_event().

+ Here is the caller graph for this function:

void TpcMon::Locate ( int  id,
float *  rbin,
float *  thbin 
)
protected

Definition at line 686 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 686 of file TpcMon.cc

Referenced by process_event().

+ Here is the caller graph for this function:

int TpcMon::Max_Nine ( int  one,
int  two,
int  three,
int  four,
int  five,
int  six,
int  seven,
int  eight,
int  nine 
)
protected

Definition at line 714 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 714 of file TpcMon.cc

References i.

int TpcMon::Module_ID ( int  fee_id)
protected

Definition at line 655 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 655 of file TpcMon.cc

Referenced by process_event().

+ Here is the caller graph for this function:

int TpcMon::process_event ( Event evt)
virtual

special events

Reimplemented from OnlMon.

Definition at line 376 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 376 of file TpcMon.cc

References ADC_vs_SAMPLE, ADC_vs_SAMPLE_large, calculateMedianAndStdDev(), channel(), Check_Sum_Error, Check_Sums, current_BCOBIN, evtcnt, Event::existPacket(), Fill(), Event::getEvtType(), Packet::getHitFormat(), TpcMap::getLayer(), Event::getPacket(), TpcMap::getPad(), TpcMap::getPhi(), TpcMap::getR(), IDTPCFEEV3, idummy, Index_from_Module(), Packet::iValue(), layer, Layer_ChannelPhi_ADC_weighted, Locate(), M, MAXADC, MAXADC_1D_R1, MAXADC_1D_R2, MAXADC_1D_R3, Module_ID(), OnlMon::MonitorServerId(), NorthSideADC, NorthSideADC_clusterXY_R1, NorthSideADC_clusterXY_R1_unw, NorthSideADC_clusterXY_R2, NorthSideADC_clusterXY_R2_unw, NorthSideADC_clusterXY_R3, NorthSideADC_clusterXY_R3_unw, NorthSideADC_clusterZY, NorthSideADC_clusterZY_unw, merge_hashes::p, PEDEST_SUB_1D_R1, PEDEST_SUB_1D_R2, PEDEST_SUB_1D_R3, pedestal(), ActsTests::PropagationDatasets::phi, Acts::IntegrationTest::R, physmon_track_finding_ttbar::r, RAWADC_1D_R1, RAWADC_1D_R2, RAWADC_1D_R3, rollover_value, physmon_simulation::s, sample_size_hist, serverid, side(), SouthSideADC, SouthSideADC_clusterXY_R1, SouthSideADC_clusterXY_R1_unw, SouthSideADC_clusterXY_R2, SouthSideADC_clusterXY_R2_unw, SouthSideADC_clusterXY_R3, SouthSideADC_clusterXY_R3_unw, SouthSideADC_clusterZY, SouthSideADC_clusterZY_unw, starting_BCO, ActsTests::PropagationDatasets::theta, tpchist1, tpchist2, and physmon_track_finding_ttbar::z.

+ Here is the call graph for this function:

int TpcMon::Reset ( )
virtual

Reimplemented from OnlMon.

Definition at line 788 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 788 of file TpcMon.cc

References evtcnt, and idummy.

Referenced by Init().

+ Here is the caller graph for this function:

bool TpcMon::side ( int  server_id)
protected

Definition at line 727 of file TpcMon.cc.

View newest version in sPHENIX GitHub at line 727 of file TpcMon.cc

Referenced by process_event(), pyptis(), and pyresd().

+ Here is the caller graph for this function:

Member Data Documentation

TH2* TpcMon::ADC_vs_SAMPLE = nullptr
protected

Definition at line 81 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 81 of file TpcMon.h

Referenced by Init(), and process_event().

TH2* TpcMon::ADC_vs_SAMPLE_large = nullptr
protected

Definition at line 82 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 82 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::Check_Sum_Error = nullptr
protected

Definition at line 85 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 85 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::Check_Sums = nullptr
protected

Definition at line 86 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 86 of file TpcMon.h

Referenced by Init(), and process_event().

int TpcMon::current_BCOBIN
protected

Definition at line 108 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 108 of file TpcMon.h

Referenced by BeginRun(), process_event(), and TpcMon().

int TpcMon::evtcnt = 0
protected

Definition at line 31 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 31 of file TpcMon.h

Referenced by process_event(), and Reset().

int TpcMon::idummy = 0
protected

Definition at line 32 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 32 of file TpcMon.h

Referenced by process_event(), and Reset().

TH2* TpcMon::Layer_ChannelPhi_ADC_weighted = nullptr
protected

Definition at line 102 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 102 of file TpcMon.h

Referenced by Init(), and process_event().

TpcMap TpcMon::M
protected

Definition at line 104 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 104 of file TpcMon.h

Referenced by process_event(), and TpcMon().

TH2* TpcMon::MAXADC = nullptr
protected

Definition at line 88 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 88 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::MAXADC_1D_R1 = nullptr
protected

Definition at line 91 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 91 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::MAXADC_1D_R2 = nullptr
protected

Definition at line 95 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 95 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::MAXADC_1D_R3 = nullptr
protected

Definition at line 99 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 99 of file TpcMon.h

Referenced by Init(), and process_event().

const int TpcMon::N_phi_binx_XY_R1 = 1152
staticprotected

Definition at line 47 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 47 of file TpcMon.h

const int TpcMon::N_phi_binx_XY_R2 = 1536
staticprotected

Definition at line 48 of file TpcMon.h.

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

const int TpcMon::N_phi_binx_XY_R3 = 2304
staticprotected

Definition at line 49 of file TpcMon.h.

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

const int TpcMon::N_rBins = 4
staticprotected

Definition at line 35 of file TpcMon.h.

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

Referenced by Init().

const int TpcMon::N_rBins_XY = 66
staticprotected

Definition at line 40 of file TpcMon.h.

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

const int TpcMon::N_thBins = 12
protected

Definition at line 36 of file TpcMon.h.

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

Referenced by Init().

const int TpcMon::N_z_bins = 3350
staticprotected

Definition at line 51 of file TpcMon.h.

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

TH2* TpcMon::NorthSideADC = nullptr
protected

Definition at line 78 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 78 of file TpcMon.h

Referenced by Init(), and process_event().

TH2* TpcMon::NorthSideADC_clusterXY_R1 = nullptr
protected

Definition at line 53 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::NorthSideADC_clusterXY_R1_unw = nullptr
protected

Definition at line 61 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::NorthSideADC_clusterXY_R2 = nullptr
protected

Definition at line 54 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::NorthSideADC_clusterXY_R2_unw = nullptr
protected

Definition at line 62 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::NorthSideADC_clusterXY_R3 = nullptr
protected

Definition at line 55 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::NorthSideADC_clusterXY_R3_unw = nullptr
protected

Definition at line 63 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 63 of file TpcMon.h

Referenced by Init(), and process_event().

TH2* TpcMon::NorthSideADC_clusterZY = nullptr
protected

Definition at line 69 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 69 of file TpcMon.h

Referenced by Init(), and process_event().

TH2* TpcMon::NorthSideADC_clusterZY_unw = nullptr
protected

Definition at line 72 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 72 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::PEDEST_SUB_1D_R1 = nullptr
protected

Definition at line 92 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 92 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::PEDEST_SUB_1D_R2 = nullptr
protected

Definition at line 96 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 96 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::PEDEST_SUB_1D_R3 = nullptr
protected

Definition at line 100 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 100 of file TpcMon.h

Referenced by Init(), and process_event().

const double TpcMon::r_bins[N_rBins_XY+1]
protected
Initial value:
= {217.83,
223.83, 229.83, 235.83, 241.83, 247.83, 253.83, 259.83, 265.83, 271.83, 277.83, 283.83, 289.83, 295.83, 301.83, 306.83,
311.05, 317.92, 323.31, 329.27, 334.63, 340.59, 345.95, 351.91, 357.27, 363.23, 368.59, 374.55, 379.91, 385.87, 391.23, 397.19, 402.49,
411.53, 421.70, 431.90, 442.11, 452.32, 462.52, 472.73, 482.94, 493.14, 503.35, 513.56, 523.76, 533.97, 544.18, 554.39, 564.59, 574.76,
583.67, 594.59, 605.57, 616.54, 627.51, 638.48, 649.45, 660.42, 671.39, 682.36, 693.33, 704.30, 715.27, 726.24, 737.21, 748.18, 759.11}

Definition at line 41 of file TpcMon.h.

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

TH1* TpcMon::RAWADC_1D_R1 = nullptr
protected

Definition at line 90 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 90 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::RAWADC_1D_R2 = nullptr
protected

Definition at line 94 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 94 of file TpcMon.h

Referenced by Init(), and process_event().

TH1* TpcMon::RAWADC_1D_R3 = nullptr
protected

Definition at line 98 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 98 of file TpcMon.h

Referenced by Init(), and process_event().

const double TpcMon::rBin_edges[N_rBins+1] = {0.0, 0.256, 0.504, 0.752, 1.00}
protected

Definition at line 37 of file TpcMon.h.

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

Referenced by Init().

int TpcMon::rollover_value
protected

Definition at line 107 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 107 of file TpcMon.h

Referenced by BeginRun(), process_event(), and TpcMon().

TH1* TpcMon::sample_size_hist = nullptr
protected

Definition at line 84 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 84 of file TpcMon.h

Referenced by Init(), and process_event().

int TpcMon::serverid
protected

Definition at line 110 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 110 of file TpcMon.h

Referenced by process_event(), and TpcMon().

TH2* TpcMon::SouthSideADC = nullptr
protected

Definition at line 79 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 79 of file TpcMon.h

Referenced by Init(), and process_event().

TH2* TpcMon::SouthSideADC_clusterXY_R1 = nullptr
protected

Definition at line 57 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::SouthSideADC_clusterXY_R1_unw = nullptr
protected

Definition at line 65 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::SouthSideADC_clusterXY_R2 = nullptr
protected

Definition at line 58 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::SouthSideADC_clusterXY_R2_unw = nullptr
protected

Definition at line 66 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 66 of file TpcMon.h

Referenced by Init(), and process_event().

TH2* TpcMon::SouthSideADC_clusterXY_R3 = nullptr
protected

Definition at line 59 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::SouthSideADC_clusterXY_R3_unw = nullptr
protected

Definition at line 67 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::SouthSideADC_clusterZY = nullptr
protected

Definition at line 70 of file TpcMon.h.

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

Referenced by Init(), and process_event().

TH2* TpcMon::SouthSideADC_clusterZY_unw = nullptr
protected

Definition at line 73 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 73 of file TpcMon.h

Referenced by Init(), and process_event().

int TpcMon::starting_BCO
protected

Definition at line 106 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 106 of file TpcMon.h

Referenced by BeginRun(), process_event(), and TpcMon().

TH1* TpcMon::tpchist1 = nullptr
protected

Definition at line 75 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 75 of file TpcMon.h

Referenced by Init(), and process_event().

TH2* TpcMon::tpchist2 = nullptr
protected

Definition at line 76 of file TpcMon.h.

View newest version in sPHENIX GitHub at line 76 of file TpcMon.h

Referenced by Init(), and process_event().

int TpcMon::weird_counter = 0
protected

Definition at line 33 of file TpcMon.h.

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


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