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 53 of file PATUserDataHelper.h.
typedef StringObjectFunction<ObjectType> pat::PATUserDataHelper< ObjectType >::function_type |
Definition at line 57 of file PATUserDataHelper.h.
|
inline |
Definition at line 59 of file PATUserDataHelper.h.
pat::PATUserDataHelper< ObjectType >::PATUserDataHelper | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 90 of file PATUserDataHelper.h.
References edm::hlt::Exception, pat::PATUserDataHelper< ObjectType >::functionLabels_, pat::PATUserDataHelper< ObjectType >::functionNames_, and pat::PATUserDataHelper< ObjectType >::functions_.
|
inline |
Definition at line 61 of file PATUserDataHelper.h.
void pat::PATUserDataHelper< ObjectType >::add | ( | ObjectType & | patObject, |
edm::Event const & | iEvent, | ||
edm::EventSetup const & | iSetup | ||
) |
Definition at line 126 of file PATUserDataHelper.h.
|
static |
Definition at line 153 of file PATUserDataHelper.h.
References edm::ParameterSetDescription::add(), and pat::PATUserDataMerger< ObjectType, Operation >::fillDescription().
Referenced by pat::PATMETProducer::fillDescriptions(), pat::PATMuonProducer::fillDescriptions(), pat::PATTauProducer::fillDescriptions(), pat::PATJetProducer::fillDescriptions(), pat::PATPhotonProducer::fillDescriptions(), and pat::PATElectronProducer::fillDescriptions().
|
private |
Definition at line 83 of file PATUserDataHelper.h.
Referenced by pat::PATUserDataHelper< ObjectType >::PATUserDataHelper().
|
private |
Definition at line 82 of file PATUserDataHelper.h.
Referenced by pat::PATUserDataHelper< ObjectType >::PATUserDataHelper().
|
private |
Definition at line 84 of file PATUserDataHelper.h.
Referenced by pat::PATUserDataHelper< ObjectType >::PATUserDataHelper().
|
private |
Definition at line 79 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 77 of file PATUserDataHelper.h.