17 NumberOfFeds_ =FEDRange_.second - FEDRange_.first +1;
20 for(
int i=0;
i!=40;
i++) FEDs_[
i] = 0;
25 daqSourceToken_ = consumes<FEDRawDataCollection>(ps.
getUntrackedParameter<
string>(
"daqSource",
"source"));
35 Fraction_= iBooker.
bookFloat(
"DAQSummary");
37 FractionBarrel_= iBooker.
bookFloat(
"PixelBarrelFraction");
38 FractionEndcap_= iBooker.
bookFloat(
"PixelEndcapFraction");
46 runInfoRec->get(sumFED);
47 vector<int> FedsInIds= sumFED->
m_fed_in;
54 for(
unsigned int fedItr=0;fedItr<FedsInIds.size(); ++fedItr) {
55 int fedID=FedsInIds[fedItr];
57 if(fedID>=FEDRange_.first && fedID<=FEDRange_.second){
59 if(fedID>=0 && fedID<=31) ++FedCountBarrel;
60 else if(fedID>=32 && fedID<=39) ++FedCountEndcap;
64 if(FedCountBarrel<=32){
66 FedCountBarrel = 0; FedCountEndcap = 0; FedCount = 0; NumberOfFeds_ = 40;
68 for(
int i=0;
i!=40;
i++){
69 if(i<=31 && mefed->getBinContent(
i+1)>0) FedCountBarrel++;
77 Fraction_->
Fill( FedCount/NumberOfFeds_);
79 FractionBarrel_->Fill( FedCountBarrel/32.);
81 FractionEndcap_->Fill( FedCountEndcap/8.);
84 FractionBarrel_->Fill(-1);
85 FractionEndcap_->Fill(-1);
89 FractionBarrel_->Fill(-1);
90 FractionEndcap_->Fill(-1);
T getUntrackedParameter(std::string const &, T const &) const
std::optional< T > tryToGet() const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
void setCurrentFolder(std::string const &fullpath)
std::vector< int > m_fed_in
SiPixelDaqInfo(const edm::ParameterSet &)
MonitorElement * get(std::string const &path)
~SiPixelDaqInfo() override
double getBinContent(int binx) const
get content of bin (1-D)
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, const edm::LuminosityBlock &, const edm::EventSetup &) override
MonitorElement * bookFloat(Args &&...args)