48 x_width = 2.0 * det->
params().at( 0 );
144 MonitorElement* leadingEdgeCumulative_both =
nullptr, *leadingEdgeCumulative_all =
nullptr, *leadingEdgeCumulative_le =
nullptr, *trailingEdgeCumulative_te =
nullptr;
145 MonitorElement* timeOverThresholdCumulativePot =
nullptr, *leadingTrailingCorrelationPot =
nullptr;
199 MonitorElement* leadingEdgeCumulative_both =
nullptr, *leadingEdgeCumulative_le =
nullptr, *trailingEdgeCumulative_te =
nullptr;
244 CTPPSDiamondDQMSource::PotPlots::PotPlots(
DQMStore::IBooker& ibooker,
unsigned int id ): HitCounter(0), MHCounter(0), LeadingOnlyCounter(0), TrailingOnlyCounter(0), CompleteCounter(0), pixelTracksMap(
"Pixel track maps for efficiency",
"Pixel track maps for efficiency", 25, 0, 25, 12, -2, 10 )
252 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 );
254 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 );
256 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 );
263 activePlanes = ibooker.
book1D(
"active planes", title+
" active planes (per event);number of active planes", 6, -0.5, 5.5 );
264 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 );
269 pixelTomographyAll_0_25 = ibooker.
book2D(
"tomography pixel 0 25", title+
" tomography with pixel 0 - 25 ns (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 8, 0, 8 );
271 pixelTomographyAll_25_50 = ibooker.
book2D(
"tomography pixel 25 50", title+
" tomography with pixel 25 - 50 ns (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 8, 0, 8 );
273 pixelTomographyAll_50_75 = ibooker.
book2D(
"tomography pixel 50 75", title+
" tomography with pixel 50 - 75 ns (all planes);x + 25*plane(mm);y (mm)", 100, 0, 100, 8, 0, 8 );
281 leadingTrailingCorrelationPot = ibooker.
book2D(
"leading trailing correlation", title+
" leading trailing correlation;leading edge (ns);trailing edge (ns)", 75, 0, 75, 75, 0, 75 );
288 ECCheck = ibooker.
book1D(
"optorxEC(8bit) - vfatEC", title+
" EC Error;optorxEC-vfatEC", 50,-25, 25 );
291 for (
unsigned short error_index=1; error_index<16; ++error_index )
305 MHComprensive = ibooker.
book2D(
"MH in channels", title+
" MH (%) in channels;plane number;ch number", 10, -0.5, 4.5, 14, -1, 13 );
307 EfficiencyOfChannelsInPot = ibooker.
book2D(
"Efficiency in channels", title+
" Efficiency (%) in channels (diamonds only);plane number;ch number", 10, -0.5, 4.5, 14, -1, 13 );
329 hit_multiplicity = ibooker.
book1D(
"channels per plane", title+
" channels per plane; ch per plane", 13, -0.5, 12.5 );
331 pixelTomography_far = ibooker.
book2D(
"tomography pixel", title+
" tomography with pixel;x + 25 OOT (mm);y (mm)", 75, 0, 75, 8, 0, 8 );
351 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 );
353 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 );
355 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 );
359 for (
unsigned short error_index=1; error_index<16; ++error_index )
369 pixelTomography_far = ibooker.
book2D(
"tomography pixel",
"tomography with pixel;x + 25 OOT (mm);y (mm)", 75, 0, 75, 8, 0, 8 );
371 hit_rate = ibooker.
book1D(
"hit rate", title+
"hit rate;rate (Hz)", 40, 0, 20);
385 verbosity_ ( ps.getUntrackedParameter<unsigned
int>(
"verbosity", 0 ) ),
388 for (
const auto&
pset : ps.
getParameter< std::vector<edm::ParameterSet> >(
"offsetsOOT" ) ) {
420 if ( iRun.
run()>300000 ) {
454 std::shared_ptr<dds::Cache>
457 auto d = std::make_shared<dds::Cache>();
458 d->hitDistribution2dMap.reserve(
potPlots_.size());
460 d->hitDistribution2dMap[
plot.first] = std::unique_ptr<TH2F>(
static_cast<TH2F*
>(
plot.second.hitDistribution2d_lumisection->getTH2F()->Clone()));
493 valid &= diamondVFATStatus.
isValid();
494 valid &= pixelTracks.
isValid();
495 valid &= diamondDigis.
isValid();
497 valid &= diamondRecHits.
isValid();
498 valid &= diamondLocalTracks.
isValid();
503 <<
"ERROR in CTPPSDiamondDQMSource::analyze > some of the required inputs are not valid. Skipping this event.\n" 504 <<
" diamondVFATStatus.isValid = " << diamondVFATStatus.
isValid() <<
"\n" 505 <<
" pixelTracks.isValid = " << pixelTracks.
isValid() <<
"\n" 506 <<
" diamondDigis.isValid = " << diamondDigis.
isValid() <<
"\n" 507 <<
" fedInfo.isValid = " << fedInfo.
isValid() <<
"\n" 508 <<
" diamondRecHits.isValid = " << diamondRecHits.
isValid() <<
"\n" 509 <<
" diamondLocalTracks.isValid = " << diamondLocalTracks.
isValid();
524 for (
const auto& digis : *diamondDigis ) {
528 for (
const auto& digi : digis ) {
530 detId_pot.setChannel( 0 );
534 if ( digi.getLeadingEdge() != 0 || digi.getTrailingEdge() != 0 ) {
536 if ( digi.getLeadingEdge() != 0 ) {
539 if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() == 0 ) {
540 ++(
potPlots_[detId_pot].LeadingOnlyCounter);
543 if ( digi.getLeadingEdge() == 0 && digi.getTrailingEdge() != 0 ) {
544 ++(
potPlots_[detId_pot].TrailingOnlyCounter);
547 if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() != 0 ) {
548 ++(
potPlots_[detId_pot].CompleteCounter);
555 if ( detId.channel() == 6 || detId.channel() == 7 )
557 int verticalIndex = 2*detId.plane() + (detId.channel() - 6);
558 for (
unsigned short hptdcErrorIndex = 1; hptdcErrorIndex < 16; ++hptdcErrorIndex )
559 if ( hptdcErrors.
getErrorId( hptdcErrorIndex-1 ) )
potPlots_[detId_pot].HPTDCErrorFlags_2D->Fill( hptdcErrorIndex, verticalIndex );
561 if ( digi.getMultipleHit() ) ++(
potPlots_[detId_pot].MHCounter);
566 for (
const auto& vfat_status : *diamondVFATStatus ) {
570 detId_pot.setChannel( 0 );
571 for (
const auto&
status : vfat_status ) {
572 if ( !
status.isOK() )
continue;
577 for (
const auto& optorx : *fedInfo ) {
579 potPlots_[detId_pot].ECCheck->Fill((
int)((optorx.getLV1()& 0xFF)-((
unsigned int)
status.getEC() & 0xFF)) & 0xFF);
580 if ( ( static_cast<int>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) !=
EC_difference_56_ ) && (
static_cast<uint8_t
>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) < 128 ) )
581 EC_difference_56_ = static_cast<int>( optorx.getLV1() & 0xFF )-( static_cast<unsigned int>(
status.getEC() ) & 0xFF );
584 if ( detId.channel() == 6 || detId.channel() == 7 )
potPlots_[detId_pot].HPTDCErrorFlags_2D->Fill( 16, 2*detId.plane() + (detId.channel() - 6) );
587 <<
"\t\tVFAT EC: 0x"<<
static_cast<unsigned int>(
status.getEC() )
588 <<
"\twith ID: " <<
std::dec << detId
593 potPlots_[detId_pot].ECCheck->Fill((
int)((optorx.getLV1()& 0xFF)-
status.getEC()) & 0xFF);
594 if ( ( static_cast<int>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) !=
EC_difference_45_ ) && (
static_cast<uint8_t
>( ( optorx.getLV1() & 0xFF )-
status.getEC() ) < 128 ) )
595 EC_difference_45_ = static_cast<int>( optorx.getLV1() & 0xFF )-( static_cast<unsigned int>(
status.getEC() ) & 0xFF );
598 if ( detId.channel() == 6 || detId.channel() == 7 )
potPlots_[detId_pot].HPTDCErrorFlags_2D->Fill( 16, 2*detId.plane() + (detId.channel() - 6) );
601 <<
"\t\tVFAT EC: 0x"<<
static_cast<unsigned int>(
status.getEC() )
602 <<
"\twith ID: " <<
std::dec << detId
611 std::unordered_map<unsigned int, std::set<unsigned int> > planes;
612 std::unordered_map<unsigned int, std::set<unsigned int> > planes_inclusive;
616 for (
const auto&
rechits : *diamondRecHits ) {
619 detId_pot.setChannel( 0 );
622 for (
const auto& rechit :
rechits ) {
623 planes_inclusive[detId_pot].insert( detId.plane() );
626 planes[detId_pot].
insert( detId.plane() );
630 float UFSDShift = 0.0;
631 if ( rechit.getYWidth() < 3 ) UFSDShift = 0.5;
634 TH2F *hitHistoTmp =
potPlots_[detId_pot].hitDistribution2d->getTH2F();
635 TAxis *hitHistoTmpYAxis = hitHistoTmp->GetYaxis();
638 for (
int i=0;
i<numOfBins; ++
i) {
639 hitHistoTmp->Fill( detId.plane() + UFSDShift, hitHistoTmpYAxis->GetBinCenter(startBin+
i) );
642 hitHistoTmp = lumiCache->hitDistribution2dMap[detId_pot].get();
643 hitHistoTmpYAxis = hitHistoTmp->GetYaxis();
646 for (
int i=0;
i<numOfBins; ++
i) {
647 hitHistoTmp->Fill( detId.plane() + UFSDShift, hitHistoTmpYAxis->GetBinCenter(startBin+
i) );
652 if ( rechit.getToT() != 0 ) {
654 potPlots_[detId_pot].leadingEdgeCumulative_both->Fill( rechit.getT() + 25*rechit.getOOTIndex() );
655 potPlots_[detId_pot].timeOverThresholdCumulativePot->Fill( rechit.getToT() );
657 TH2F *hitHistoOOTTmp =
potPlots_[detId_pot].hitDistribution2dOOT->getTH2F();
658 TAxis *hitHistoOOTTmpYAxis = hitHistoOOTTmp->GetYaxis();
661 for (
int i=0;
i<numOfBins; ++
i) {
662 hitHistoOOTTmp->Fill( detId.plane() + 0.25 * rechit.getOOTIndex(), hitHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
668 TH2F *hitHistoOOTTmp =
potPlots_[detId_pot].hitDistribution2dOOT_le->getTH2F();
669 TAxis *hitHistoOOTTmpYAxis = hitHistoOOTTmp->GetYaxis();
672 for (
int i=0;
i<numOfBins; ++
i) {
673 hitHistoOOTTmp->Fill( detId.plane() + 0.25 * rechit.getOOTIndex(), hitHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
683 plt.second.activePlanes->Fill( planes[plt.first].size() );
684 plt.second.activePlanesInclusive->Fill( planes_inclusive[plt.first].size() );
688 for (
const auto&
tracks : *diamondLocalTracks ) {
691 detId_pot.setChannel( 0 );
695 if ( !
track.isValid() )
continue;
698 if ( potPlots_.find( detId_pot ) == potPlots_.end() )
continue;
700 TH2F *trackHistoOOTTmp = potPlots_[detId_pot].trackDistributionOOT->getTH2F();
701 TAxis *trackHistoOOTTmpYAxis = trackHistoOOTTmp->GetYaxis();
704 for (
int i=0;
i<numOfBins; ++
i) {
705 trackHistoOOTTmp->Fill(
track.getOOTIndex(), trackHistoOOTTmpYAxis->GetBinCenter(startBin+
i) );
709 TH1F *trackHistoInTimeTmp = potPlots_[detId_pot].trackDistribution->getTH1F();
712 for (
int i=0;
i<numOfBins; ++
i) {
713 trackHistoInTimeTmp->Fill( trackHistoInTimeTmp->GetBinCenter(startBin+
i) );
720 for (
const auto&
tracks : *diamondLocalTracks ) {
723 detId_pot.setChannel( 0 );
727 std::set<int> planesInTrackSet;
728 for (
const auto& vec : *diamondRecHits ) {
730 if ( detid.arm() != detId_pot.arm() )
continue;
732 for (
const auto&
hit : vec ) {
736 planesInTrackSet.insert(detid.plane());
741 if ( numOfHits > 0 && numOfHits <= 10 && planesInTrackSet.size() > 2 ) {
742 for (
int plane=0; plane<4; ++plane ) {
743 for (
int channel=0; channel<12; ++channel ) {
744 int map_index = plane*100 + channel;
745 if ( potPlots_[detId_pot].effDoublecountingChMap.find( map_index ) == potPlots_[detId_pot].effDoublecountingChMap.end() ) {
746 potPlots_[detId_pot].effTriplecountingChMap[map_index] = 0;
747 potPlots_[detId_pot].effDoublecountingChMap[map_index] = 0;
752 ++(potPlots_[detId_pot].effDoublecountingChMap[map_index]);
753 for (
const auto&
rechits : *diamondRecHits ) {
755 if ( detId_hit == detId ) {
756 for (
const auto& rechit :
rechits ) {
757 if ( track.containsHit( rechit, 1 ) ) {
759 ++(potPlots_[detId_pot].effTriplecountingChMap[map_index]);
772 for (
const auto&
rechits : *diamondRecHits ) {
775 detId_pot.setChannel( 0 );
777 for (
const auto& rechit :
rechits ) {
779 if ( rechit.getToT() == 0 )
continue;
780 if ( !pixelTracks.
isValid() )
continue;
781 if ( potPlots_.find( detId_pot ) == potPlots_.end() )
continue;
783 for (
const auto& ds : *pixelTracks ) {
784 if ( ds.size() > 1 )
continue;
787 for (
const auto& lt : ds ) {
788 if ( lt.isValid() && pixId.arm() == detId_pot.arm() ) {
827 std::unordered_map<unsigned int, unsigned int> channelsPerPlane;
828 for (
const auto& digis : *diamondDigis ) {
831 for (
const auto& digi : digis ) {
836 if ( digi.getLeadingEdge() != 0 ) {
837 planePlots_[detId_plane].digiProfileCumulativePerPlane->Fill( detId.channel() );
838 if ( channelsPerPlane.find(detId_plane) != channelsPerPlane.end() ) channelsPerPlane[detId_plane]++;
839 else channelsPerPlane[detId_plane] = 0;
844 for (
const auto& plt : channelsPerPlane ) {
845 planePlots_[plt.first].hit_multiplicity->Fill( plt.second );
849 for (
const auto&
rechits : *diamondRecHits ) {
852 for (
const auto& rechit :
rechits ) {
854 if ( rechit.getToT() == 0 )
continue;
857 TH1F *hitHistoTmp =
planePlots_[detId_plane].hitProfile->getTH1F();
860 for (
int i=0;
i<numOfBins; ++
i) {
861 hitHistoTmp->Fill( hitHistoTmp->GetBinCenter(startBin+
i) );
870 for (
const auto& ds : *pixelTracks ) {
873 if ( ds.size() > 1 )
continue;
874 for (
const auto& lt : ds ) {
875 if ( lt.isValid() ) {
880 std::set< CTPPSDiamondDetId > planesWitHits_set;
881 for (
const auto&
rechits : *diamondRecHits ) {
884 for (
const auto& rechit :
rechits ) {
890 if (
centralOOT_ != -999 && rechit.getOOTIndex() ==
centralOOT_ ) planesWitHits_set.insert( detId_plane );
896 for (
auto& planeId : planesWitHits_set)
910 for (
const auto& digis : *diamondDigis ) {
912 for (
const auto& digi : digis ) {
917 for (
unsigned short hptdcErrorIndex = 1; hptdcErrorIndex < 16; ++hptdcErrorIndex )
919 if ( digi.getMultipleHit() ) ++(
channelPlots_[detId].MHCounter);
922 if ( digi.getLeadingEdge() != 0 || digi.getTrailingEdge() != 0 ) {
924 if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() == 0 ) {
928 if ( digi.getLeadingEdge() == 0 && digi.getTrailingEdge() != 0 ) {
932 if ( digi.getLeadingEdge() != 0 && digi.getTrailingEdge() != 0 ) {
943 for (
const auto&
rechits : *diamondRecHits ) {
945 for (
const auto& rechit :
rechits ) {
949 channelPlots_[detId].leadingEdgeCumulative_both->Fill( rechit.getT() + 25*rechit.getOOTIndex() );
950 channelPlots_[detId].TimeOverThresholdCumulativePerChannel->Fill( rechit.getToT() );
952 ++(lumiCache->hitsCounterMap[detId]);
962 for (
const auto&
rechits : *diamondRecHits ) {
964 for (
const auto& rechit :
rechits ) {
967 if ( !pixelTracks.isValid() )
continue;
970 for (
const auto& ds : *pixelTracks ) {
973 if ( ds.size() > 1 )
continue;
974 for (
const auto& lt : ds ) {
990 auto lumiCache = luminosityBlockCache(iLumi.
index());
992 *(
plot.second.hitDistribution2d_lumisection->getTH2F())=*(lumiCache->hitDistribution2dMap[
plot.first]);
995 auto hitsCounterPerLumisection = lumiCache->hitsCounterMap[
plot.first];
996 if ( hitsCounterPerLumisection != 0 ) {
1000 double HundredOverHitCounter = .0;
1001 if (
plot.second.HitCounter != 0 )
1002 HundredOverHitCounter = 100. /
plot.second.HitCounter;
1003 plot.second.HPTDCErrorFlags->setBinContent( 16, HundredOverHitCounter *
plot.second.MHCounter );
1004 plot.second.leadingWithoutTrailing->setBinContent(1, HundredOverHitCounter *
plot.second.LeadingOnlyCounter );
1005 plot.second.leadingWithoutTrailing->setBinContent(2, HundredOverHitCounter *
plot.second.TrailingOnlyCounter );
1006 plot.second.leadingWithoutTrailing->setBinContent(3, HundredOverHitCounter *
plot.second.CompleteCounter );
1009 for (
auto&
plot : potPlots_ ) {
1010 double HundredOverHitCounterPot = 0.;
1011 if (
plot.second.HitCounter !=0 )
1012 HundredOverHitCounterPot = 100. /
plot.second.HitCounter;
1013 plot.second.leadingWithoutTrailingCumulativePot->setBinContent(1, HundredOverHitCounterPot *
plot.second.LeadingOnlyCounter );
1014 plot.second.leadingWithoutTrailingCumulativePot->setBinContent(2, HundredOverHitCounterPot *
plot.second.TrailingOnlyCounter );
1015 plot.second.leadingWithoutTrailingCumulativePot->setBinContent(3, HundredOverHitCounterPot *
plot.second.CompleteCounter );
1017 plot.second.MHComprensive->Reset();
1019 for (
auto& chPlot : channelPlots_ ) {
1021 if ( chId.
arm() == rpId.
arm() && chId.
rp() == rpId.
rp() ) {
1022 plot.second.MHComprensive->Fill(chId.
plane(), chId.
channel(), chPlot.second.HPTDCErrorFlags->getBinContent( 16 ) );
1029 for (
auto&
plot : potPlots_ ) {
1030 plot.second.EfficiencyOfChannelsInPot->Reset();
1031 for (
auto& element :
plot.second.effTriplecountingChMap ) {
1032 if (
plot.second.effDoublecountingChMap[ element.first ] > 0) {
1033 int plane = element.first / 100;
1034 int channel = element.first % 100;
1035 double counted = element.second;
1036 double total =
plot.second.effDoublecountingChMap[ element.first ];
1040 plot.second.EfficiencyOfChannelsInPot->Fill(plane, channel, 100*efficiency);
1047 TH2F *hitHistoTmp =
plot.second.EfficiencyWRTPixelsInPlane->getTH2F();
1052 hitHistoTmp->Divide( &(
plot.second.pixelTracksMapWithDiamonds), &(potPlots_[detId_pot].pixelTracksMap) );
static const int CTPPS_FED_ID_56
void analyze(const edm::Event &, const edm::EventSetup &) override
OptoRx headers and footers.
plots related to one Diamond plane
MonitorElement * TimeOverThresholdCumulativePerChannel
T getParameter(std::string const &) const
MonitorElement * timeOverThresholdCumulativePot
plots related to one Diamond detector package
Translation translation() const
MonitorElement * activePlanes
~CTPPSDiamondDQMSource() override
static const int CHANNEL_OF_VFAT_CLOCK
TH2F pixelTracksMapWithDiamonds
std::map< int, int > effDoublecountingChMap
bool contains(EventRange const &lh, EventID const &rh)
static const double DISPLAY_RESOLUTION_FOR_HITS_MM
LuminosityBlockIndex index() const
static const int CTPPS_DIAMOND_NUM_OF_PLANES
std::vector< MonitorElement * > activity_per_bx
void setPlane(uint32_t channel)
MonitorElement * leadingEdgeCumulative_le
Reconstructed hit in diamond detectors.
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
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
MonitorElement * digiProfileCumulativePerPlane
int bunchCrossing() const
MonitorElement * leadingEdgeCumulative_all
MonitorElement * EfficiencyWRTPixelsInPlane
MonitorElement * trailingEdgeCumulative_te
static const int CTPPS_DIAMOND_NUM_OF_CHANNELS
MonitorElement * pixelTomographyAll_25_50
MonitorElement * leadingTrailingCorrelationPot
double horizontalShiftOfDiamond_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
Event setup record containing the real (actual) geometry information.
MonitorElement * leadingWithoutTrailingCumulativePot
static const int CTPPS_PIXEL_STATION_ID
MonitorElement * activity_per_bx_25_50
void globalEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
MonitorElement * activity_per_bx_50_75
static const int CTPPS_DIAMOND_STATION_ID
const DetGeomDesc * getSensor(unsigned int id) const
returns geometry of a detector performs necessary checks, returns NULL if fails
MonitorElement * hitDistribution2d
MonitorElement * EfficiencyOfChannelsInPot
MonitorElement * hitProfile
#define DEFINE_FWK_MODULE(type)
void setCurrentFolder(std::string const &fullpath)
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 * pixelTomography_far
Geometrical description of a sensor.
MonitorElement * book1D(Args &&...args)
MonitorElement * pixelTomographyAll_50_75
Abs< T >::type abs(const T &t)
void rpName(std::string &name, NameFlag flag=nFull) const
std::unordered_map< unsigned int, std::unique_ptr< TH2F > > hitDistribution2dMap
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelLocalTrack > > tokenPixelTrack_
plots related to one Diamond channel
double horizontalShiftBwDiamondPixels_
LuminosityBlock const & getLuminosityBlock() const
MonitorElement * activity_per_bx_0_25
MonitorElement * pixelTomography_far
MonitorElement * hitDistribution2d_lumisection
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondLocalTrack > > tokenDiamondTrack_
The manager class for TOTEM RP geometry.
MonitorElement * trackDistribution
static const double HPTDC_BIN_WIDTH_NS
static const double INV_DISPLAY_RESOLUTION_FOR_HITS_MM
MonitorElement * book2D(Args &&...args)
MonitorElement * hit_multiplicity
unsigned int TrailingOnlyCounter
MonitorElement * activity_per_bx_50_75
MonitorElement * HPTDCErrorFlags_2D
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
void planeName(std::string &name, NameFlag flag=nFull) const
MonitorElement * LeadingTrailingCorrelationPerChannel
MonitorElement * leadingEdgeCumulative_both
std::shared_ptr< dds::Cache > globalBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) const override
bool channelAlignedWithTrack(const CTPPSGeometry *geom, const CTPPSDiamondDetId &detid, const CTPPSDiamondLocalTrack &localTrack, const float tolerance=1)
MonitorElement * leadingWithoutTrailing
std::unordered_map< unsigned int, PotPlots > potPlots_
static constexpr int TIMESLICE_WITHOUT_LEADING
unsigned int TrailingOnlyCounter
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondRecHit > > tokenDiamondHit_
std::vector< MonitorElement * > pixelTomographyAll
static const int CTPPS_FAR_RP_ID
static const double SEC_PER_LUMI_SECTION
std::vector< double > params() const
std::map< int, int > effTriplecountingChMap
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
MonitorElement * pixelTomographyAll_0_25
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
T const * product() const
edm::EDGetTokenT< edm::DetSetVector< TotemVFATStatus > > tokenStatus_
MonitorElement * activity_per_bx_25_50
std::unordered_map< unsigned int, unsigned long > hitsCounterMap
MonitorElement * hit_rate
MonitorElement * activePlanesInclusive