52 std::ostringstream
oss;
161 for(
unsigned int j = 0; j <=
nLayers[
i]; j++)
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
#define DEFINE_FWK_MODULE(type)
Float_t APVGlobalPositionZ
~APVValidationPlots() override
TH2F * medianVsAbsoluteOccupancy[5][10]
Float_t APVGlobalPositionY
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")
Double_t APVMedianOccupancy
std::vector< std::string > layerName
APVValidationPlots(const edm::ParameterSet &)
void cd()
go to top directory (ie. root)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< unsigned int > nLayers
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]
void setCurrentFolder(const std::string &fullpath)