53 std::ostringstream
oss;
160 histoName =
"medianVsAbsoluteOccupancy" +
subDetName[
i];
166 histoTitle =
"Median APV occupancy vs. absolute APV occupancy";
172 tmp =
dqmStore->
book2D(histoName.c_str(), histoTitle.c_str(), 1000, 0., 6., 1000, -1., 3.);
184 histoTitle =
"Median APV occupancy";
201 histoTitle =
"Absolute APV occupancy";
220 intree->SetBranchAddress(
"DetRawId", &
DetRawId);
221 intree->SetBranchAddress(
"SubDetId", &
SubDetId);
222 intree->SetBranchAddress(
"Layer_Ring", &
Layer_Ring);
223 intree->SetBranchAddress(
"Disc", &
Disc);
224 intree->SetBranchAddress(
"IsBack", &
IsBack);
226 intree->SetBranchAddress(
"IsZMinusSide", &
IsZMinusSide);
228 intree->SetBranchAddress(
"IsStereo", &
IsStereo);
234 intree->SetBranchAddress(
"APVNumber", &
APVNumber);
238 for (
int i = 0;
i < intree->GetEntries();
i++) {
241 double logMedianOccupancy = -1;
242 double logAbsoluteOccupancy = -1;
250 unsigned int layer = 0;
dqm::legacy::DQMStore DQMStore
virtual TH2F * getTH2F() const
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
virtual TH1F * getTH1F() const
Float_t APVGlobalPositionZ
~APVValidationPlots() override
TH2F * medianVsAbsoluteOccupancy[5][10]
void cd()
go to top directory (ie. root)
#define DEFINE_FWK_MODULE(type)
Float_t APVGlobalPositionY
dqm::legacy::MonitorElement MonitorElement
Double_t APVMedianOccupancy
std::vector< std::string > layerName
APVValidationPlots(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
void setCurrentFolder(std::string const &fullpath)
std::vector< unsigned int > nLayers
MonitorElement * book1D(char_string const &name, char_string const &title, int const nchX, double const lowX, double const highX)
Book 1D histogram.
Float_t APVGlobalPositionX
TH1F * absoluteOccupancy[5][10]
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")