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.

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  }

References l1cut, l1cut_2, l1DR2, l1DR2_2, l2cut, l2DR2, funct::pow(), muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Function Documentation

◆ match()

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

Definition at line 108 of file TriggerObjectTableProducer.cc.

108 { return cut(obj); }

References cut, and getGTfromDQMFile::obj.

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.

TriggerObjectTableProducer::SelectedObject::cut
StringCutObjectSelector< pat::TriggerObjectStandAlone > cut
Definition: TriggerObjectTableProducer.cc:74
TriggerObjectTableProducer::SelectedObject::l1cut
StringCutObjectSelector< pat::TriggerObjectStandAlone > l1cut
Definition: TriggerObjectTableProducer.cc:75
TriggerObjectTableProducer::SelectedObject::qualityBits
StringObjectFunction< pat::TriggerObjectStandAlone > qualityBits
Definition: TriggerObjectTableProducer.cc:78
TriggerObjectTableProducer::SelectedObject::skipObjectsNotPassingQualityBits
bool skipObjectsNotPassingQualityBits
Definition: TriggerObjectTableProducer.cc:77
TriggerObjectTableProducer::SelectedObject::l1DR2_2
float l1DR2_2
Definition: TriggerObjectTableProducer.cc:76
TriggerObjectTableProducer::SelectedObject::qualityBitsDoc
std::string qualityBitsDoc
Definition: TriggerObjectTableProducer.cc:79
TriggerObjectTableProducer::SelectedObject::l1DR2
float l1DR2
Definition: TriggerObjectTableProducer.cc:76
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TriggerObjectTableProducer::SelectedObject::name
std::string name
Definition: TriggerObjectTableProducer.cc:72
TriggerObjectTableProducer::SelectedObject::id
int id
Definition: TriggerObjectTableProducer.cc:73
TriggerObjectTableProducer::SelectedObject::l2DR2
float l2DR2
Definition: TriggerObjectTableProducer.cc:76
TriggerObjectTableProducer::SelectedObject::l1cut_2
StringCutObjectSelector< pat::TriggerObjectStandAlone > l1cut_2
Definition: TriggerObjectTableProducer.cc:75
TriggerObjectTableProducer::SelectedObject::l2cut
StringCutObjectSelector< pat::TriggerObjectStandAlone > l2cut
Definition: TriggerObjectTableProducer.cc:75
StringCutObjectSelector< pat::TriggerObjectStandAlone >
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27