#include <memory>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include "Riostream.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CommonTools/UtilAlgos/interface/TFileService.h"
#include "L1Trigger/L1TMuonEndCap/interface/SubsystemCollectorFactory.h"
#include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
#include <TMath.h>
#include <TCanvas.h>
#include <TLorentzVector.h>
#include "TTree.h"
#include "TNtuple.h"
#include "TImage.h"
#include "TSystem.h"
#include <TStyle.h>
#include <TLegend.h>
#include <TF1.h>
#include <TH2.h>
#include <TH1F.h>
#include <TFile.h>
#include "L1Trigger/L1TMuonEndCap/interface/GeometryTranslator.h"
#include "L1Trigger/L1TMuonEndCap/interface/MuonTriggerPrimitive.h"
#include "L1Trigger/L1TMuonEndCap/interface/MuonTriggerPrimitiveFwd.h"
#include "L1Trigger/L1TMuonEndCap/interface/MuonInternalTrack.h"
#include "L1Trigger/L1TMuonEndCap/interface/MuonInternalTrackFwd.h"
#include "L1Trigger/L1TMuonEndCap/interface/PhiMemoryImage.h"
#include "TH1.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include <vector>
#include <iostream>
#include "DataFormats/Math/interface/Point3D.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "TGaxis.h"
#include "TGraphErrors.h"
#include "string.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Go to the source code of this file.
|
void | formatHist (TH2F *hist, string histTitle, int nXBins, int xLow, int xHigh, string xTitle, int nYBins, int yLow, int yHigh, string yTitle) |
|
void | pad2png (TH2F *h, string imgName) |
|
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< DiagMaker > > | s_filler__LINE__ ("DiagMaker") |
|
static const edm::MakerPluginFactory::PMaker< edm::WorkerMaker< DiagMaker > > | s_maker__LINE__ ("DiagMaker") |
|
void formatHist |
( |
TH2F * |
hist, |
|
|
string |
histTitle, |
|
|
int |
nXBins, |
|
|
int |
xLow, |
|
|
int |
xHigh, |
|
|
string |
xTitle, |
|
|
int |
nYBins, |
|
|
int |
yLow, |
|
|
int |
yHigh, |
|
|
string |
yTitle |
|
) |
| |
Definition at line 417 of file DiagMaker.cc.
420 TAxis *xaxis =
hist->GetXaxis();
421 xaxis -> SetTitle(xTitle.c_str());
422 xaxis -> CenterTitle();
423 xaxis -> SetNdivisions(nXBins,kFALSE);
424 xaxis -> SetTickLength(1.0);
425 xaxis -> CenterLabels();
427 TAxis *yaxis =
hist->GetYaxis();
428 yaxis -> SetTitle(yTitle.c_str());
429 yaxis -> CenterTitle();
430 yaxis -> SetNdivisions(nYBins,kFALSE);
431 yaxis -> SetTickLength(1.0);
432 yaxis -> CenterLabels();
434 hist -> SetTitle(histTitle.c_str());
void pad2png |
( |
TH2F * |
h, |
|
|
string |
imgName |
|
) |
| |
Definition at line 439 of file DiagMaker.cc.
References EnergyCorrector::c.
441 TCanvas *
c =
new TCanvas;
443 gSystem->ProcessEvents();
444 TImage *img = TImage::Create();
446 img->WriteImage(imgName.c_str());