CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTTauDQMPlotter.cc
Go to the documentation of this file.
2 
4  //Declare DQM Store
6  validity_ = false;
7 }
8 
10 }
11 
12 std::pair<bool,LV> HLTTauDQMPlotter::match( const LV& jet, const LVColl& McInfo, double dr ) {
13  bool matched = false;
14  LV out;
15  for ( std::vector<LV>::const_iterator it = McInfo.begin(); it != McInfo.end(); ++it ) {
16  double delta = ROOT::Math::VectorUtil::DeltaR(jet,*it);
17  if ( delta < dr ) {
18  matched = true;
19  out = *it;
20  break;
21  }
22  }
23  return std::pair<bool,LV>(matched,out);
24 }
25 
27  if ( triggerTagAlias_ != "" ) {
29  }
31 }
32 
33 
34 
36  validity_ = false;
37  try {
39  MatchDeltaR_ = ps.getUntrackedParameter<double>("MatchDeltaR",0.5);
40  NTriggeredTaus_ = ps.getUntrackedParameter<unsigned int>("NTriggeredTaus");
41  TauType_ = ps.getUntrackedParameter<int>("TauType");
42  NTriggeredLeptons_ = ps.getUntrackedParameter<unsigned int>("NTriggeredLeptons");
43  LeptonType_ = ps.getUntrackedParameter<int>("LeptonType");
44  Alias_ = ps.getUntrackedParameter<std::string>("Alias",FilterName_.label());
45  validity_ = true;
46  } catch ( cms::Exception &e ) {
47  edm::LogInfo("HLTTauDQMPlotter::FilterObject") << e.what() << std::endl;
48  }
49 }
50 
52 }
53 
55  if ( LeptonType_ == trigger::TriggerL1IsoEG || LeptonType_ == trigger::TriggerL1NoIsoEG || LeptonType_ == trigger::TriggerElectron || std::abs(LeptonType_) == 11 ) {
56  return 11;
57  } else if ( LeptonType_ == trigger::TriggerL1Mu || LeptonType_ == trigger::TriggerMuon || std::abs(LeptonType_) == 13 ) {
58  return 13;
59  } else if ( LeptonType_ == trigger::TriggerL1TauJet || LeptonType_ == trigger::TriggerL1CenJet || LeptonType_ == trigger::TriggerTau || std::abs(LeptonType_) == 15 ) {
60  return 15;
61  }
62  return 0;
63 }
virtual char const * what() const
Definition: Exception.cc:141
dbl * delta
Definition: mlp_gen.cc:36
T getUntrackedParameter(std::string const &, T const &) const
virtual ~HLTTauDQMPlotter()
enum start value shifted to 81 so as to avoid clashes with PDG codes
#define abs(x)
Definition: mlp_lapack.h:159
math::XYZTLorentzVectorD LV
std::vector< LV > LVColl
FilterObject(const edm::ParameterSet &ps)
std::string triggerTagAlias_
tuple out
Definition: dbtoconf.py:99
std::string triggerTag()
std::string const & label() const
Definition: InputTag.h:25
std::pair< bool, LV > match(const LV &, const LVColl &, double)
std::string triggerTag_
std::string dqmBaseFolder_