CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
HLTTauDQMPlotter Class Reference

#include <HLTTauDQMPlotter.h>

Inheritance diagram for HLTTauDQMPlotter:
HLTTauDQML1Plotter HLTTauDQMPathPlotter HLTTauDQMPathSummaryPlotter HLTTauDQMSummaryPlotter

Public Member Functions

 HLTTauDQMPlotter (const edm::ParameterSet &pset, const std::string &dqmBaseFolder)
 
bool isValid () const
 
 ~HLTTauDQMPlotter ()
 

Protected Member Functions

std::pair< bool, LVmatch (const LV &, const LVColl &, double)
 
const std::string & triggerTag () const
 

Protected Attributes

bool configValid_
 
std::string dqmFolder_
 
std::string dqmFullFolder_
 
bool runValid_
 

Detailed Description

Definition at line 31 of file HLTTauDQMPlotter.h.

Constructor & Destructor Documentation

HLTTauDQMPlotter::HLTTauDQMPlotter ( const edm::ParameterSet pset,
const std::string &  dqmBaseFolder 
)

Definition at line 5 of file HLTTauDQMPlotter.cc.

References configValid_, dqmFolder_, dqmFullFolder_, alignCSCRings::e, edm::ParameterSet::getUntrackedParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().

5  :
6  dqmFullFolder_(dqmBaseFolder),
7  configValid_(false),
8  runValid_(false)
9 {
10  try {
11  dqmFolder_ = pset.getUntrackedParameter<std::string>("DQMFolder");
13  configValid_ = true;
14  } catch ( cms::Exception &e ) {
15  edm::LogWarning("HLTTauDQMOfflineSource") << "HLTTauDQMPlotter::HLTTauDQMPlotter(): " << e.what();
16  configValid_ = false;
17  }
18 }
virtual char const * what() const
Definition: Exception.cc:141
T getUntrackedParameter(std::string const &, T const &) const
std::string dqmFolder_
std::string dqmFullFolder_
HLTTauDQMPlotter::~HLTTauDQMPlotter ( )

Definition at line 20 of file HLTTauDQMPlotter.cc.

20  {
21 }

Member Function Documentation

bool HLTTauDQMPlotter::isValid ( void  ) const
inline

Definition at line 35 of file HLTTauDQMPlotter.h.

References configValid_, and runValid_.

std::pair< bool, LV > HLTTauDQMPlotter::match ( const LV jet,
const LVColl McInfo,
double  dr 
)
protected

Definition at line 23 of file HLTTauDQMPlotter.cc.

References delta, and dbtoconf::out.

Referenced by HLTTauDQML1Plotter::analyze().

23  {
24  bool matched = false;
25  LV out;
26  for ( std::vector<LV>::const_iterator it = McInfo.begin(); it != McInfo.end(); ++it ) {
27  double delta = ROOT::Math::VectorUtil::DeltaR(jet,*it);
28  if ( delta < dr ) {
29  matched = true;
30  out = *it;
31  break;
32  }
33  }
34  return std::pair<bool,LV>(matched,out);
35 }
dbl * delta
Definition: mlp_gen.cc:36
math::XYZTLorentzVectorD LV
tuple out
Definition: dbtoconf.py:99
const std::string& HLTTauDQMPlotter::triggerTag ( ) const
inlineprotected

Member Data Documentation

bool HLTTauDQMPlotter::configValid_
protected
std::string HLTTauDQMPlotter::dqmFolder_
protected

Definition at line 44 of file HLTTauDQMPlotter.h.

Referenced by HLTTauDQMPathPlotter::beginRun(), and HLTTauDQMPlotter().

std::string HLTTauDQMPlotter::dqmFullFolder_
protected

Definition at line 43 of file HLTTauDQMPlotter.h.

Referenced by HLTTauDQMPlotter(), and triggerTag().

bool HLTTauDQMPlotter::runValid_
protected