Assists in assimilating all pat::UserData into pat objects. More...
#include "PhysicsTools/PatAlgos/interface/PATUserDataHelper.h"
Public Types | |
typedef StringObjectFunction< ObjectType > | function_type |
Public Member Functions | |
void | add (ObjectType &patObject, edm::Event const &iEvent, edm::EventSetup const &iSetup) |
PATUserDataHelper () | |
PATUserDataHelper (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) | |
~PATUserDataHelper () | |
Static Public Member Functions | |
static void | fillDescription (edm::ParameterSetDescription &iDesc) |
Private Attributes | |
std::vector< std::string > | functionLabels_ |
std::vector< std::string > | functionNames_ |
std::vector< function_type > | functions_ |
pat::PATUserDataMerger< ObjectType, pat::helper::AddUserCand > | userCandMerger_ |
pat::PATUserDataMerger< ObjectType, pat::helper::AddUserPtr > | userDataMerger_ |
pat::PATUserDataMerger< ObjectType, pat::helper::AddUserFloat > | userFloatMerger_ |
pat::PATUserDataMerger< ObjectType, pat::helper::AddUserInt > | userIntMerger_ |
Assists in assimilating all pat::UserData into pat objects.
This will pull the following from the event stream (if they exist) and put them into the object in question, all indexed by the reco objects that make up the pat objects in question:
ValueMap<double> ValueMap<int> ValueMap<Ptr<UserData> > ValueMap<CandidatePtr>
This is accomplished by using PATUserDataMergers.
This also can add "in situ" string-parser-based methods directly.
Definition at line 48 of file PATUserDataHelper.h.
typedef StringObjectFunction<ObjectType> pat::PATUserDataHelper< ObjectType >::function_type |
Definition at line 50 of file PATUserDataHelper.h.
|
inline |
Definition at line 52 of file PATUserDataHelper.h.
pat::PATUserDataHelper< ObjectType >::PATUserDataHelper | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 80 of file PATUserDataHelper.h.
|
inline |
Definition at line 54 of file PATUserDataHelper.h.
void pat::PATUserDataHelper< ObjectType >::add | ( | ObjectType & | patObject, |
edm::Event const & | iEvent, | ||
edm::EventSetup const & | iSetup | ||
) |
Definition at line 113 of file PATUserDataHelper.h.
Referenced by pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATMETProducer::produce(), pat::PATJetUpdater::produce(), pat::PATPFParticleProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATTauProducer::produce(), pat::PATJetProducer::produce(), pat::PATElectronProducer::produce(), pat::PATMuonProducer::produce(), and counter.Counter::register().
|
static |
Definition at line 134 of file PATUserDataHelper.h.
Referenced by pat::PATMETProducer::fillDescriptions(), pat::PATJetUpdater::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), and pat::PATMuonProducer::fillDescriptions().
|
private |
Definition at line 74 of file PATUserDataHelper.h.
|
private |
Definition at line 73 of file PATUserDataHelper.h.
|
private |
Definition at line 75 of file PATUserDataHelper.h.
|
private |
Definition at line 70 of file PATUserDataHelper.h.
|
private |
Definition at line 64 of file PATUserDataHelper.h.
|
private |
Definition at line 66 of file PATUserDataHelper.h.
|
private |
Definition at line 68 of file PATUserDataHelper.h.