|
| 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 |
|
ProducesCollector | producesCollector () |
|
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 53 of file PFCand_NoPU_WithAM.h.
Definition at line 87 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(), qcdUeDQM_cfi::quality, edm::second(), findQualityFiles::size, and edm::helpers::KeyVal< K, V >::val.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
91 bool p2vassmap =
false;
92 bool v2passmap =
false;
100 if ((asstype ==
"PFCandsToVertex") || (asstype ==
"Both")) {
106 if ((asstype ==
"VertexToPFCands") || (asstype ==
"Both")) {
112 if (!p2vassmap && !v2passmap) {
113 cout <<
"No input collection could be found" << endl;
117 int negativeQuality = 0;
119 negativeQuality = -1;
122 negativeQuality = -2;
124 negativeQuality = -3;
132 for (
unsigned int pfccoll_ite = 0; pfccoll_ite < pfccoll.size(); pfccoll_ite++) {
134 int quality = pfccoll[pfccoll_ite].second;
136 if ((quality >=
input_MinQuality_) || ((quality < 0) && (quality >= negativeQuality))) {
137 p2v_firstvertex->push_back(*pfcand);
149 VertexRef firstVertexRef(input_vtxcollH, 0);
153 for (v2p_ite = v2pAM->
begin(); v2p_ite != v2pAM->
end(); v2p_ite++) {
156 for (
unsigned v_ite = 0; v_ite < (v2p_ite->
val).
size(); v_ite++) {
158 int quality = (v2p_ite->
val)[v_ite].
second;
160 if ((vtxref == firstVertexRef) &&
161 ((quality >=
input_MinQuality_) || ((quality < 0) && (quality >= negativeQuality)))) {
162 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< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
std::vector< PFCandQualityPair > PFCandQualityPairVector
edm::InputTag input_AssociationType_
const_iterator begin() const
first iterator over the map (read only)