CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::TriggerObjectStandAlone
cut
 
int id
 
StringCutObjectSelector
< pat::TriggerObjectStandAlone
l1cut
 
StringCutObjectSelector
< pat::TriggerObjectStandAlone
l1cut_2
 
float l1DR2
 
float l1DR2_2
 
StringCutObjectSelector
< pat::TriggerObjectStandAlone
l2cut
 
float l2DR2
 
std::string name
 
StringObjectFunction
< pat::TriggerObjectStandAlone
qualityBits
 
std::string qualityBitsDoc
 
bool skipObjectsNotPassingQualityBits
 

Detailed Description

Definition at line 71 of file TriggerObjectTableProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 81 of file TriggerObjectTableProducer.cc.

References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), l1cut, l1cut_2, l1DR2, l1DR2_2, l2cut, l2DR2, funct::pow(), and AlCaHLTBitMon_QueryRunRegistry::string.

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

Member Function Documentation

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

Definition at line 108 of file TriggerObjectTableProducer.cc.

References cut.

108 { return cut(obj); }
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.

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

Definition at line 75 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

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

Definition at line 75 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

float TriggerObjectTableProducer::SelectedObject::l1DR2

Definition at line 76 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

float TriggerObjectTableProducer::SelectedObject::l1DR2_2

Definition at line 76 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

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

Definition at line 75 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

float TriggerObjectTableProducer::SelectedObject::l2DR2

Definition at line 76 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

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

Definition at line 78 of file TriggerObjectTableProducer.cc.

std::string TriggerObjectTableProducer::SelectedObject::qualityBitsDoc

Definition at line 79 of file TriggerObjectTableProducer.cc.

bool TriggerObjectTableProducer::SelectedObject::skipObjectsNotPassingQualityBits

Definition at line 77 of file TriggerObjectTableProducer.cc.