50 virtual void endJob()
override ;
52 std::ostringstream
oss;
113 outfilename(iConfig.getUntrackedParameter<std::
string>(
"outputFilename",
"out.root"))
163 histoName =
"medianVsAbsoluteOccupancy" +
subDetName[
i];
170 histoTitle =
"Median APV occupancy vs. absolute APV occupancy";
177 tmp =
dqmStore->
book2D(histoName.c_str(), histoTitle.c_str(), 1000, 0., 6., 1000, -1., 3.);
190 histoTitle =
"Median APV occupancy";
209 histoTitle =
"Absolute APV occupancy";
232 intree->SetBranchAddress(
"DetRawId", &
DetRawId);
233 intree->SetBranchAddress(
"SubDetId", &
SubDetId);
234 intree->SetBranchAddress(
"Layer_Ring", &
Layer_Ring);
235 intree->SetBranchAddress(
"Disc", &
Disc);
236 intree->SetBranchAddress(
"IsBack", &
IsBack);
238 intree->SetBranchAddress(
"IsZMinusSide", &
IsZMinusSide);
240 intree->SetBranchAddress(
"IsStereo", &
IsStereo);
246 intree->SetBranchAddress(
"APVNumber", &
APVNumber);
250 for (
int i=0;
i<intree->GetEntries();
i++)
254 double logMedianOccupancy = -1;
255 double logAbsoluteOccupancy = -1;
261 unsigned int layer = 0;
std::vector< std::string > subDetName
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
TH1F * medianOccupancy[5][10]
Int_t APVAbsoluteOccupancy
void cd(void)
go to top directory (ie. root)
#define DEFINE_FWK_MODULE(type)
Float_t APVGlobalPositionZ
TH2F * medianVsAbsoluteOccupancy[5][10]
Float_t APVGlobalPositionY
virtual void endJob() override
Double_t APVMedianOccupancy
std::vector< std::string > layerName
APVValidationPlots(const edm::ParameterSet &)
TH1F * getTH1F(void) const
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
std::vector< unsigned int > nLayers
TH2F * getTH2F(void) const
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Float_t APVGlobalPositionX
TH1F * absoluteOccupancy[5][10]
virtual void beginJob() override
void setCurrentFolder(const std::string &fullpath)