56 std::ostringstream
oss;
117 outfilename(iConfig.getUntrackedParameter<std::string>(
"outputFilename",
"out.root"))
161 std::string histoName;
162 std::string histoTitle;
167 histoName =
"medianVsAbsoluteOccupancy" +
subDetName[
i];
174 histoTitle =
"Median APV occupancy vs. absolute APV occupancy";
181 tmp =
dqmStore->
book2D(histoName.c_str(), histoTitle.c_str(), 1000, 0., 6., 1000, -1., 3.);
194 histoTitle =
"Median APV occupancy";
213 histoTitle =
"Absolute APV occupancy";
236 intree->SetBranchAddress(
"DetRawId", &
DetRawId);
237 intree->SetBranchAddress(
"SubDetId", &
SubDetId);
238 intree->SetBranchAddress(
"Layer_Ring", &
Layer_Ring);
239 intree->SetBranchAddress(
"Disc", &
Disc);
240 intree->SetBranchAddress(
"IsBack", &
IsBack);
242 intree->SetBranchAddress(
"IsZMinusSide", &
IsZMinusSide);
244 intree->SetBranchAddress(
"IsStereo", &
IsStereo);
250 intree->SetBranchAddress(
"APVNumber", &
APVNumber);
254 for (
int i=0;
i<intree->GetEntries();
i++)
258 double logMedianOccupancy = -1;
259 double logAbsoluteOccupancy = -1;
265 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)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Float_t APVGlobalPositionZ
TH2F * medianVsAbsoluteOccupancy[5][10]
Float_t APVGlobalPositionY
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Double_t APVMedianOccupancy
std::vector< std::string > layerName
APVValidationPlots(const edm::ParameterSet &)
TH1F * getTH1F(void) const
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]
void setCurrentFolder(const std::string &fullpath)