197 h_trackCorr_hor = ibooker.
book2D(
"track correlation all hor",
"rp, all, hor", 6, -0.5, 5.5, 6, -0.5, 5.5 );
199 TAxis* xa = hist->GetXaxis(), *ya = hist->GetYaxis();
200 xa->SetBinLabel( 6,
"45, 210, near" ); ya->SetBinLabel( 1,
"45, 210, near" );
201 xa->SetBinLabel( 5,
"45, 210, far" ); ya->SetBinLabel( 2,
"45, 210, far" );
202 xa->SetBinLabel( 4,
"45, 220, cyl" ); ya->SetBinLabel( 3,
"45, 220, cyl" );
203 xa->SetBinLabel( 3,
"56, 210, near" ); ya->SetBinLabel( 4,
"56, 210, near" );
204 xa->SetBinLabel( 2,
"56, 210, far" ); ya->SetBinLabel( 5,
"56, 210, far" );
205 xa->SetBinLabel( 1,
"56, 220, cyl" ); ya->SetBinLabel( 6,
"56, 220, cyl" );
219 activity_per_bx = ibooker.
book1D(
"activity per BX", title+
" activity per BX;Event.BX", 4002, -1.5, 4000. + 0.5 );
220 activity_per_bx_plus1 = ibooker.
book1D(
"activity per BX OOT +1", title+
" activity per BX OOT +1;Event.BX", 4002, -1.5, 4000. + 0.5 );
221 activity_per_bx_minus1 = ibooker.
book1D(
"activity per BX OOT -1", title+
" activity per BX OOT -1;Event.BX", 4002, -1.5, 4000. + 0.5 );
225 hitDistribution2dOOT_le= ibooker.
book2D(
"hits with OOT in planes (le only)", title+
" hits with OOT in planes (le only);plane number + 0.1 OOT;x (mm)", 41, -0.1, 4, 19.*
INV_DISPLAY_RESOLUTION_FOR_HITS_MM, -1, 18 );
226 hitDistribution2dOOT_te= ibooker.
book2D(
"hits with OOT in planes (te only)", title+
" hits with OOT in planes (te only);plane number + 0.1 OOT;x (mm)", 41, -0.1, 4, 19.*
INV_DISPLAY_RESOLUTION_FOR_HITS_MM, -1, 18 );
227 activePlanes = ibooker.
book1D(
"active planes", title+
" active planes;number of active planes", 6, -0.5, 5.5 );
232 stripTomographyAllFar = ibooker.
book2D(
"tomography all far", title+
" tomography with strips far (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 24, -2, 10 );
233 stripTomographyAllFar_plus1 = ibooker.
book2D(
"tomography all far OOT +1", title+
" tomography with strips far (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 24, -2, 10 );
234 stripTomographyAllFar_minus1 = ibooker.
book2D(
"tomography all far OOT -1", title+
" tomography with strips far (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 24, -2, 10 );
236 leadingEdgeCumulative_both = ibooker.
book1D(
"leading edge (le and te)", title+
" leading edge (le and te); leading edge (ns)", 125, 0, 125 );
237 leadingEdgeCumulative_le = ibooker.
book1D(
"leading edge (le only)", title+
" leading edge (le only); leading edge (ns)", 125, 0, 125 );
238 timeOverThresholdCumulativePot = ibooker.
book1D(
"time over threshold", title+
" time over threshold;time over threshold (ns)", 100, -100, 100 );
239 leadingTrailingCorrelationPot = ibooker.
book2D(
"leading trailing correlation", title+
" leading trailing correlation;leading edge (ns);trailing edge (ns)", 100, 0, 100, 100, 0, 100 );
241 leadingWithoutTrailingCumulativePot = ibooker.
book1D(
"leading edges without trailing", title+
" leading edges without trailing;leading edges without trailing", 4, 0.5, 4.5 );
242 leadingWithoutTrailingCumulativePot->
getTH1F()->GetXaxis()->SetBinLabel( 1,
"Nothing" );
243 leadingWithoutTrailingCumulativePot->getTH1F()->GetXaxis()->SetBinLabel( 2,
"Leading only" );
244 leadingWithoutTrailingCumulativePot->getTH1F()->GetXaxis()->SetBinLabel( 3,
"Trailing only" );
245 leadingWithoutTrailingCumulativePot->getTH1F()->GetXaxis()->SetBinLabel( 4,
"Both" );
247 ECCheck = ibooker.
book1D(
"optorxEC(8bit) - vfatEC", title+
" EC Error;optorxEC-vfatEC", 512, -256, 256 );
249 HPTDCErrorFlags_cumulative = ibooker.
book1D(
"HPTDC Errors", title+
" HPTDC Errors", 16, -0.5, 16.5 );
250 for (
unsigned short error_index=1; error_index<16; ++error_index )
252 HPTDCErrorFlags_cumulative->getTH1F()->GetXaxis()->SetBinLabel( 16,
"MH" );
256 clock_Digi1_le = ibooker.
book1D(
"clock1 leading edge", title+
" clock1;leading edge (ns)", 125, 0, 125 );
257 clock_Digi1_te = ibooker.
book1D(
"clock1 trailing edge", title+
" clock1;trailing edge (ns)", 125, 0, 125 );
258 clock_Digi3_le = ibooker.
book1D(
"clock3 leading edge", title+
" clock3;leading edge (ns)", 1000, 0, 125 );
259 clock_Digi3_te = ibooker.
book1D(
"clock3 trailing edge", title+
" clock3;trailing edge (ns)", 125, 0, 125 );
272 digiProfileCumulativePerPlane = ibooker.
book1D(
"digi profile", title+
" digi profile; ch number", 12, -0.5, 11.5 );
274 hit_multiplicity = ibooker.
book1D(
"channels per plane", title+
" channels per plane; ch per plane", 13, -0.5, 12.5 );
276 stripTomography_far = ibooker.
book2D(
"tomography far", title+
" tomography with strips far;x + 25 OOT (mm);y (mm)", 150, -50, 100, 24, -2, 10 );
295 activity_per_bx = ibooker.
book1D(
"activity per BX", title+
" activity per BX;Event.BX", 4002, -1.5, 4000. + 0.5 );
296 activity_per_bx_plus1 = ibooker.
book1D(
"activity per BX OOT +1", title+
" activity per BX OOT +1;Event.BX", 4002, -1.5, 4000. + 0.5 );
300 for (
unsigned short error_index=1; error_index<16; ++error_index )
309 ECCheckPerChannel = ibooker.
book1D(
"optorxEC(8bit) - vfatEC vs optorxEC", title+
" EC Error;optorxEC-vfatEC", 512, -256, 256 );
311 stripTomography_far = ibooker.
book2D(
"tomography far",
"tomography with strips far;x + 25 OOT (mm);y (mm)", 150, -50, 100, 24, -2, 10 );
313 hit_rate = ibooker.
book1D(
"hit rate", title+
"hit rate;rate (Hz)", 10, 0, 100 );
329 verbosity_ ( ps.getUntrackedParameter<unsigned
int>(
"verbosity", 0 ) ),
332 for (
const auto&
pset : ps.
getParameter< std::vector<edm::ParameterSet> >(
"offsetsOOT" ) ) {
387 if (
plot.second.hitsCounterPerLumisection != 0 ) {
390 plot.second.hitsCounterPerLumisection = 0;
420 valid &= diamondVFATStatus.
isValid();
421 valid &= diamondDigis.
isValid();
427 <<
"ERROR in TotemDQMModuleRP::analyze > some of the required inputs are not valid. Skipping this event.\n" 428 <<
" diamondVFATStatus.isValid = " << diamondVFATStatus.
isValid() <<
"\n" 429 <<
" diamondDigis.isValid = " << diamondDigis.
isValid() <<
"\n" 430 <<
" fedInfo.isValid = " << fedInfo.
isValid();
446 for (
const auto& ds1 : *stripTracks ) {
447 for (
const auto& tr1 : ds1 ) {
448 if ( ! tr1.isValid() )
continue;
451 unsigned int arm1 = rpId1.
arm();
452 unsigned int stNum1 = rpId1.station();
453 unsigned int rpNum1 = rpId1.rp();
454 if (stNum1 != 0 || ( rpNum1 != 2 && rpNum1 != 3 ) )
continue;
455 unsigned int idx1 = arm1*3 + rpNum1-2;
457 for (
const auto& ds2 : *stripTracks ) {
458 for (
const auto& tr2 : ds2 ) {
459 if ( ! tr2.isValid() )
continue;
462 unsigned int arm2 = rpId2.
arm();
463 unsigned int stNum2 = rpId2.station();
464 unsigned int rpNum2 = rpId2.rp();
465 if (stNum2 != 0 || ( rpNum2 != 2 && rpNum2 != 3 ) )
continue;
466 unsigned int idx2 = arm2*3 + rpNum2-2;
471 for (
const auto& ds2 : *diamondLocalTracks ) {
472 for (
const auto& tr2 : ds2 ) {
473 if ( ! tr2.isValid() )
continue;
478 unsigned int arm2 = diamId2.
arm();
479 if ( idx1 >= arm2*3+2 )
488 for (
const auto& ds1 : *diamondLocalTracks ) {
489 for (
const auto& tr1 : ds1 ) {
490 if ( ! tr1.isValid() )
continue;
495 unsigned int arm1 = diamId1.
arm();
499 for (
const auto& ds2 : *diamondLocalTracks ) {
500 for (
const auto& tr2 : ds2 ) {
501 if ( ! tr2.isValid() )
continue;
506 unsigned int arm2 = diamId2.
arm();
515 for (
const auto& digis : *diamondDigis ) {
519 for (
const auto& digi : digis ) {
521 detId_pot.setChannel( 0 );
525 if ( digi.getLeadingEdge() == 0 && digi.getTrailingEdge() == 0 )
potPlots_[detId_pot].leadingWithoutTrailingCumulativePot->Fill( 1 );
526 else if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() == 0 )
potPlots_[detId_pot].leadingWithoutTrailingCumulativePot->Fill( 2 );
527 else if ( digi.getLeadingEdge() == 0 && digi.getTrailingEdge() != 0 )
potPlots_[detId_pot].leadingWithoutTrailingCumulativePot->Fill( 3 );
528 else if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() != 0 )
potPlots_[detId_pot].leadingWithoutTrailingCumulativePot->Fill( 4 );
532 for (
unsigned short hptdcErrorIndex = 1; hptdcErrorIndex < 16; ++hptdcErrorIndex )
533 if ( hptdcErrors.
getErrorId( hptdcErrorIndex-1 ) )
potPlots_[detId_pot].HPTDCErrorFlags_cumulative->Fill( hptdcErrorIndex );
534 if ( digi.getMultipleHit() )
potPlots_[detId_pot].HPTDCErrorFlags_cumulative->Fill( 16 );
539 for (
const auto& vfat_status : *diamondVFATStatus ) {
543 detId_pot.setChannel( 0 );
544 for (
const auto&
status : vfat_status ) {
545 if ( !
status.isOK() )
continue;
549 for (
const auto& optorx : *fedInfo ) {
551 potPlots_[detId_pot].ECCheck->Fill((
int)((optorx.getLV1()& 0xFF)-((
unsigned int)
status.getEC() & 0xFF)) & 0xFF);
552 if ( ( static_cast<int>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) !=
EC_difference_56_ ) && (
static_cast<uint8_t
>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) < 128 ) )
553 EC_difference_56_ = static_cast<int>( optorx.getLV1() & 0xFF )-( static_cast<unsigned int>(
status.getEC() ) & 0xFF );
557 <<
"\t\tVFAT EC: 0x"<<
static_cast<unsigned int>(
status.getEC() )
558 <<
"\twith ID: " <<
std::dec << detId
562 potPlots_[detId_pot].ECCheck->Fill((
int)((optorx.getLV1()& 0xFF)-
status.getEC()) & 0xFF);
563 if ( ( static_cast<int>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) !=
EC_difference_45_ ) && (
static_cast<uint8_t
>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) < 128 ) )
564 EC_difference_45_ = static_cast<int>( optorx.getLV1() & 0xFF )-( static_cast<unsigned int>(
status.getEC() ) & 0xFF );
568 <<
"\t\tVFAT EC: 0x"<<
static_cast<unsigned int>(
status.getEC() )
569 <<
"\twith ID: " <<
std::dec << detId
577 std::unordered_map<unsigned int, std::set<unsigned int> > planes;
579 for (
const auto&
rechits : *diamondRecHits ) {
582 detId_pot.setChannel( 0 );
585 for (
const auto& rechit :
rechits ) {
587 planes[detId_pot].insert( detId.plane() );
591 float UFSDShift = 0.0;
592 if ( rechit.getYWidth() < 3 ) UFSDShift = 0.5;
595 TH2F *hitHistoTmp =
potPlots_[detId_pot].hitDistribution2d->getTH2F();
596 TAxis *hitHistoTmpYAxis = hitHistoTmp->GetYaxis();
597 int startBin = hitHistoTmpYAxis->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
599 for (
int i=0;
i<numOfBins; ++
i) {
600 hitHistoTmp->Fill( detId.plane(), hitHistoTmpYAxis->GetBinCenter(startBin+
i) + UFSDShift );
604 if ( rechit.getToT() != 0 ) {
606 potPlots_[detId_pot].leadingEdgeCumulative_both->Fill( rechit.getT() + 25*rechit.getOOTIndex() );
607 potPlots_[detId_pot].timeOverThresholdCumulativePot->Fill( rechit.getToT() );
609 TH2F *hitHistoOOTTmp =
potPlots_[detId_pot].hitDistribution2dOOT->getTH2F();
610 TAxis *hitHistoOOTTmpYAxis = hitHistoOOTTmp->GetYaxis();
611 int startBin = hitHistoOOTTmpYAxis->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
613 for (
int i=0;
i<numOfBins; ++
i) {
614 hitHistoOOTTmp->Fill( detId.plane() + 0.1 * rechit.getOOTIndex(), hitHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
618 if ( rechit.getT() == 0 ) {
620 TH2F *hitHistoOOTTmp =
potPlots_[detId_pot].hitDistribution2dOOT_te->getTH2F();
621 TAxis *hitHistoOOTTmpYAxis = hitHistoOOTTmp->GetYaxis();
622 int startBin = hitHistoOOTTmpYAxis->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
624 for (
int i=0;
i<numOfBins; ++
i) {
625 hitHistoOOTTmp->Fill( detId.plane() + 0.1 * rechit.getOOTIndex(), hitHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
630 potPlots_[detId_pot].leadingEdgeCumulative_le->Fill( rechit.getT() + 25*rechit.getOOTIndex() );
632 TH2F *hitHistoOOTTmp =
potPlots_[detId_pot].hitDistribution2dOOT_le->getTH2F();
633 TAxis *hitHistoOOTTmpYAxis = hitHistoOOTTmp->GetYaxis();
634 int startBin = hitHistoOOTTmpYAxis->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
636 for (
int i=0;
i<numOfBins; ++
i) {
637 hitHistoOOTTmp->Fill( detId.plane() + 0.1 * rechit.getOOTIndex(), hitHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
642 if ( rechit.getToT() != 0 ) {
660 plt.second.activePlanes->Fill( planes[plt.first].size() );
664 for (
const auto&
tracks : *diamondLocalTracks ) {
667 detId_pot.setChannel( 0 );
671 if ( !
track.isValid() )
continue;
673 if ( potPlots_.find( detId_pot ) == potPlots_.end() )
continue;
675 TH2F *trackHistoOOTTmp = potPlots_[detId_pot].trackDistributionOOT->getTH2F();
676 TAxis *trackHistoOOTTmpYAxis = trackHistoOOTTmp->GetYaxis();
677 int startBin = trackHistoOOTTmpYAxis->FindBin(
track.getX0() -
track.getX0Sigma() );
679 for (
int i=0;
i<numOfBins; ++
i) {
680 trackHistoOOTTmp->Fill(
track.getOOTIndex(), trackHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
684 TH1F *trackHistoInTimeTmp = potPlots_[detId_pot].trackDistribution->getTH1F();
685 int startBin = trackHistoInTimeTmp->FindBin(
track.getX0() -
track.getX0Sigma() );
687 for (
int i=0;
i<numOfBins; ++
i) {
688 trackHistoInTimeTmp->Fill( trackHistoInTimeTmp->GetBinCenter(startBin+
i) );
695 for (
const auto&
rechits : *diamondRecHits ) {
698 detId_pot.setChannel( 0 );
701 for (
const auto& rechit :
rechits ) {
703 if ( rechit.getToT() == 0 )
continue;
704 if ( !stripTracks.isValid() )
continue;
705 if ( potPlots_.find( detId_pot ) == potPlots_.end() )
continue;
707 for (
const auto& ds : *stripTracks ) {
709 for (
const auto& striplt : ds ) {
710 if ( !striplt.isValid() )
continue;
711 if ( stripId.arm() != detId_pot.arm() )
continue;
717 potPlots_[detId_pot].stripTomographyAllFar_minus1->Fill( striplt.getX0() + 25*detId.plane(), striplt.getY0() );
720 potPlots_[detId_pot].stripTomographyAllFar->Fill( striplt.getX0() + 25*detId.plane(), striplt.getY0() );
723 potPlots_[detId_pot].stripTomographyAllFar_plus1->Fill( striplt.getX0() + 25*detId.plane(), striplt.getY0() );
736 for (
const auto& digis : *diamondDigis ) {
741 detId_pot.setChannel( 0 );
742 for (
const auto& digi : digis ) {
743 if ( digi.getLeadingEdge() != 0 ) {
744 if ( detId.plane() == 1 ) {
745 potPlots_[detId_pot].clock_Digi1_le->Fill(
HPTDC_BIN_WIDTH_NS * digi.getLeadingEdge() );
746 potPlots_[detId_pot].clock_Digi1_te->Fill(
HPTDC_BIN_WIDTH_NS * digi.getTrailingEdge() );
748 if ( detId.plane() == 3 ) {
749 potPlots_[detId_pot].clock_Digi3_le->Fill(
HPTDC_BIN_WIDTH_NS * digi.getLeadingEdge() );
750 potPlots_[detId_pot].clock_Digi3_te->Fill(
HPTDC_BIN_WIDTH_NS * digi.getTrailingEdge() );
762 std::unordered_map<unsigned int, unsigned int> channelsPerPlane;
763 for (
const auto& digis : *diamondDigis ) {
766 for (
const auto& digi : digis ) {
771 if ( digi.getLeadingEdge() != 0 ) {
772 planePlots_[detId_plane].digiProfileCumulativePerPlane->Fill( detId.channel() );
773 if ( channelsPerPlane.find(detId_plane) != channelsPerPlane.end() ) channelsPerPlane[detId_plane]++;
774 else channelsPerPlane[detId_plane] = 0;
779 for (
const auto& plt : channelsPerPlane ) {
780 planePlots_[plt.first].hit_multiplicity->Fill( plt.second );
784 for (
const auto&
rechits : *diamondRecHits ) {
787 for (
const auto& rechit :
rechits ) {
789 if ( rechit.getToT() == 0 )
continue;
792 TH1F *hitHistoTmp =
planePlots_[detId_plane].hitProfile->getTH1F();
793 int startBin = hitHistoTmp->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
795 for (
int i=0;
i<numOfBins; ++
i) {
796 hitHistoTmp->Fill( hitHistoTmp->GetBinCenter(startBin+
i) );
804 for (
const auto&
rechits : *diamondRecHits ) {
807 for (
const auto& rechit :
rechits ) {
809 if ( rechit.getToT() == 0 )
continue;
810 if ( !stripTracks.isValid() )
continue;
813 for (
const auto& ds : *stripTracks ) {
815 for (
const auto& striplt : ds ) {
816 if (! striplt.isValid())
continue;
817 if ( stripId.arm() != detId_plane.arm() )
continue;
821 planePlots_[detId_plane].stripTomography_far->Fill( striplt.getX0() + 25*(rechit.getOOTIndex() - ( (
centralOOT_ != -999 ) ?
centralOOT_ : 0 ) +1), striplt.getY0() );
832 for (
const auto& vfat_status : *diamondVFATStatus ) {
834 for (
const auto&
status : vfat_status ) {
835 if ( !
status.isOK() )
continue;
837 for (
const auto& optorx : *fedInfo ) {
839 channelPlots_[detId].ECCheckPerChannel->Fill((
int)((optorx.getLV1()& 0xFF)-((
unsigned int)
status.getEC() & 0xFF)) & 0xFF);
847 for (
const auto& digis : *diamondDigis ) {
849 for (
const auto& digi : digis ) {
854 for (
unsigned short hptdcErrorIndex = 1; hptdcErrorIndex < 16; ++hptdcErrorIndex )
859 if ( digi.getLeadingEdge() == 0 && digi.getTrailingEdge() == 0 )
channelPlots_[detId].leadingWithoutTrailing->Fill( 1 );
860 else if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() == 0 )
channelPlots_[detId].leadingWithoutTrailing->Fill( 2 );
861 else if ( digi.getLeadingEdge() == 0 && digi.getTrailingEdge() != 0 )
channelPlots_[detId].leadingWithoutTrailing->Fill( 3 );
862 else if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() != 0 )
channelPlots_[detId].leadingWithoutTrailing->Fill( 4 );
868 for (
const auto&
rechits : *diamondRecHits ) {
870 for (
const auto& rechit :
rechits ) {
873 if ( rechit.getToT() != 0 ) {
874 channelPlots_[detId].leadingEdgeCumulative_both->Fill( rechit.getT() + 25*rechit.getOOTIndex() );
875 channelPlots_[detId].TimeOverThresholdCumulativePerChannel->Fill( rechit.getToT() );
877 else if ( rechit.getT() != 0 )
channelPlots_[detId].leadingEdgeCumulative_le->Fill( rechit.getT() + 25*rechit.getOOTIndex() );
878 channelPlots_[detId].LeadingTrailingCorrelationPerChannel->Fill( rechit.getT() + 25*rechit.getOOTIndex(), rechit.getT() + 25*rechit.getOOTIndex() + rechit.getToT() );
882 if ( rechit.getToT() != 0 ) {
900 for (
const auto&
rechits : *diamondRecHits ) {
902 for (
const auto& rechit :
rechits ) {
904 if ( stripTracks.isValid() ) {
906 for (
const auto& ds : *stripTracks ) {
907 for (
const auto& striplt : ds ) {
909 if ( !striplt.isValid() )
continue;
910 if ( stripId.arm() != detId.arm() )
continue;
static const int CTPPS_FED_ID_56
OptoRx headers and footers.
plots related to one Diamond plane
MonitorElement * TimeOverThresholdCumulativePerChannel
T getParameter(std::string const &) const
plots related to one Diamond detector package
MonitorElement * h_trackCorr_hor
MonitorElement * activity_per_bx_minus1
static const int CHANNEL_OF_VFAT_CLOCK
bool contains(EventRange const &lh, EventID const &rh)
static const double DISPLAY_RESOLUTION_FOR_HITS_MM
static const int CTPPS_DIAMOND_NUM_OF_PLANES
void setPlane(uint32_t channel)
MonitorElement * leadingEdgeCumulative_le
Reconstructed hit in diamond detectors.
#define DEFINE_FWK_MODULE(type)
void setChannel(uint32_t channel)
void channelName(std::string &name, NameFlag flag=nFull) const
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
MonitorElement * stripTomography_far
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondDigi > > tokenDigi_
CTPPSDiamondDQMSource(const edm::ParameterSet &)
bool getErrorId(unsigned short id) const
static const int CTPPS_NUM_OF_ARMS
plots related to the whole system
int bunchCrossing() const
double maximumStripAngleForTomography_
static const int CTPPS_DIAMOND_NUM_OF_CHANNELS
edm::EDGetTokenT< edm::DetSetVector< TotemRPLocalTrack > > tokenLocalTrack_
void endRun(const edm::Run &, const edm::EventSetup &)
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
A track fit through a single RP.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
static const int CTPPS_DIAMOND_STATION_ID
void analyze(const edm::Event &, const edm::EventSetup &)
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
std::vector< std::pair< edm::EventRange, int > > runParameters_
static const int CTPPS_NEAR_RP_ID
std::unordered_map< unsigned int, ChannelPlots > channelPlots_
MonitorElement * book1D(Args &&...args)
void rpName(std::string &name, NameFlag flag=nFull) const
MonitorElement * activity_per_bx
plots related to one Diamond channel
MonitorElement * ECCheckPerChannel
unsigned long hitsCounterPerLumisection
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondLocalTrack > > tokenDiamondTrack_
MonitorElement * activity_per_bx_plus1
static const double HPTDC_BIN_WIDTH_NS
void setCurrentFolder(const std::string &fullpath)
static const double INV_DISPLAY_RESOLUTION_FOR_HITS_MM
MonitorElement * book2D(Args &&...args)
TH1F * getTH1F(void) const
void planeName(std::string &name, NameFlag flag=nFull) const
MonitorElement * LeadingTrailingCorrelationPerChannel
MonitorElement * leadingEdgeCumulative_both
MonitorElement * leadingWithoutTrailing
Base class for CTPPS detector IDs.
std::unordered_map< unsigned int, PotPlots > potPlots_
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondRecHit > > tokenDiamondHit_
static const int CTPPS_FAR_RP_ID
static const double SEC_PER_LUMI_SECTION
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
std::unordered_map< unsigned int, PlanePlots > planePlots_
bool excludeMultipleHits_
TH2F * getTH2F(void) const
static const int CTPPS_DIAMOND_RP_ID
static std::string getHPTDCErrorName(const unsigned short id)
virtual ~CTPPSDiamondDQMSource()
edm::EDGetTokenT< std::vector< TotemFEDInfo > > tokenFEDInfo_
static const int CTPPS_FED_ID_45
edm::EDGetTokenT< edm::DetSetVector< TotemVFATStatus > > tokenStatus_
double minimumStripAngleForTomography_
MonitorElement * hit_rate