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
 
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
 
MonitorElementpixelTomography_far = 0
 
MonitorElementTimeOverThresholdCumulativePerChannel = 0
 
MonitorElementtrailingEdgeCumulative_te = 0
 
unsigned int TrailingOnlyCounter
 

Detailed Description

plots related to one Diamond channel

Definition at line 183 of file CTPPSDiamondDQMSource.cc.

Constructor & Destructor Documentation

CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots ( )
inline

Definition at line 201 of file CTPPSDiamondDQMSource.cc.

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

Definition at line 331 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(), HPTDCErrorFlags::getHPTDCErrorName(), MonitorElement::getTH1F(), hit_rate, leadingEdgeCumulative_both, leadingEdgeCumulative_le, LeadingTrailingCorrelationPerChannel, leadingWithoutTrailing, CTPPSDetId::nFull, CTPPSDetId::nPath, callgraph::path, pixelTomography_far, DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, TimeOverThresholdCumulativePerChannel, fftjetcommon_cfi::title, and trailingEdgeCumulative_te.

332 {
335  ibooker.setCurrentFolder( path );
336 
338 
339  leadingWithoutTrailing = ibooker.book1D( "event category", title+" Event Category;;%", 3, 0.5, 3.5 );
340  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel( 1, "Leading only" );
341  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel( 2, "Trailing only" );
342  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel( 3, "Full" );
343 
344  activity_per_bx_0_25 = ibooker.book1D( "activity per BX 0 25", title+" Activity per BX 0 - 25 ns;Event.BX", 500, -1.5, 498. + 0.5 );
346  activity_per_bx_25_50 = ibooker.book1D( "activity per BX 25 50", title+" Activity per BX 25 - 50 ns;Event.BX", 500, -1.5, 498. + 0.5 );
348  activity_per_bx_50_75 = ibooker.book1D( "activity per BX 50 75", title+" Activity per BX 50 - 75 ns;Event.BX", 500, -1.5, 498. + 0.5 );
350 
351  HPTDCErrorFlags = ibooker.book1D( "hptdc_Errors", title+" HPTDC Errors", 16, -0.5, 16.5 );
352  for ( unsigned short error_index=1; error_index<16; ++error_index )
353  HPTDCErrorFlags->getTH1F()->GetXaxis()->SetBinLabel( error_index, HPTDCErrorFlags::getHPTDCErrorName( error_index-1 ).c_str() );
354  HPTDCErrorFlags->getTH1F()->GetXaxis()->SetBinLabel( 16, "MH (%)" );
355 
356  leadingEdgeCumulative_both = ibooker.book1D( "leading edge (le and te)", title+" leading edge (recHits); leading edge (ns)", 75, 0, 75 );
357  leadingEdgeCumulative_le = ibooker.book1D( "leading edge (le only)", title+" leading edge (DIGIs); leading edge (ns)", 75, 0, 75 );
358  trailingEdgeCumulative_te = ibooker.book1D( "trailing edge (te only)", title+" trailing edge (te only) (DIGIs); trailing edge (ns)", 75, 0, 75 );
359  TimeOverThresholdCumulativePerChannel = ibooker.book1D( "time over threshold", title+" time over threshold;time over threshold (ns)", 75, -25, 50 );
360  LeadingTrailingCorrelationPerChannel = ibooker.book2D( "leading trailing correlation", title+" leading trailing correlation;leading edge (ns);trailing edge (ns)", 75, 0, 75, 75, 0, 75 );
361 
362  pixelTomography_far = ibooker.book2D( "tomography pixel", "tomography with pixel;x + 25 OOT (mm);y (mm)", 75, 0, 75, 8, 0, 8 );
363 
364  hit_rate = ibooker.book1D( "hit rate", title+"hit rate;rate (Hz)", 40, 0, 20);
365 }
TH1F * getTH1F() const
void channelName(std::string &name, NameFlag flag=nFull) const
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
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 188 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::activity_per_bx_0_25 = 0

Definition at line 185 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::activity_per_bx_25_50 = 0

Definition at line 186 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::activity_per_bx_50_75 = 0

Definition at line 187 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::CompleteCounter

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::hit_rate = 0

Definition at line 196 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::HitCounter

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

unsigned long CTPPSDiamondDQMSource::ChannelPlots::hitsCounterPerLumisection

Definition at line 197 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::HPTDCErrorFlags = 0

Definition at line 190 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_both = 0

Definition at line 191 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_le = 0

Definition at line 191 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::LeadingOnlyCounter

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::LeadingTrailingCorrelationPerChannel = 0

Definition at line 193 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingWithoutTrailing = 0

Definition at line 194 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::MHCounter

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::pixelTomography_far = 0

Definition at line 195 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::TimeOverThresholdCumulativePerChannel = 0

Definition at line 192 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::trailingEdgeCumulative_te = 0

Definition at line 191 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::TrailingOnlyCounter

Definition at line 199 of file CTPPSDiamondDQMSource.cc.