|
void | endJob () override |
|
| ObjectViewMatcher (const edm::ParameterSet &iConfig) |
|
void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override |
|
virtual | ~ObjectViewMatcher () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
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, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
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 |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
template<typename T1, typename T2>
class ObjectViewMatcher< T1, T2 >
Definition at line 51 of file ObjectViewMatcher.cc.
template<typename T1 , typename T2 >
Definition at line 112 of file ObjectViewMatcher.cc.
References edm::View< T >::begin(), objects.IsoTrackAnalyzer::candidates, counter, deltaR(), reco::deltaR(), ObjectViewMatcher< T1, T2 >::deltaRMax_, edm::Event::getByToken(), eostools::move(), ObjectViewMatcher< T1, T2 >::nObjectsMatch_, ObjectViewMatcher< T1, T2 >::nObjectsTot_, MuonAssociatorByHits_cfi::obj, ObjectViewMatcher< T1, T2 >::objCut_, ObjectViewMatcher< T1, T2 >::objMatchCut_, edm::Event::put(), ObjectViewMatcher< T1, T2 >::srcCandsToken_, and ObjectViewMatcher< T1, T2 >::srcObjectsTokens_.
114 auto cleanObjects = std::make_unique<std::vector<T1>>();
119 bool* isMatch =
new bool[candidates->size()];
120 for (
unsigned int iObject=0;iObject<candidates->size();iObject++) isMatch[iObject] =
false;
126 if(objects->size()==0)
continue;
128 for (
unsigned int iObject=0;iObject<candidates->size();iObject++) {
129 const T1& candidate = candidates->at(iObject);
130 if (!
objCut_(candidate))
continue;
133 for (
unsigned int iObj=0;iObj<objects->size();iObj++) {
134 const T2&
obj = objects->at(iObj);
137 if (deltaR<
deltaRMax_) isMatch[iObject] =
true;
146 for (tIt = candidates->
begin(); tIt != endcands; ++tIt, ++
counter) {
147 if(isMatch[counter]) cleanObjects->push_back( *tIt );
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
unsigned int nObjectsMatch_
unsigned int nObjectsTot_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
StringCutObjectSelector< T2, true > objMatchCut_
std::vector< edm::EDGetTokenT< edm::View< T2 > > > srcObjectsTokens_
edm::EDGetTokenT< edm::View< T1 > > srcCandsToken_
const_iterator begin() const
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
double deltaR(double eta1, double eta2, double phi1, double phi2)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
static std::atomic< unsigned int > counter
StringCutObjectSelector< T1, true > objCut_