116 MonitorElement* leadingEdgeCumulative_both =
nullptr, *leadingEdgeCumulative_le =
nullptr, *trailingEdgeCumulative_te =
nullptr;
117 MonitorElement* timeOverThresholdCumulativePot =
nullptr, *leadingTrailingCorrelationPot =
nullptr;
163 MonitorElement* leadingEdgeCumulative_both =
nullptr, *leadingEdgeCumulative_le =
nullptr, *trailingEdgeCumulative_te =
nullptr;
205 h_trackCorr_hor = ibooker.
book2D(
"track correlation all hor",
"rp, all, hor", 6, -0.5, 5.5, 6, -0.5, 5.5 );
207 TAxis* xa = hist->GetXaxis(), *ya = hist->GetYaxis();
208 xa->SetBinLabel( 6,
"45, 210, near" ); ya->SetBinLabel( 1,
"45, 210, near" );
209 xa->SetBinLabel( 5,
"45, 210, far" ); ya->SetBinLabel( 2,
"45, 210, far" );
210 xa->SetBinLabel( 4,
"45, 220, cyl" ); ya->SetBinLabel( 3,
"45, 220, cyl" );
211 xa->SetBinLabel( 3,
"56, 210, near" ); ya->SetBinLabel( 4,
"56, 210, near" );
212 xa->SetBinLabel( 2,
"56, 210, far" ); ya->SetBinLabel( 5,
"56, 210, far" );
213 xa->SetBinLabel( 1,
"56, 220, cyl" ); ya->SetBinLabel( 6,
"56, 220, cyl" );
227 activity_per_bx_0_25 = ibooker.
book1D(
"activity per BX 0 25", title+
" Activity per BX 0 - 25 ns;Event.BX", 3600, -1.5, 3598. + 0.5 );
229 activity_per_bx_25_50 = ibooker.
book1D(
"activity per BX 25 50", title+
" Activity per BX 25 - 50 ns;Event.BX", 3600, -1.5, 3598. + 0.5 );
231 activity_per_bx_50_75 = ibooker.
book1D(
"activity per BX 50 75", title+
" Activity per BX 50 - 75 ns;Event.BX", 3600, -1.5, 3598. + 0.5 );
238 activePlanes = ibooker.
book1D(
"active planes", title+
" active planes (per event);number of active planes", 6, -0.5, 5.5 );
239 activePlanesInclusive = ibooker.
book1D(
"active planes inclusive", title+
" active planes, MH and le only included (per event);number of active planes", 6, -0.5, 5.5 );
244 stripTomographyAllFar_0_25 = ibooker.
book2D(
"tomography all far 0 25", title+
" tomography with strips far 0 - 25 ns (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 12, -2, 10 );
246 stripTomographyAllFar_25_50 = ibooker.
book2D(
"tomography all far 25 50", title+
" tomography with strips far 25 - 50 ns (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 12, -2, 10 );
248 stripTomographyAllFar_50_75 = ibooker.
book2D(
"tomography all far 50 75", title+
" tomography with strips far 50 - 75 ns (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 12, -2, 10 );
255 leadingTrailingCorrelationPot = ibooker.
book2D(
"leading trailing correlation", title+
" leading trailing correlation;leading edge (ns);trailing edge (ns)", 75, 0, 75, 75, 0, 75 );
262 ECCheck = ibooker.
book1D(
"optorxEC(8bit) - vfatEC", title+
" EC Error;optorxEC-vfatEC", 128, -64, 64 );
265 for (
unsigned short error_index=1; error_index<16; ++error_index )
269 MHComprensive = ibooker.
book2D(
"MH in channels", title+
" MH (%) in channels;plane number;ch number", 10, -0.5, 4.5, 14, -1, 13 );
272 clock_Digi1_le = ibooker.
book1D(
"clock1 leading edge", title+
" clock1;leading edge (ns)", 1250, 0, 125 );
273 clock_Digi1_te = ibooker.
book1D(
"clock1 trailing edge", title+
" clock1;trailing edge (ns)", 75, 0, 75 );
274 clock_Digi3_le = ibooker.
book1D(
"clock3 leading edge", title+
" clock3;leading edge (ns)", 1250, 0, 125 );
275 clock_Digi3_te = ibooker.
book1D(
"clock3 trailing edge", title+
" clock3;trailing edge (ns)", 75, 0, 75 );
288 digiProfileCumulativePerPlane = ibooker.
book1D(
"digi profile", title+
" digi profile; ch number", 12, -0.5, 11.5 );
290 hit_multiplicity = ibooker.
book1D(
"channels per plane", title+
" channels per plane; ch per plane", 13, -0.5, 12.5 );
292 stripTomography_far = ibooker.
book2D(
"tomography far", title+
" tomography with strips far;x + 25 OOT (mm);y (mm)", 50, 0, 50, 12, -2, 10 );
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 );
318 for (
unsigned short error_index=1; error_index<16; ++error_index )
328 ECCheckPerChannel = ibooker.
book1D(
"optorxEC(8bit) - vfatEC vs optorxEC", title+
" EC Error;optorxEC-vfatEC", 128, -64, 64 );
330 stripTomography_far = ibooker.
book2D(
"tomography far",
"tomography with strips far;x + 25 OOT (mm);y (mm)", 50, 0, 50, 12, -2, 10 );
332 hit_rate = ibooker.
book1D(
"hit rate", title+
"hit rate;rate (Hz)", 40, 0, 20);
348 verbosity_ ( ps.getUntrackedParameter<unsigned
int>(
"verbosity", 0 ) ),
351 for (
const auto&
pset : ps.
getParameter< std::vector<edm::ParameterSet> >(
"offsetsOOT" ) ) {
406 plot.second.hitDistribution2d_lumisection->Reset();
435 valid &= diamondVFATStatus.
isValid();
436 valid &= diamondDigis.
isValid();
442 <<
"ERROR in TotemDQMModuleRP::analyze > some of the required inputs are not valid. Skipping this event.\n" 443 <<
" diamondVFATStatus.isValid = " << diamondVFATStatus.
isValid() <<
"\n" 444 <<
" diamondDigis.isValid = " << diamondDigis.
isValid() <<
"\n" 445 <<
" fedInfo.isValid = " << fedInfo.
isValid();
459 for (
const auto& ds1 : *stripTracks ) {
460 for (
const auto& tr1 : ds1 ) {
461 if ( ! tr1.isValid() )
continue;
464 unsigned int arm1 = rpId1.
arm();
465 unsigned int stNum1 = rpId1.station();
466 unsigned int rpNum1 = rpId1.rp();
467 if (stNum1 != 0 || ( rpNum1 != 2 && rpNum1 != 3 ) )
continue;
468 unsigned int idx1 = arm1*3 + rpNum1-2;
470 for (
const auto& ds2 : *stripTracks ) {
471 for (
const auto& tr2 : ds2 ) {
472 if ( ! tr2.isValid() )
continue;
475 unsigned int arm2 = rpId2.
arm();
476 unsigned int stNum2 = rpId2.station();
477 unsigned int rpNum2 = rpId2.rp();
478 if (stNum2 != 0 || ( rpNum2 != 2 && rpNum2 != 3 ) )
continue;
479 unsigned int idx2 = arm2*3 + rpNum2-2;
484 for (
const auto& ds2 : *diamondLocalTracks ) {
485 for (
const auto& tr2 : ds2 ) {
486 if ( ! tr2.isValid() )
continue;
491 unsigned int arm2 = diamId2.
arm();
492 if ( idx1 >= arm2*3+2 )
501 for (
const auto& ds1 : *diamondLocalTracks ) {
502 for (
const auto& tr1 : ds1 ) {
503 if ( ! tr1.isValid() )
continue;
508 unsigned int arm1 = diamId1.
arm();
512 for (
const auto& ds2 : *diamondLocalTracks ) {
513 for (
const auto& tr2 : ds2 ) {
514 if ( ! tr2.isValid() )
continue;
519 unsigned int arm2 = diamId2.
arm();
528 for (
const auto& digis : *diamondDigis ) {
532 for (
const auto& digi : digis ) {
534 detId_pot.setChannel( 0 );
538 if ( digi.getLeadingEdge() != 0 || digi.getTrailingEdge() != 0 ) {
540 if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() == 0 ) {
541 ++(
potPlots_[detId_pot].LeadingOnlyCounter);
544 if ( digi.getLeadingEdge() == 0 && digi.getTrailingEdge() != 0 ) {
545 ++(
potPlots_[detId_pot].TrailingOnlyCounter);
548 if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() != 0 ) {
549 ++(
potPlots_[detId_pot].CompleteCounter);
556 for (
unsigned short hptdcErrorIndex = 1; hptdcErrorIndex < 16; ++hptdcErrorIndex )
557 if ( hptdcErrors.
getErrorId( hptdcErrorIndex-1 ) )
potPlots_[detId_pot].HPTDCErrorFlags_cumulative->Fill( hptdcErrorIndex );
558 if ( digi.getMultipleHit() ) ++(
potPlots_[detId_pot].MHCounter);
563 for (
const auto& vfat_status : *diamondVFATStatus ) {
567 detId_pot.setChannel( 0 );
568 for (
const auto&
status : vfat_status ) {
569 if ( !
status.isOK() )
continue;
573 for (
const auto& optorx : *fedInfo ) {
575 potPlots_[detId_pot].ECCheck->Fill((
int)((optorx.getLV1()& 0xFF)-((
unsigned int)
status.getEC() & 0xFF)) & 0xFF);
576 if ( ( static_cast<int>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) !=
EC_difference_56_ ) && (
static_cast<uint8_t
>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) < 128 ) )
577 EC_difference_56_ = static_cast<int>( optorx.getLV1() & 0xFF )-( static_cast<unsigned int>(
status.getEC() ) & 0xFF );
581 <<
"\t\tVFAT EC: 0x"<<
static_cast<unsigned int>(
status.getEC() )
582 <<
"\twith ID: " <<
std::dec << detId
586 potPlots_[detId_pot].ECCheck->Fill((
int)((optorx.getLV1()& 0xFF)-
status.getEC()) & 0xFF);
587 if ( ( static_cast<int>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) !=
EC_difference_45_ ) && (
static_cast<uint8_t
>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) < 128 ) )
588 EC_difference_45_ = static_cast<int>( optorx.getLV1() & 0xFF )-( static_cast<unsigned int>(
status.getEC() ) & 0xFF );
592 <<
"\t\tVFAT EC: 0x"<<
static_cast<unsigned int>(
status.getEC() )
593 <<
"\twith ID: " <<
std::dec << detId
601 std::unordered_map<unsigned int, std::set<unsigned int> > planes;
602 std::unordered_map<unsigned int, std::set<unsigned int> > planes_inclusive;
605 for (
const auto&
rechits : *diamondRecHits ) {
608 detId_pot.setChannel( 0 );
611 for (
const auto& rechit :
rechits ) {
612 planes_inclusive[detId_pot].insert( detId.plane() );
615 planes[detId_pot].
insert( detId.plane() );
619 float UFSDShift = 0.0;
620 if ( rechit.getYWidth() < 3 ) UFSDShift = 0.5;
623 TH2F *hitHistoTmp =
potPlots_[detId_pot].hitDistribution2d->getTH2F();
624 TAxis *hitHistoTmpYAxis = hitHistoTmp->GetYaxis();
625 int startBin = hitHistoTmpYAxis->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
627 for (
int i=0;
i<numOfBins; ++
i) {
628 hitHistoTmp->Fill( detId.plane() + UFSDShift, hitHistoTmpYAxis->GetBinCenter(startBin+
i) );
631 hitHistoTmp =
potPlots_[detId_pot].hitDistribution2d_lumisection->getTH2F();
632 hitHistoTmpYAxis = hitHistoTmp->GetYaxis();
633 startBin = hitHistoTmpYAxis->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
635 for (
int i=0;
i<numOfBins; ++
i) {
636 hitHistoTmp->Fill( detId.plane() + UFSDShift, hitHistoTmpYAxis->GetBinCenter(startBin+
i) );
641 if ( rechit.getToT() != 0 ) {
643 potPlots_[detId_pot].leadingEdgeCumulative_both->Fill( rechit.getT() + 25*rechit.getOOTIndex() );
644 potPlots_[detId_pot].timeOverThresholdCumulativePot->Fill( rechit.getToT() );
646 TH2F *hitHistoOOTTmp =
potPlots_[detId_pot].hitDistribution2dOOT->getTH2F();
647 TAxis *hitHistoOOTTmpYAxis = hitHistoOOTTmp->GetYaxis();
648 int startBin = hitHistoOOTTmpYAxis->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
650 for (
int i=0;
i<numOfBins; ++
i) {
651 hitHistoOOTTmp->Fill( detId.plane() + 0.2 * rechit.getOOTIndex(), hitHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
655 if ( rechit.getT() != 0 ) {
657 TH2F *hitHistoOOTTmp =
potPlots_[detId_pot].hitDistribution2dOOT_le->getTH2F();
658 TAxis *hitHistoOOTTmpYAxis = hitHistoOOTTmp->GetYaxis();
659 int startBin = hitHistoOOTTmpYAxis->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
661 for (
int i=0;
i<numOfBins; ++
i) {
662 hitHistoOOTTmp->Fill( detId.plane() + 0.2 * rechit.getOOTIndex(), hitHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
666 if ( (
unsigned int) rechit.getOOTIndex() <
potPlots_[detId_pot].activity_per_bx.size() )
672 plt.second.activePlanes->Fill( planes[plt.first].size() );
673 plt.second.activePlanesInclusive->Fill( planes_inclusive[plt.first].size() );
677 for (
const auto&
tracks : *diamondLocalTracks ) {
680 detId_pot.setChannel( 0 );
684 if ( !
track.isValid() )
continue;
686 if ( potPlots_.find( detId_pot ) == potPlots_.end() )
continue;
688 TH2F *trackHistoOOTTmp = potPlots_[detId_pot].trackDistributionOOT->getTH2F();
689 TAxis *trackHistoOOTTmpYAxis = trackHistoOOTTmp->GetYaxis();
690 int startBin = trackHistoOOTTmpYAxis->FindBin(
track.getX0() -
track.getX0Sigma() );
692 for (
int i=0;
i<numOfBins; ++
i) {
693 trackHistoOOTTmp->Fill(
track.getOOTIndex(), trackHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
697 TH1F *trackHistoInTimeTmp = potPlots_[detId_pot].trackDistribution->getTH1F();
698 int startBin = trackHistoInTimeTmp->FindBin(
track.getX0() -
track.getX0Sigma() );
700 for (
int i=0;
i<numOfBins; ++
i) {
701 trackHistoInTimeTmp->Fill( trackHistoInTimeTmp->GetBinCenter(startBin+
i) );
708 for (
const auto&
rechits : *diamondRecHits ) {
711 detId_pot.setChannel( 0 );
714 for (
const auto& rechit :
rechits ) {
716 if ( rechit.getToT() == 0 )
continue;
717 if ( !stripTracks.isValid() )
continue;
718 if ( potPlots_.find( detId_pot ) == potPlots_.end() )
continue;
720 for (
const auto& ds : *stripTracks ) {
722 for (
const auto& striplt : ds ) {
723 if ( !striplt.isValid() )
continue;
724 if ( stripId.arm() != detId_pot.arm() )
continue;
728 if ( (
unsigned int) rechit.getOOTIndex() < potPlots_[detId_pot].stripTomographyAllFar.size() )
729 potPlots_[detId_pot].stripTomographyAllFar.at( rechit.getOOTIndex() )->
Fill( striplt.getX0() + 25*detId.plane(), striplt.getY0() );
740 for (
const auto& digis : *diamondDigis ) {
745 detId_pot.setChannel( 0 );
746 for (
const auto& digi : digis ) {
747 if ( digi.getLeadingEdge() != 0 ) {
748 if ( detId.plane() == 1 ) {
749 potPlots_[detId_pot].clock_Digi1_le->Fill(
HPTDC_BIN_WIDTH_NS * digi.getLeadingEdge() );
750 potPlots_[detId_pot].clock_Digi1_te->Fill(
HPTDC_BIN_WIDTH_NS * digi.getTrailingEdge() );
752 if ( detId.plane() == 3 ) {
753 potPlots_[detId_pot].clock_Digi3_le->Fill(
HPTDC_BIN_WIDTH_NS * digi.getLeadingEdge() );
754 potPlots_[detId_pot].clock_Digi3_te->Fill(
HPTDC_BIN_WIDTH_NS * digi.getTrailingEdge() );
766 std::unordered_map<unsigned int, unsigned int> channelsPerPlane;
767 for (
const auto& digis : *diamondDigis ) {
770 for (
const auto& digi : digis ) {
775 if ( digi.getLeadingEdge() != 0 ) {
776 planePlots_[detId_plane].digiProfileCumulativePerPlane->Fill( detId.channel() );
777 if ( channelsPerPlane.find(detId_plane) != channelsPerPlane.end() ) channelsPerPlane[detId_plane]++;
778 else channelsPerPlane[detId_plane] = 0;
783 for (
const auto& plt : channelsPerPlane ) {
784 planePlots_[plt.first].hit_multiplicity->Fill( plt.second );
788 for (
const auto&
rechits : *diamondRecHits ) {
791 for (
const auto& rechit :
rechits ) {
793 if ( rechit.getToT() == 0 )
continue;
796 TH1F *hitHistoTmp =
planePlots_[detId_plane].hitProfile->getTH1F();
797 int startBin = hitHistoTmp->FindBin( rechit.getX() - 0.5*rechit.getXWidth() );
799 for (
int i=0;
i<numOfBins; ++
i) {
800 hitHistoTmp->Fill( hitHistoTmp->GetBinCenter(startBin+
i) );
808 for (
const auto&
rechits : *diamondRecHits ) {
811 for (
const auto& rechit :
rechits ) {
813 if ( rechit.getToT() == 0 )
continue;
814 if ( !stripTracks.isValid() )
continue;
817 for (
const auto& ds : *stripTracks ) {
819 for (
const auto& striplt : ds ) {
820 if (! striplt.isValid())
continue;
821 if ( stripId.arm() != detId_plane.arm() )
continue;
825 planePlots_[detId_plane].stripTomography_far->Fill( striplt.getX0() + 25*rechit.getOOTIndex() , striplt.getY0() );
836 for (
const auto& vfat_status : *diamondVFATStatus ) {
838 for (
const auto&
status : vfat_status ) {
839 if ( !
status.isOK() )
continue;
841 for (
const auto& optorx : *fedInfo ) {
843 channelPlots_[detId].ECCheckPerChannel->Fill((
int)((optorx.getLV1()& 0xFF)-((
unsigned int)
status.getEC() & 0xFF)) & 0xFF);
851 for (
const auto& digis : *diamondDigis ) {
853 for (
const auto& digi : digis ) {
858 for (
unsigned short hptdcErrorIndex = 1; hptdcErrorIndex < 16; ++hptdcErrorIndex )
860 if ( digi.getMultipleHit() ) ++(
channelPlots_[detId].MHCounter);
863 if ( digi.getLeadingEdge() != 0 || digi.getTrailingEdge() != 0 ) {
865 if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() == 0 ) {
869 if ( digi.getLeadingEdge() == 0 && digi.getTrailingEdge() != 0 ) {
873 if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() != 0 ) {
883 for (
const auto&
rechits : *diamondRecHits ) {
885 for (
const auto& rechit :
rechits ) {
888 if ( rechit.getToT() != 0 ) {
889 channelPlots_[detId].leadingEdgeCumulative_both->Fill( rechit.getT() + 25*rechit.getOOTIndex() );
890 channelPlots_[detId].TimeOverThresholdCumulativePerChannel->Fill( rechit.getToT() );
895 if ( (
unsigned int) rechit.getOOTIndex() <
channelPlots_[detId].activity_per_bx.size() )
902 for (
const auto&
rechits : *diamondRecHits ) {
904 for (
const auto& rechit :
rechits ) {
906 if ( stripTracks.isValid() ) {
908 for (
const auto& ds : *stripTracks ) {
909 for (
const auto& striplt : ds ) {
911 if ( !striplt.isValid() )
continue;
912 if ( stripId.arm() != detId.arm() )
continue;
916 channelPlots_[detId].stripTomography_far->Fill( striplt.getX0() + 25*rechit.getOOTIndex(), striplt.getY0() );
931 if (
plot.second.hitsCounterPerLumisection != 0 ) {
934 plot.second.hitsCounterPerLumisection = 0;
936 double HundredOverHitCounter = .0;
937 if (
plot.second.HitCounter != 0 )
938 HundredOverHitCounter = 100. /
plot.second.HitCounter;
939 plot.second.HPTDCErrorFlags->setBinContent( 16, HundredOverHitCounter *
plot.second.MHCounter );
940 plot.second.leadingWithoutTrailing->setBinContent(1, HundredOverHitCounter *
plot.second.LeadingOnlyCounter );
941 plot.second.leadingWithoutTrailing->setBinContent(2, HundredOverHitCounter *
plot.second.TrailingOnlyCounter );
942 plot.second.leadingWithoutTrailing->setBinContent(3, HundredOverHitCounter *
plot.second.CompleteCounter );
946 double HundredOverHitCounterPot = 0.;
947 if (
plot.second.HitCounter !=0 )
948 HundredOverHitCounterPot = 100. /
plot.second.HitCounter;
949 plot.second.HPTDCErrorFlags_cumulative->setBinContent( 16, HundredOverHitCounterPot *
plot.second.MHCounter );
950 plot.second.leadingWithoutTrailingCumulativePot->setBinContent(1, HundredOverHitCounterPot *
plot.second.LeadingOnlyCounter );
951 plot.second.leadingWithoutTrailingCumulativePot->setBinContent(2, HundredOverHitCounterPot *
plot.second.TrailingOnlyCounter );
952 plot.second.leadingWithoutTrailingCumulativePot->setBinContent(3, HundredOverHitCounterPot *
plot.second.CompleteCounter );
954 plot.second.MHComprensive->Reset();
956 for (
auto& chPlot : channelPlots_ ) {
958 if ( chId.
arm() == rpId.
arm() && chId.
rp() == rpId.
rp() ) {
959 plot.second.MHComprensive->Fill(chId.
plane(), chId.
channel(), chPlot.second.HPTDCErrorFlags->getBinContent( 16 ) );
static const int CTPPS_FED_ID_56
void analyze(const edm::Event &, const edm::EventSetup &) override
OptoRx headers and footers.
MonitorElement * clock_Digi3_te
plots related to one Diamond plane
MonitorElement * TimeOverThresholdCumulativePerChannel
T getParameter(std::string const &) const
MonitorElement * timeOverThresholdCumulativePot
plots related to one Diamond detector package
MonitorElement * h_trackCorr_hor
unsigned int CompleteCounter
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
MonitorElement * stripTomographyAllFar_50_75
MonitorElement * activePlanes
~CTPPSDiamondDQMSource() override
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 beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
std::vector< MonitorElement * > activity_per_bx
void setPlane(uint32_t channel)
MonitorElement * leadingEdgeCumulative_le
Reconstructed hit in diamond detectors.
#define DEFINE_FWK_MODULE(type)
void endRun(const edm::Run &, const edm::EventSetup &) override
void setChannel(uint32_t channel)
void channelName(std::string &name, NameFlag flag=nFull) const
MonitorElement * leadingEdgeCumulative_le
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
MonitorElement * MHComprensive
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
MonitorElement * trailingEdgeCumulative_te
plots related to the whole system
int bunchCrossing() const
double maximumStripAngleForTomography_
MonitorElement * trailingEdgeCumulative_te
static const int CTPPS_DIAMOND_NUM_OF_CHANNELS
edm::EDGetTokenT< edm::DetSetVector< TotemRPLocalTrack > > tokenLocalTrack_
MonitorElement * leadingTrailingCorrelationPot
A track fit through a single RP.
MonitorElement * clock_Digi1_te
MonitorElement * leadingWithoutTrailingCumulativePot
MonitorElement * activity_per_bx_25_50
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
MonitorElement * activity_per_bx_50_75
static const int CTPPS_DIAMOND_STATION_ID
MonitorElement * hitDistribution2d
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
std::vector< std::pair< edm::EventRange, int > > runParameters_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
static const int CTPPS_NEAR_RP_ID
std::unordered_map< unsigned int, ChannelPlots > channelPlots_
MonitorElement * activity_per_bx_0_25
MonitorElement * book1D(Args &&...args)
void rpName(std::string &name, NameFlag flag=nFull) const
plots related to one Diamond channel
MonitorElement * ECCheckPerChannel
MonitorElement * activity_per_bx_0_25
MonitorElement * hitDistribution2d_lumisection
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
unsigned long hitsCounterPerLumisection
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondLocalTrack > > tokenDiamondTrack_
std::vector< MonitorElement * > stripTomographyAllFar
MonitorElement * trackDistribution
static const double HPTDC_BIN_WIDTH_NS
MonitorElement * clock_Digi3_le
void setCurrentFolder(const std::string &fullpath)
static const double INV_DISPLAY_RESOLUTION_FOR_HITS_MM
MonitorElement * HPTDCErrorFlags_cumulative
MonitorElement * book2D(Args &&...args)
unsigned int TrailingOnlyCounter
MonitorElement * activity_per_bx_50_75
void planeName(std::string &name, NameFlag flag=nFull) const
MonitorElement * LeadingTrailingCorrelationPerChannel
MonitorElement * clock_Digi1_le
MonitorElement * leadingEdgeCumulative_both
MonitorElement * leadingWithoutTrailing
Base class for CTPPS detector IDs.
std::unordered_map< unsigned int, PotPlots > potPlots_
unsigned int TrailingOnlyCounter
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondRecHit > > tokenDiamondHit_
unsigned int LeadingOnlyCounter
MonitorElement * stripTomographyAllFar_0_25
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_
MonitorElement * trackDistributionOOT
std::vector< MonitorElement * > activity_per_bx
MonitorElement * hitDistribution2dOOT_le
bool excludeMultipleHits_
MonitorElement * hitDistribution2dOOT
static const int CTPPS_DIAMOND_RP_ID
MonitorElement * leadingEdgeCumulative_both
static std::string getHPTDCErrorName(const unsigned short id)
edm::EDGetTokenT< std::vector< TotemFEDInfo > > tokenFEDInfo_
static const int CTPPS_FED_ID_45
MonitorElement * stripTomographyAllFar_25_50
edm::EDGetTokenT< edm::DetSetVector< TotemVFATStatus > > tokenStatus_
double minimumStripAngleForTomography_
MonitorElement * activity_per_bx_25_50
MonitorElement * hit_rate
MonitorElement * activePlanesInclusive