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 49 of file PATUserDataHelper.h.
typedef StringObjectFunction<ObjectType> pat::PATUserDataHelper< ObjectType >::function_type |
Definition at line 51 of file PATUserDataHelper.h.
|
inline |
Definition at line 53 of file PATUserDataHelper.h.
pat::PATUserDataHelper< ObjectType >::PATUserDataHelper | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 81 of file PATUserDataHelper.h.
|
inline |
Definition at line 55 of file PATUserDataHelper.h.
void pat::PATUserDataHelper< ObjectType >::add | ( | ObjectType & | patObject, |
edm::Event const & | iEvent, | ||
edm::EventSetup const & | iSetup | ||
) |
Definition at line 114 of file PATUserDataHelper.h.
Referenced by pat::PATJetUpdater::produce(), pat::PATMETProducer::produce(), pat::PATCompositeCandidateProducer::produce(), pat::PATGenericParticleProducer::produce(), pat::PATPFParticleProducer::produce(), pat::PATJetProducer::produce(), pat::PATTauProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATElectronProducer::produce(), pat::PATMuonProducer::produce(), and counter.Counter::register().
|
static |
Definition at line 135 of file PATUserDataHelper.h.
Referenced by pat::PATJetUpdater::fillDescriptions(), pat::PATMETProducer::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), pat::PATElectronProducer::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), and pat::PATMuonProducer::fillDescriptions().
|
private |
Definition at line 75 of file PATUserDataHelper.h.
|
private |
Definition at line 74 of file PATUserDataHelper.h.
|
private |
Definition at line 76 of file PATUserDataHelper.h.
|
private |
Definition at line 71 of file PATUserDataHelper.h.
|
private |
Definition at line 65 of file PATUserDataHelper.h.
|
private |
Definition at line 67 of file PATUserDataHelper.h.
|
private |
Definition at line 69 of file PATUserDataHelper.h.