|
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 22 of file PFTauRenderPlugin.cc.
virtual bool PFTauRenderPlugin::applies |
( |
const VisDQMObject & |
o, |
|
|
const VisDQMImgInfo & |
|
|
) |
| |
|
inlinevirtual |
Definition at line 25 of file PFTauRenderPlugin.cc.
27 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 30 of file PFTauRenderPlugin.cc.
References bookConverter::max, min(), and getGTfromDQMFile::obj.
33 TH1*
obj =
dynamic_cast<TH1*
>(
o.object );
37 gStyle->SetOptStat(0);
38 renderInfo.drawOptions =
"E0";
39 if(
o.name.find(
"Rejection" ) != std::string::npos )
canvas->SetLogy();
40 if(
o.name.find(
"RealData" ) != std::string::npos )
canvas->SetLogy();
45 obj->SetTitle((discriminator+
" fake rate vs "+variable).c_str());
46 obj->GetXaxis()->SetTitle(variable.c_str());
47 obj->GetYaxis()->SetTitle(
"fake rate");
48 double min = (
canvas->GetLogy() ) ? 0.001 : 0.;
49 double max = (
canvas->GetLogy() ) ? 2. : 1.2;
50 obj->GetYaxis()->SetRangeUser(min,max);
51 obj->SetMarkerStyle(20);
string stripVar(string name)
string stripDicriminator(string name)
string PFTauRenderPlugin::stripDicriminator |
( |
string |
name | ) |
|
|
inlineprivate |
string PFTauRenderPlugin::stripVar |
( |
string |
name | ) |
|
|
inlineprivate |