|
bool | hltFilter (edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override |
|
| HLTPixlMBFilt (const edm::ParameterSet &) |
|
| ~HLTPixlMBFilt () override |
|
| HLTFilter (const edm::ParameterSet &config) |
|
int | module (edm::Event const &) const |
|
const std::string * | moduleLabel () const |
|
int | path (edm::Event const &) const |
|
const std::string * | pathName (edm::Event const &) const |
|
std::pair< int, int > | pmid (edm::Event const &) const |
|
bool | saveTags () const |
|
| ~HLTFilter () override |
|
| EDFilter ()=default |
|
bool | hasAbilityToProduceInLumis () const final |
|
bool | hasAbilityToProduceInRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsStreamLuminosityBlocks () const final |
|
bool | wantsStreamRuns () const final |
|
| EDFilterBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDFilterBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDFilterBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
See header file for documentation
- Author
- Mika Huhtinen
Definition at line 28 of file HLTPixlMBFilt.h.
Implements HLTFilter.
Definition at line 62 of file HLTPixlMBFilt.cc.
References accept(), trigger::TriggerFilterObjectWithRefs::addCollectionTag(), trigger::TriggerRefsCollections::addObject(), DEFINE_FWK_MODULE, edm::Event::getByToken(), gen::k, LogDebug, min_Pt_, min_sep_, min_trks_, pixlTag_, pixlToken_, HLTFilter::saveTags(), mathSSE::sqrt(), l1t::tracks, and trigger::TriggerTrack.
85 vector<double> etastore;
86 vector<double> phistore;
89 auto apixl(tracks->begin());
90 auto epixl(tracks->end());
91 RecoChargedCandidateCollection::const_iterator ipixl, jpixl;
92 unsigned int nsame_vtx=0;
95 for (ipixl=apixl; ipixl!=epixl; ipixl++){
96 if (ipixl->pt() <
min_Pt_)
continue;
98 const double& ztrk1 = ipixl->vz();
99 const double& etatrk1 = ipixl->momentum().eta();
100 const double& phitrk1 = ipixl->momentum().phi();
105 etastore.push_back(etatrk1);
106 phistore.push_back(phitrk1);
107 itstore.push_back(itrk);
108 if (fabs(ztrk1) < 15.0) {
111 for (jpixl=apixl; jpixl!=epixl; jpixl++) {
112 if (jpixl->pt() <
min_Pt_)
continue;
114 if (jpixl==ipixl)
continue;
115 const double& ztrk2 = jpixl->vz();
116 const double& etatrk2 = jpixl->momentum().eta();
117 const double& phitrk2 = jpixl->momentum().phi();
118 double eta_dist=etatrk2-etatrk1;
119 double phi_dist=phitrk2-phitrk1;
120 double etaphi_dist=
sqrt(eta_dist*eta_dist + phi_dist*phi_dist);
121 if (fabs(ztrk2-ztrk1) < 1.0 && etaphi_dist >
min_sep_) {
122 if (
min_trks_ <= 2 || itstore.size() <= 1) {
123 etastore.push_back(etatrk2);
124 phistore.push_back(phitrk2);
125 itstore.push_back(jtrk);
129 LogDebug(
"") <<
"HLTPixlMBFilt: with mintrks=2 we should not be here...";
131 for (
unsigned int k=1;
k < itstore.size();
k++) {
132 eta_dist=etatrk2-etastore.at(
k);
133 phi_dist=phitrk2-phistore.at(
k);
134 etaphi_dist=
sqrt(eta_dist*eta_dist + phi_dist*phi_dist);
141 etastore.push_back(etatrk2);
142 phistore.push_back(phitrk2);
143 itstore.push_back(jtrk);
168 for (
int iaddr : itstore) {
173 LogDebug(
"") <<
"Number of pixel-track objects accepted:"
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Ref< RecoChargedCandidateCollection > RecoChargedCandidateRef
reference to an object in a collection of RecoChargedCandidate objects
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > pixlToken_
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags