CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CTPPSDiamondDQMSource::ChannelPlots Struct Reference

plots related to one Diamond channel More...

Public Member Functions

 ChannelPlots ()
 
 ChannelPlots (DQMStore::IBooker &ibooker, unsigned int id)
 

Public Attributes

std::vector< MonitorElement * > activity_per_bx
 
MonitorElementactivity_per_bx_0_25 = 0
 
MonitorElementactivity_per_bx_25_50 = 0
 
MonitorElementactivity_per_bx_50_75 = 0
 
unsigned int CompleteCounter
 
MonitorElementECCheckPerChannel = 0
 
MonitorElementhit_rate = 0
 
unsigned int HitCounter
 
unsigned long hitsCounterPerLumisection
 
MonitorElementHPTDCErrorFlags = 0
 
MonitorElementleadingEdgeCumulative_both = 0
 
MonitorElementleadingEdgeCumulative_le = 0
 
unsigned int LeadingOnlyCounter
 
MonitorElementLeadingTrailingCorrelationPerChannel = 0
 
MonitorElementleadingWithoutTrailing = 0
 
unsigned int MHCounter
 
MonitorElementstripTomography_far = 0
 
MonitorElementTimeOverThresholdCumulativePerChannel = 0
 
MonitorElementtrailingEdgeCumulative_te = 0
 
unsigned int TrailingOnlyCounter
 

Detailed Description

plots related to one Diamond channel

Definition at line 155 of file CTPPSDiamondDQMSource.cc.

Constructor & Destructor Documentation

CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots ( )
inline

Definition at line 174 of file CTPPSDiamondDQMSource.cc.

CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots ( DQMStore::IBooker ibooker,
unsigned int  id 
)

Definition at line 297 of file CTPPSDiamondDQMSource.cc.

References activity_per_bx, activity_per_bx_0_25, activity_per_bx_25_50, activity_per_bx_50_75, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), CTPPSDiamondDetId::channelName(), ECCheckPerChannel, HPTDCErrorFlags::getHPTDCErrorName(), MonitorElement::getTH1F(), hit_rate, leadingEdgeCumulative_both, leadingEdgeCumulative_le, LeadingTrailingCorrelationPerChannel, leadingWithoutTrailing, CTPPSDetId::nFull, CTPPSDetId::nPath, callgraph::path, DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, stripTomography_far, TimeOverThresholdCumulativePerChannel, fftjetcommon_cfi::title, and trailingEdgeCumulative_te.

298 {
301  ibooker.setCurrentFolder( path );
302 
304 
305  leadingWithoutTrailing = ibooker.book1D( "event category", title+" Event Category;;%", 3, 0.5, 3.5 );
306  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel( 1, "Leading only" );
307  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel( 2, "Trailing only" );
308  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel( 3, "Full" );
309 
310  activity_per_bx_0_25 = ibooker.book1D( "activity per BX 0 25", title+" Activity per BX 0 - 25 ns;Event.BX", 1000, -1.5, 998. + 0.5 );
312  activity_per_bx_25_50 = ibooker.book1D( "activity per BX 25 50", title+" Activity per BX 25 - 50 ns;Event.BX", 1000, -1.5, 998. + 0.5 );
314  activity_per_bx_50_75 = ibooker.book1D( "activity per BX 50 75", title+" Activity per BX 50 - 75 ns;Event.BX", 1000, -1.5, 998. + 0.5 );
316 
317  HPTDCErrorFlags = ibooker.book1D( "hptdc_Errors", title+" HPTDC Errors", 16, -0.5, 16.5 );
318  for ( unsigned short error_index=1; error_index<16; ++error_index )
319  HPTDCErrorFlags->getTH1F()->GetXaxis()->SetBinLabel( error_index, HPTDCErrorFlags::getHPTDCErrorName( error_index-1 ).c_str() );
320  HPTDCErrorFlags->getTH1F()->GetXaxis()->SetBinLabel( 16, "MH (%)" );
321 
322  leadingEdgeCumulative_both = ibooker.book1D( "leading edge (le and te)", title+" leading edge; leading edge (ns)", 125, 0, 125 );
323  leadingEdgeCumulative_le = ibooker.book1D( "leading edge (le only)", title+" leading edge; leading edge (ns)", 125, 0, 125 );
324  trailingEdgeCumulative_te = ibooker.book1D( "trailing edge (te only)", title+" trailing edge (te only); trailing edge (ns)", 125, 0, 125 );
325  TimeOverThresholdCumulativePerChannel = ibooker.book1D( "time over threshold", title+" time over threshold;time over threshold (ns)", 75, -25, 50 );
326  LeadingTrailingCorrelationPerChannel = ibooker.book2D( "leading trailing correlation", title+" leading trailing correlation;leading edge (ns);trailing edge (ns)", 75, 0, 75, 75, 0, 75 );
327 
328  ECCheckPerChannel = ibooker.book1D("optorxEC(8bit) - vfatEC vs optorxEC", title+" EC Error;optorxEC-vfatEC", 128, -64, 64 );
329 
330  stripTomography_far = ibooker.book2D( "tomography far", "tomography with strips far;x + 25 OOT (mm);y (mm)", 50, 0, 50, 12, -2, 10 );
331 
332  hit_rate = ibooker.book1D( "hit rate", title+"hit rate;rate (Hz)", 40, 0, 20);
333 }
void channelName(std::string &name, NameFlag flag=nFull) const
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
TH1F * getTH1F(void) const
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
std::vector< MonitorElement * > activity_per_bx
static std::string getHPTDCErrorName(const unsigned short id)

Member Data Documentation

std::vector< MonitorElement* > CTPPSDiamondDQMSource::ChannelPlots::activity_per_bx

Definition at line 160 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::activity_per_bx_0_25 = 0

Definition at line 157 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::activity_per_bx_25_50 = 0

Definition at line 158 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::activity_per_bx_50_75 = 0

Definition at line 159 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::CompleteCounter

Definition at line 172 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::ECCheckPerChannel = 0

Definition at line 169 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::hit_rate = 0

Definition at line 168 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::HitCounter

Definition at line 172 of file CTPPSDiamondDQMSource.cc.

unsigned long CTPPSDiamondDQMSource::ChannelPlots::hitsCounterPerLumisection

Definition at line 170 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::HPTDCErrorFlags = 0

Definition at line 162 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_both = 0

Definition at line 163 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_le = 0

Definition at line 163 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::LeadingOnlyCounter

Definition at line 172 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::LeadingTrailingCorrelationPerChannel = 0

Definition at line 165 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingWithoutTrailing = 0

Definition at line 166 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::MHCounter

Definition at line 172 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::stripTomography_far = 0

Definition at line 167 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::TimeOverThresholdCumulativePerChannel = 0

Definition at line 164 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::trailingEdgeCumulative_te = 0

Definition at line 163 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::TrailingOnlyCounter

Definition at line 172 of file CTPPSDiamondDQMSource.cc.