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;
MonitorElement * book2D(char_string const &name, char_string const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
std::vector< std::string > subDetName
TH1F * medianOccupancy[5][10]
Int_t APVAbsoluteOccupancy
Float_t APVGlobalPositionZ
~APVValidationPlots() override
TH2F * medianVsAbsoluteOccupancy[5][10]
MonitorElement * book1D(char_string const &name, char_string const &title, int const nchX, double const lowX, double const highX)
Book 1D histogram.
#define DEFINE_FWK_MODULE(type)
Float_t APVGlobalPositionY
Double_t APVMedianOccupancy
std::vector< std::string > layerName
APVValidationPlots(const edm::ParameterSet &)
void setCurrentFolder(std::string const &fullpath)
void cd()
go to top directory (ie. root)
void analyze(const edm::Event &, const edm::EventSetup &) override
void save(std::string const &filename, std::string const &path="", std::string const &pattern="", std::string const &rewrite="", uint32_t run=0, uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, std::string const &fileupdate="RECREATE")
std::vector< unsigned int > nLayers
Float_t APVGlobalPositionX
TH1F * absoluteOccupancy[5][10]