|
| JetDeltaRValueMapProducer (edm::ParameterSet const ¶ms) |
|
virtual | ~JetDeltaRValueMapProducer () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription
const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
virtual | ~ProducerBase () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
template<class T>
class JetDeltaRValueMapProducer< T >
Definition at line 32 of file JetDeltaRValueMapProducer.cc.
template<class T >
|
inlineoverrideprivatevirtual |
Implements edm::EDProducer.
Definition at line 56 of file JetDeltaRValueMapProducer.cc.
References reco::deltaR2(), JetDeltaRValueMapProducer< T >::distMax_, JetDeltaRValueMapProducer< T >::evaluation_, edm::false, edm::helper::Filler< Map >::fill(), edm::Event::getByToken(), cmsHarvester::index, edm::helper::Filler< Map >::insert(), JetDeltaRValueMapProducer< T >::matchedToken_, edm::Event::put(), JetDeltaRValueMapProducer< T >::srcToken_, and makeHLTPrescaleTable::values.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
58 std::auto_ptr< JetValueMap > jetValueMap (
new JetValueMap() );
67 std::vector<float>
values( h_jets1->size(), -99999 );
68 std::vector<bool> jets1_locks( h_jets1->size(),
false );
71 iend = h_jets2->end(), ijet = ibegin;
72 ijet != iend; ++ijet )
74 float matched_dR2 = 1e9;
75 int matched_index = -1;
78 jend = h_jets1->end(), jjet = jbegin;
79 jjet != jend; ++jjet )
81 int index=jjet - jbegin;
83 if( jets1_locks.at(index) )
continue;
85 float temp_dR2 =
reco::deltaR2(ijet->eta(),ijet->phi(),jjet->eta(),jjet->phi());
86 if ( temp_dR2 < matched_dR2 )
88 matched_dR2 = temp_dR2;
89 matched_index =
index;
93 if( matched_index>=0 )
99 jets1_locks.at(matched_index) =
true;
109 iEvent.
put(jetValueMap);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
StringObjectFunction< T > evaluation_
edm::ValueMap< float > JetValueMap
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
edm::EDGetTokenT< typename edm::View< T > > matchedToken_
edm::EDGetTokenT< typename edm::View< T > > srcToken_
volatile std::atomic< bool > shutdown_flag false