|
virtual bool | applies (const VisDQMObject &o, const VisDQMImgInfo &) |
|
virtual void | postDraw (TCanvas *, const VisDQMObject &, const VisDQMImgInfo &) |
|
virtual void | preDraw (TCanvas *canvas, const VisDQMObject &o, const VisDQMImgInfo &, VisDQMRenderInfo &renderInfo) |
|
Definition at line 24 of file PFTauRenderPlugin.cc.
virtual bool PFTauRenderPlugin::applies |
( |
const VisDQMObject & |
o, |
|
|
const VisDQMImgInfo & |
|
|
) |
| |
|
inlinevirtual |
Definition at line 27 of file PFTauRenderPlugin.cc.
29 return ((
o.name.find(
"RecoTauV/" ) != std::string::npos ) && (
o.name.find(
"Eff" ) != std::string::npos ) );
virtual void PFTauRenderPlugin::postDraw |
( |
TCanvas * |
, |
|
|
const VisDQMObject & |
, |
|
|
const VisDQMImgInfo & |
|
|
) |
| |
|
inlinevirtual |
virtual void PFTauRenderPlugin::preDraw |
( |
TCanvas * |
canvas, |
|
|
const VisDQMObject & |
o, |
|
|
const VisDQMImgInfo & |
, |
|
|
VisDQMRenderInfo & |
renderInfo |
|
) |
| |
|
inlinevirtual |
Definition at line 32 of file PFTauRenderPlugin.cc.
References max(), min, and getGTfromDQMFile::obj.
35 TH1*
obj =
dynamic_cast<TH1*
>(
o.object );
39 gStyle->SetOptStat(0);
40 renderInfo.drawOptions =
"E0";
41 if(
o.name.find(
"Rejection" ) != std::string::npos )
canvas->SetLogy();
42 if(
o.name.find(
"RealData" ) != std::string::npos )
canvas->SetLogy();
47 obj->SetTitle((discriminator+
" fake rate vs "+variable).c_str());
48 obj->GetXaxis()->SetTitle(variable.c_str());
49 obj->GetYaxis()->SetTitle(
"fake rate");
50 double min = (
canvas->GetLogy() ) ? 0.001 : 0.;
51 double max = (
canvas->GetLogy() ) ? 2. : 1.2;
52 obj->GetYaxis()->SetRangeUser(min,max);
53 obj->SetMarkerStyle(20);
const T & max(const T &a, const T &b)
string stripVar(string name)
string stripDicriminator(string name)
string PFTauRenderPlugin::stripDicriminator |
( |
string |
name | ) |
|
|
inlineprivate |
string PFTauRenderPlugin::stripVar |
( |
string |
name | ) |
|
|
inlineprivate |