CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TriggerObjectTableProducer::SelectedObject Struct Reference

Public Member Functions

bool match (const pat::TriggerObjectStandAlone &obj) const
 
 SelectedObject (const edm::ParameterSet &pset)
 

Public Attributes

StringCutObjectSelector< pat::TriggerObjectStandAlonecut
 
int id
 
StringCutObjectSelector< pat::TriggerObjectStandAlonel1cut
 
StringCutObjectSelector< pat::TriggerObjectStandAlonel1cut_2
 
float l1DR2
 
float l1DR2_2
 
StringCutObjectSelector< pat::TriggerObjectStandAlonel2cut
 
float l2DR2
 
std::string name
 
StringObjectFunction< pat::TriggerObjectStandAlonequalityBits
 
std::string qualityBitsDoc
 

Detailed Description

Definition at line 71 of file TriggerObjectTableProducer.cc.

Constructor & Destructor Documentation

TriggerObjectTableProducer::SelectedObject::SelectedObject ( const edm::ParameterSet pset)
inline

Definition at line 80 of file TriggerObjectTableProducer.cc.

References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), funct::pow(), and AlCaHLTBitMon_QueryRunRegistry::string.

80  :
81  name(pset.getParameter<std::string>("name")),
82  id(pset.getParameter<int>("id")),
83  cut(pset.getParameter<std::string>("sel")),
84  l1cut(""), l1cut_2(""), l2cut(""),
85  l1DR2(-1), l1DR2_2(-1), l2DR2(-1),
86  qualityBits(pset.getParameter<std::string>("qualityBits")),
87  qualityBitsDoc(pset.getParameter<std::string>("qualityBitsDoc"))
88  {
89  if (pset.existsAs<std::string>("l1seed")) {
91  l1DR2 = std::pow(pset.getParameter<double>("l1deltaR"), 2);
92  }
93  if (pset.existsAs<std::string>("l1seed_2")) {
95  l1DR2_2 = std::pow(pset.getParameter<double>("l1deltaR_2"), 2);
96  }
97  if (pset.existsAs<std::string>("l2seed")) {
99  l2DR2 = std::pow(pset.getParameter<double>("l2deltaR"), 2);
100  }
101  }
T getParameter(std::string const &) const
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:185
StringCutObjectSelector< pat::TriggerObjectStandAlone > l1cut
StringObjectFunction< pat::TriggerObjectStandAlone > qualityBits
StringCutObjectSelector< pat::TriggerObjectStandAlone > l1cut_2
StringCutObjectSelector< pat::TriggerObjectStandAlone > cut
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
StringCutObjectSelector< pat::TriggerObjectStandAlone > l2cut

Member Function Documentation

bool TriggerObjectTableProducer::SelectedObject::match ( const pat::TriggerObjectStandAlone obj) const
inline

Definition at line 103 of file TriggerObjectTableProducer.cc.

References cut.

103  {
104  return cut(obj);
105  }
StringCutObjectSelector< pat::TriggerObjectStandAlone > cut

Member Data Documentation

StringCutObjectSelector<pat::TriggerObjectStandAlone> TriggerObjectTableProducer::SelectedObject::cut

Definition at line 74 of file TriggerObjectTableProducer.cc.

Referenced by match().

int TriggerObjectTableProducer::SelectedObject::id

Definition at line 73 of file TriggerObjectTableProducer.cc.

Referenced by TriggerObjectTableProducer::produce().

StringCutObjectSelector<pat::TriggerObjectStandAlone> TriggerObjectTableProducer::SelectedObject::l1cut

Definition at line 75 of file TriggerObjectTableProducer.cc.

StringCutObjectSelector<pat::TriggerObjectStandAlone> TriggerObjectTableProducer::SelectedObject::l1cut_2

Definition at line 75 of file TriggerObjectTableProducer.cc.

float TriggerObjectTableProducer::SelectedObject::l1DR2

Definition at line 76 of file TriggerObjectTableProducer.cc.

float TriggerObjectTableProducer::SelectedObject::l1DR2_2

Definition at line 76 of file TriggerObjectTableProducer.cc.

StringCutObjectSelector<pat::TriggerObjectStandAlone> TriggerObjectTableProducer::SelectedObject::l2cut

Definition at line 75 of file TriggerObjectTableProducer.cc.

float TriggerObjectTableProducer::SelectedObject::l2DR2

Definition at line 76 of file TriggerObjectTableProducer.cc.

std::string TriggerObjectTableProducer::SelectedObject::name
StringObjectFunction<pat::TriggerObjectStandAlone> TriggerObjectTableProducer::SelectedObject::qualityBits

Definition at line 77 of file TriggerObjectTableProducer.cc.

std::string TriggerObjectTableProducer::SelectedObject::qualityBitsDoc

Definition at line 78 of file TriggerObjectTableProducer.cc.