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
 
bool skipObjectsNotPassingQualityBits
 

Detailed Description

Definition at line 71 of file TriggerObjectTableProducer.cc.

Constructor & Destructor Documentation

◆ SelectedObject()

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

Definition at line 81 of file TriggerObjectTableProducer.cc.

References l1cut, l1cut_2, l1DR2, l1DR2_2, l2cut, l2DR2, funct::pow(), muonDTDigis_cfi::pset, 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  }
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:29
StringCutObjectSelector< pat::TriggerObjectStandAlone > l2cut

Member Function Documentation

◆ match()

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

Definition at line 108 of file TriggerObjectTableProducer.cc.

References cut, and getGTfromDQMFile::obj.

108 { return cut(obj); }
StringCutObjectSelector< pat::TriggerObjectStandAlone > cut

Member Data Documentation

◆ cut

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

Definition at line 74 of file TriggerObjectTableProducer.cc.

Referenced by match().

◆ id

int TriggerObjectTableProducer::SelectedObject::id

Definition at line 73 of file TriggerObjectTableProducer.cc.

◆ l1cut

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

Definition at line 75 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

◆ l1cut_2

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

Definition at line 75 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

◆ l1DR2

float TriggerObjectTableProducer::SelectedObject::l1DR2

Definition at line 76 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

◆ l1DR2_2

float TriggerObjectTableProducer::SelectedObject::l1DR2_2

Definition at line 76 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

◆ l2cut

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

Definition at line 75 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

◆ l2DR2

float TriggerObjectTableProducer::SelectedObject::l2DR2

Definition at line 76 of file TriggerObjectTableProducer.cc.

Referenced by SelectedObject().

◆ name

std::string TriggerObjectTableProducer::SelectedObject::name

◆ qualityBits

StringObjectFunction<pat::TriggerObjectStandAlone> TriggerObjectTableProducer::SelectedObject::qualityBits

Definition at line 78 of file TriggerObjectTableProducer.cc.

◆ qualityBitsDoc

std::string TriggerObjectTableProducer::SelectedObject::qualityBitsDoc

Definition at line 79 of file TriggerObjectTableProducer.cc.

◆ skipObjectsNotPassingQualityBits

bool TriggerObjectTableProducer::SelectedObject::skipObjectsNotPassingQualityBits

Definition at line 77 of file TriggerObjectTableProducer.cc.