#include <HLTriggerOffline/BJet/interface/VertexPlots.h>
Public Member Functions | |
void | fill (const reco::Vertex &vertex) |
void | init (const std::string &name, const std::string &title, unsigned int bins, double zRange, double rRange) |
void | save (TDirectory &file) |
VertexPlots () | |
Public Attributes | |
TH1 * | m_r |
TH1 * | m_z |
Definition at line 17 of file VertexPlots.h.
VertexPlots::VertexPlots | ( | ) | [inline] |
void VertexPlots::fill | ( | const reco::Vertex & | vertex | ) | [inline] |
Definition at line 39 of file VertexPlots.h.
References m_r, m_z, reco::Vertex::position(), and reco::Vertex::z().
Referenced by HLTBtagLifetimeAnalyzer::analyze().
void VertexPlots::init | ( | const std::string & | name, | |
const std::string & | title, | |||
unsigned int | bins, | |||
double | zRange, | |||
double | rRange | |||
) | [inline] |
Definition at line 23 of file VertexPlots.h.
Referenced by HLTBtagLifetimeAnalyzer::beginJob().
00024 { 00025 // access the shared ROOT file via TFileService 00026 edm::Service<TFileService> fileservice; 00027 00028 // enable sum-of-squares for all plots 00029 bool sumw2 = TH1::GetDefaultSumw2(); 00030 TH1::SetDefaultSumw2(true); 00031 00032 m_r = fileservice->make<TH1F>((name + "_R").c_str(), (title + " R position").c_str(), bins, -rRange, rRange); 00033 m_z = fileservice->make<TH1F>((name + "_Z").c_str(), (title + " Z position").c_str(), bins, -zRange, zRange); 00034 00035 // reset sum-of-squares status 00036 TH1::SetDefaultSumw2(sumw2); 00037 }
void VertexPlots::save | ( | TDirectory & | file | ) | [inline] |
TH1* VertexPlots::m_r |
TH1* VertexPlots::m_z |