test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
DiagMaker.cc File Reference
#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.

Classes

class  DiagMaker
 
class  WordHist
 

Typedefs

typedef edm::ParameterSet PSet
 

Functions

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")
 

Typedef Documentation

Definition at line 74 of file DiagMaker.cc.

Function Documentation

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.

419 {
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();
426 
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();
433 
434  hist -> SetTitle(histTitle.c_str());
435  hist -> SetStats(0);
436 
437 }
void pad2png ( TH2F *  h,
string  imgName 
)

Definition at line 439 of file DiagMaker.cc.

References EnergyCorrector::c.

440 {
441  TCanvas *c = new TCanvas;
442  h->Draw("colz");
443  gSystem->ProcessEvents();
444  TImage *img = TImage::Create();
445  img->FromPad(c);
446  img->WriteImage(imgName.c_str());
447  delete c;
448  delete img;
449 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< DiagMaker > > s_filler__LINE__ ( "DiagMaker"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< DiagMaker > > s_maker__LINE__ ( "DiagMaker"  )
static