Skip to content

Commit

Permalink
added number floats
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 27, 2008
1 parent b13b0e6 commit a813e01
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
10 changes: 5 additions & 5 deletions DQM/L1TMonitorClient/src/L1TEMUEventInfoClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void L1TEMUEventInfoClient::beginJob(const EventSetup& context){

dbe_->setCurrentFolder("L1TEMU/EventInfo/reportSummaryContents");

int nSubsystems = 10;
int nSubsystems = 20;

char histo[100];

Expand All @@ -103,7 +103,7 @@ void L1TEMUEventInfoClient::beginJob(const EventSetup& context){
dbe_->removeElement(reportSummaryMap_->getName());
}

reportSummaryMap_ = dbe_->book2D("reportSummaryMap", "reportSummaryMap", 4, 0., 4., 3, 0., 3);
reportSummaryMap_ = dbe_->book2D("reportSummaryMap", "reportSummaryMap", 5, 0.,5., 4, 0., 4.);
reportSummaryMap_->setAxisTitle("XXXX", 1);
reportSummaryMap_->setAxisTitle("YYYY", 2);

Expand Down Expand Up @@ -151,14 +151,14 @@ void L1TEMUEventInfoClient::analyze(const Event& e, const EventSetup& context){
if (reportSummary_) reportSummary_->Fill(reportSummary);


int nSubsystems = 10;
int nSubsystems = 20;
for (int i = 0; i < nSubsystems; i++) {

reportSummaryContent_[i]->Fill(1.);
}

for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 4; j++) {

reportSummaryMap_->setBinContent( i, j, 1. );
}
Expand Down
16 changes: 9 additions & 7 deletions DQM/L1TMonitorClient/src/L1TEventInfoClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void L1TEventInfoClient::beginJob(const EventSetup& context){

dbe_->setCurrentFolder("L1T/EventInfo/reportSummaryContents");

int nSubsystems = 10;
int nSubsystems = 20;

char histo[100];

Expand All @@ -103,7 +103,7 @@ void L1TEventInfoClient::beginJob(const EventSetup& context){
dbe_->removeElement(reportSummaryMap_->getName());
}

reportSummaryMap_ = dbe_->book2D("reportSummaryMap", "reportSummaryMap", 4, 0., 4., 3, 0., 3);
reportSummaryMap_ = dbe_->book2D("reportSummaryMap", "reportSummaryMap", 5, 0., 5., 4, 0., 4);
reportSummaryMap_->setAxisTitle("XXXX", 1);
reportSummaryMap_->setAxisTitle("YYYY", 2);

Expand Down Expand Up @@ -132,9 +132,11 @@ void L1TEventInfoClient::analyze(const Event& e, const EventSetup& context){
if (prescaleEvt_>0 && counterEvt_%prescaleEvt_ != 0) return;

if(verbose_) cout << "L1TEventInfoClient::analyze" << endl;

/*
// check GCT
MonitorElement *NonIsoEmDeadEtaChannels = dbe_->get("L1T/L1TGCT/NonIsoEmOccEta");
if(!NonIsoEmDeadEtaChannels) gctFloat = 0.;
int nXChannels = NonIsoEmDeadEtaChannels->getNbinsX();
int nYChannels = NonIsoEmDeadEtaChannels->getNbinsY();
if(nYChannels) nChannels = nXChannels*nYChannels;
Expand All @@ -146,19 +148,19 @@ void L1TEventInfoClient::analyze(const Event& e, const EventSetup& context){
reportSummary = nBadChannels/nChannels;
}
}
*/
*/
reportSummary = 1.;
if (reportSummary_) reportSummary_->Fill(reportSummary);


int nSubsystems = 10;
int nSubsystems = 20;
for (int i = 0; i < nSubsystems; i++) {

reportSummaryContent_[i]->Fill(1.);
}

for (int i = 0; i < 4; i++) {
for (int j = 0; j < 3; j++) {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 4; j++) {

reportSummaryMap_->setBinContent( i, j, 1. );
}
Expand Down

0 comments on commit a813e01

Please sign in to comment.