|
| PFCand_NoPU_WithAM (const edm::ParameterSet &) |
|
| ~PFCand_NoPU_WithAM () override |
|
| EDProducer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () 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 () noexcept(false) 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 |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
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) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducer | 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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) |
|
Definition at line 52 of file PFCand_NoPU_WithAM.h.
Definition at line 92 of file PFCand_NoPU_WithAM.cc.
References edm::AssociationMap< Tag >::begin(), gather_cfg::cout, edm::AssociationMap< Tag >::end(), edm::first(), edm::Event::getByToken(), edm::helpers::KeyVal< K, V >::key, eostools::move(), pfDeepBoostedJetPreprocessParams_cfi::pfcand, edm::Event::put(), jets_cff::quality, edm::second(), findQualityFiles::size, and edm::helpers::KeyVal< K, V >::val.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
98 bool p2vassmap =
false;
99 bool v2passmap =
false;
107 if ( ( asstype ==
"PFCandsToVertex" ) || ( asstype ==
"Both" ) ) {
113 if ( ( asstype ==
"VertexToPFCands" ) || ( asstype ==
"Both" ) ) {
119 if ( !p2vassmap && !v2passmap ) {
120 cout <<
"No input collection could be found" << endl;
124 int negativeQuality = 0;
126 negativeQuality = -1;
129 negativeQuality = -2;
131 negativeQuality = -3;
140 for (
unsigned int pfccoll_ite = 0; pfccoll_ite < pfccoll.size(); pfccoll_ite++){
143 int quality = pfccoll[pfccoll_ite].second;
145 if ( (quality>=
input_MinQuality_) || ( (quality<0) && (quality>=negativeQuality) ) ) {
146 p2v_firstvertex->push_back(*pfcand);
162 VertexRef firstVertexRef(input_vtxcollH,0);
166 for(v2p_ite=v2pAM->
begin(); v2p_ite!=v2pAM->
end(); v2p_ite++){
170 for(
unsigned v_ite = 0; v_ite<(v2p_ite->
val).
size(); v_ite++){
173 int quality = (v2p_ite->
val)[v_ite].
second;
175 if ( (vtxref==firstVertexRef) && ( (quality>=
input_MinQuality_) || ( (quality<0) && (quality>=negativeQuality) ) ) ) {
176 v2p_firstvertex->push_back(*pfcand);
edm::EDGetTokenT< reco::VertexCollection > token_VertexCollection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const_iterator end() const
last iterator over the map (read only)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< VertexToPFCandAssMap > token_VertexToPFCandAssMap_
edm::EDGetTokenT< PFCandToVertexAssMap > token_PFCandToVertexAssMap_
U second(std::pair< T, U > const &p)
std::vector< PFCandQualityPair > PFCandQualityPairVector
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
edm::InputTag input_AssociationType_
const_iterator begin() const
first iterator over the map (read only)