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");
44 if(0 != iSetup.
find( recordKey ) ) {
48 vector<int> FedsInIds= sumFED->m_fed_in;
55 for(
unsigned int fedItr=0;fedItr<FedsInIds.size(); ++fedItr) {
56 int fedID=FedsInIds[fedItr];
58 if(fedID>=FEDRange_.first && fedID<=FEDRange_.second){
60 if(fedID>=0 && fedID<=31) ++FedCountBarrel;
61 else if(fedID>=32 && fedID<=39) ++FedCountEndcap;
65 if(FedCountBarrel<=32){
66 FedCountBarrel = 0; FedCountEndcap = 0; FedCount = 0; NumberOfFeds_ = 40;
67 for(
int i=0;
i!=40;
i++){
68 if(
i<=31 && FEDs_[
i]>0) FedCountBarrel++;
69 if(
i>=32 && FEDs_[
i]>0) FedCountEndcap++;
70 if(FEDs_[
i]>0) FedCount++;
75 Fraction_->Fill( FedCount/NumberOfFeds_);
77 FractionBarrel_->Fill( FedCountBarrel/32.);
79 FractionEndcap_->Fill( FedCountEndcap/8.);
82 FractionBarrel_->Fill(-1);
83 FractionEndcap_->Fill(-1);
87 FractionBarrel_->Fill(-1);
88 FractionEndcap_->Fill(-1);
T getUntrackedParameter(std::string const &, T const &) const
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
SiPixelDaqInfo(const edm::ParameterSet &)
virtual void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * bookFloat(Args &&...args)
virtual void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, const edm::LuminosityBlock &, const edm::EventSetup &)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag