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){
67 FedCountBarrel = 0; FedCountEndcap = 0; FedCount = 0; NumberOfFeds_ = 40;
69 for(
int i=0;
i!=40;
i++){
70 if(i<=31 && mefed->getBinContent(
i+1)>0) FedCountBarrel++;
78 Fraction_->
Fill( FedCount/NumberOfFeds_);
80 FractionBarrel_->Fill( FedCountBarrel/32.);
82 FractionEndcap_->Fill( FedCountEndcap/8.);
85 FractionBarrel_->Fill(-1);
86 FractionEndcap_->Fill(-1);
90 FractionBarrel_->Fill(-1);
91 FractionEndcap_->Fill(-1);
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * get(const std::string &path)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
std::vector< int > m_fed_in
SiPixelDaqInfo(const edm::ParameterSet &)
virtual void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
void setCurrentFolder(const std::string &fullpath)
double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * bookFloat(Args &&...args)
virtual void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, const edm::LuminosityBlock &, const edm::EventSetup &)