|
|
|
void | analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, const edm::TriggerResults &triggerResults, const edm::TriggerNames &triggerNames, float weight) override |
|
void | book (DQMStore::IBooker &booker) override |
|
template<class T > |
int | count (const edm::Event &iEvent, InputTag &input, StringCutObjectSelector< T > &sel, float weight) |
|
void | fillSingleObjectPlots (const TInputCandidateType &cand, float weight) |
|
std::vector< std::string > | findPathAndFilter (const HLTConfigProvider &hltConfig) |
|
template<> |
void | getAndStoreTokens (edm::ConsumesCollector &&iC) |
|
template<> |
void | getAndStoreTokens (edm::ConsumesCollector &&iC) |
|
template<> |
void | getAndStoreTokens (edm::ConsumesCollector &&iC) |
|
template<> |
void | getAndStoreTokens (edm::ConsumesCollector &&iC) |
|
void | getAndStoreTokens (edm::ConsumesCollector &&iC) override |
|
std::vector< TOutputCandidateType > | getBestCombination (std::vector< TOutputCandidateType > &cands) |
|
template<> |
void | getFilteredCands (reco::Candidate::LorentzVector *, std::vector< int > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight) |
|
template<> |
void | getFilteredCands (reco::Candidate::LorentzVector *, std::vector< reco::Candidate::LorentzVector > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight) |
|
template<> |
void | getFilteredCands (reco::GenParticle *, std::vector< int > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight) |
|
template<> |
void | getFilteredCands (reco::PFJet *, std::vector< reco::PFJet > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight) |
|
template<> |
void | getFilteredCands (reco::Track *, std::vector< int > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight) |
|
template<> |
void | getFilteredCands (reco::Track *, std::vector< int > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight) |
|
void | getFilteredCands (TInputCandidateType *, std::vector< TOutputCandidateType > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight) |
|
template<> |
void | getFilteredCands (trigger::TriggerObject *, std::vector< trigger::TriggerObject > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight) |
|
| HandlerTemplate (const edm::ParameterSet &iConfig, triggerExpression::Data &eventCache) |
|
| ~HandlerTemplate () override=default |
|
Public Member Functions inherited from FSQ::BaseHandler |
| BaseHandler () |
|
| BaseHandler (const edm::ParameterSet &iConfig, triggerExpression::Data &eventCache) |
|
virtual | ~BaseHandler ()=default |
|
template<class TInputCandidateType, class TOutputCandidateType, SpecialFilters filter = None>
class FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >
Definition at line 109 of file FSQDiJetAve.cc.
◆ HandlerTemplate()
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ ~HandlerTemplate()
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ analyze()
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ book()
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ count()
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
template<class T >
◆ fillSingleObjectPlots()
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
void FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::fillSingleObjectPlots |
( |
const TInputCandidateType & |
cand, |
|
|
float |
weight |
|
) |
| |
|
inline |
Definition at line 212 of file FSQDiJetAve.cc.
213 std::map<std::string, MonitorElement*>::iterator it, itE;
216 for (; it != itE; ++it) {
References heppy_batch::val.
◆ findPathAndFilter()
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ getAndStoreTokens() [1/5]
◆ getAndStoreTokens() [2/5]
◆ getAndStoreTokens() [3/5]
◆ getAndStoreTokens() [4/5]
◆ getAndStoreTokens() [5/5]
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ getBestCombination()
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::vector<TOutputCandidateType> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::getBestCombination |
( |
std::vector< TOutputCandidateType > & |
cands | ) |
|
|
inline |
Definition at line 364 of file FSQDiJetAve.cc.
365 int columnSize =
cands.size();
369 int maxCombinations = 1;
373 maxCombinations *= columnSize;
377 float bestCombinedCandVal = -1;
378 while (cnt < maxCombinations) {
382 std::vector<int> currentCombinationCopy(currentCombination);
383 std::vector<int>::iterator it;
384 std::sort(currentCombinationCopy.begin(), currentCombinationCopy.end());
385 it =
std::unique(currentCombinationCopy.begin(), currentCombinationCopy.end());
386 currentCombinationCopy.resize(
std::distance(currentCombinationCopy.begin(), it));
387 bool duplicatesPresent = currentCombination.size() != currentCombinationCopy.size();
391 if (!duplicatesPresent) {
392 std::vector<TOutputCandidateType> currentCombinationFromCands;
395 currentCombinationFromCands.push_back(
cands.at(currentCombination.at(
i)));
403 <<
"Problem: ranking function returned negative value: " << curVal << std::endl;
404 }
else if (curVal > bestCombinedCandVal) {
406 bestCombinedCandVal = curVal;
407 bestCombination = currentCombination;
417 currentCombination.at(
i) += carry;
419 if (currentCombination.at(
i) >= columnSize) {
421 currentCombination.at(
i) = 0;
426 std::vector<TOutputCandidateType> bestCombinationFromCands;
427 if (!bestCombination.empty() && bestCombination.at(0) >= 0) {
429 bestCombinationFromCands.push_back(
cands.at(bestCombination.at(
i)));
432 return bestCombinationFromCands;
References HLT_FULL_cff::cands, HLT_FULL_cff::distance, mps_fire::i, and tier0::unique().
◆ getFilteredCands() [1/8]
◆ getFilteredCands() [2/8]
◆ getFilteredCands() [3/8]
◆ getFilteredCands() [4/8]
◆ getFilteredCands() [5/8]
◆ getFilteredCands() [6/8]
Definition at line 520 of file FSQDiJetAve.cc.
535 static const double lMaxDXY2dxysigma =
m_pset.
getParameter<
double>(
"maxDXY2dxysigma");
545 double dxy,
dz, dzsigma, dxysigma;
547 double vzErr = 0.0, vxErr = 0.0, vyErr = 0.0;
575 for (
auto const&
i : *hIn) {
578 dxy = 0.0,
dz = 0.0, dxysigma = 0.0, dzsigma = 0.0;
579 dxy = -1. *
i.dxy(vtxPoint);
581 dxysigma =
sqrt(
i.dxyError() *
i.dxyError() + vxErr * vyErr);
582 dzsigma =
sqrt(
i.dzError() *
i.dzError() + vzErr * vzErr);
584 if (fabs(
dz) > lMaxDZ)
586 if (fabs(
dz / dzsigma) > lMaxDZ2dzsigma)
588 if (fabs(
dxy) > lMaxDXY)
590 if (fabs(
dxy / dxysigma) > lMaxDXY2dxysigma)
References HLT_FULL_cff::cands, PVValHelper::dxy, PVValHelper::dz, edm::InputTag::encode(), mps_fire::i, iEvent, edm::HandleBase::isValid(), mathSSE::sqrt(), and pwdgSkimBPark_cfi::vertices.
◆ getFilteredCands() [7/8]
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ getFilteredCands() [8/8]
Definition at line 687 of file FSQDiJetAve.cc.
697 if (filterFullName.empty()) {
708 edm::LogInfo(
"FSQDiJetAve") <<
"Cannot determine hlt index for |" << filterFullName <<
"|" <<
process;
715 auto kj = khlt.begin();
717 for (; kj != khlt.end(); ++kj) {
721 cands.push_back(toc[*kj]);
References HLT_FULL_cff::cands, trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), trigger::TriggerEvent::getObjects(), HltComparatorCreateWorkflow::hltConfig, EgHLTOfflineClient_cfi::hltTag, singleTopDQM_cfi::preselection, LaserDQM_cfg::process, trigger::TriggerEvent::sizeFilters(), AlCaHLTBitMon_QueryRunRegistry::string, and trigger::TriggerEvent::usedProcessName().
◆ CombinedObjectPlotter
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
const int FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::CombinedObjectPlotter = 1 |
|
staticprivate |
◆ m_combinedObjectDimension
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
int FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_combinedObjectDimension |
|
private |
◆ m_combinedObjectDrawables
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_combinedObjectSelection
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_combinedObjectSortFunction
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_dqmhistolabel
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::string FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_dqmhistolabel |
|
private |
◆ m_filterPartialName
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::string FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_filterPartialName |
|
private |
◆ m_input
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_isSetup
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_pathPartialName
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::string FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_pathPartialName |
|
private |
◆ m_plottersCombinedObject
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_plottersSingleObject
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_plotterType
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
std::map<std::string, int> FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::m_plotterType |
|
private |
◆ m_singleObjectDrawables
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_singleObjectSelection
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ m_tokens
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
◆ SingleObjectPlotter
template<class TInputCandidateType , class TOutputCandidateType , SpecialFilters filter = None>
const int FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::SingleObjectPlotter = 0 |
|
staticprivate |
ret
prodAgent to be discontinued
trigger::size_type sizeFilters() const
static const std::string input
const Keys & filterKeys(trigger::size_type index) const
triggerExpression::Data * m_eventCache
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::map< std::string, edm::EDGetToken > m_tokens
virtual void setCurrentFolder(std::string const &fullpath)
Log< level::Info, false > LogInfo
StringCutObjectSelector< TInputCandidateType > m_singleObjectSelection
std::map< std::string, MonitorElement * > m_histos
std::map< std::string, std::shared_ptr< StringObjectFunction< TInputCandidateType > > > m_plottersSingleObject
bool configurationUpdated() const
std::string m_filterPartialName
std::map< std::string, std::shared_ptr< StringObjectFunction< std::vector< TOutputCandidateType > > > > m_plottersCombinedObject
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
XYZPointD XYZPoint
point in space with cartesian internal representation
std::unique_ptr< triggerExpression::Evaluator > m_expression
std::vector< edm::ParameterSet > m_singleObjectDrawables
StringObjectFunction< std::vector< TOutputCandidateType > > m_combinedObjectSortFunction
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
std::vector< edm::ParameterSet > m_combinedObjectDrawables
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
std::vector< size_type > Keys
Log< level::Error, false > LogError
const TriggerObjectCollection & getObjects() const
std::set< std::string > m_usedPaths
std::vector< TOutputCandidateType > getBestCombination(std::vector< TOutputCandidateType > &cands)
void fillSingleObjectPlots(const TInputCandidateType &cand, float weight)
def unique(seq, keepstr=True)
static const int CombinedObjectPlotter
Jets made from PFObjects.
std::vector< std::string > findPathAndFilter(const HLTConfigProvider &hltConfig)
const std::string & usedProcessName() const
getters
T getParameter(std::string const &) const
std::string m_dqmhistolabel
static const int SingleObjectPlotter
xxx
StringCutObjectSelector< std::vector< TOutputCandidateType > > m_combinedObjectSelection
void getFilteredCands(TInputCandidateType *, std::vector< TOutputCandidateType > &cands, const edm::Event &iEvent, const edm::EventSetup &iSetup, const HLTConfigProvider &hltConfig, const trigger::TriggerEvent &trgEvent, float weight)
int m_combinedObjectDimension
std::map< std::string, int > m_plotterType
std::string m_pathPartialName
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())