CMS 3D CMS Logo

PATJetUpdater.h
Go to the documentation of this file.
1 //
2 //
3 
4 #ifndef PhysicsTools_PatAlgos_PATJetUpdater_h
5 #define PhysicsTools_PatAlgos_PATJetUpdater_h
6 
23 
25 
27 
30 
31 namespace pat {
32 
34  public:
35  explicit PATJetUpdater(const edm::ParameterSet& iConfig);
36  ~PATJetUpdater() override;
37 
38  void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
39 
40  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
41 
42  private:
43  // configurables
45  bool sort_;
47  std::vector<edm::EDGetTokenT<edm::ValueMap<JetCorrFactors> > > jetCorrFactorsTokens_;
48 
51  std::vector<edm::InputTag> discriminatorTags_;
52  std::vector<edm::EDGetTokenT<reco::JetFloatAssociation::Container> > discriminatorTokens_;
53  std::vector<std::string> discriminatorLabels_;
55  std::vector<edm::InputTag> tagInfoTags_;
56  std::vector<edm::EDGetTokenT<edm::View<reco::BaseTagInfo> > > tagInfoTokens_;
57  std::vector<std::string> tagInfoLabels_;
58 
60 
63  //
64  bool printWarning_; // this is introduced to issue warnings only once per job
65  };
66 
67 } // namespace pat
68 
69 #endif
pat::PATUserDataHelper< pat::Jet >
GreaterByPt
Definition: PtComparator.h:24
pat::PATJetUpdater::tagInfoTokens_
std::vector< edm::EDGetTokenT< edm::View< reco::BaseTagInfo > > > tagInfoTokens_
Definition: PATJetUpdater.h:56
pat::PATJetUpdater::discriminatorLabels_
std::vector< std::string > discriminatorLabels_
Definition: PATJetUpdater.h:53
edm::EDGetTokenT
Definition: EDGetToken.h:33
pat::PATJetUpdater::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: PATJetUpdater.cc:231
EDProducer.h
PtComparator.h
pat::PATJetUpdater::discriminatorTokens_
std::vector< edm::EDGetTokenT< reco::JetFloatAssociation::Container > > discriminatorTokens_
Definition: PATJetUpdater.h:52
pat::PATJetUpdater::pTComparator_
GreaterByPt< Jet > pTComparator_
Definition: PATJetUpdater.h:59
pat::PATJetUpdater::sort_
bool sort_
Definition: PATJetUpdater.h:45
pat::PATJetUpdater::addJetCorrFactors_
bool addJetCorrFactors_
Definition: PATJetUpdater.h:46
pat::PATJetUpdater::addDiscriminators_
bool addDiscriminators_
Definition: PATJetUpdater.h:50
pat::PATJetUpdater::PATJetUpdater
PATJetUpdater(const edm::ParameterSet &iConfig)
Definition: PATJetUpdater.cc:25
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
UserData.h
pat::PATJetUpdater::printWarning_
bool printWarning_
Definition: PATJetUpdater.h:64
iEvent
int iEvent
Definition: GenABIO.cc:224
pat::PATJetUpdater::jetCorrFactorsTokens_
std::vector< edm::EDGetTokenT< edm::ValueMap< JetCorrFactors > > > jetCorrFactorsTokens_
Definition: PATJetUpdater.h:47
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:58
pat
Definition: HeavyIon.h:7
pat::PATJetUpdater::tagInfoLabels_
std::vector< std::string > tagInfoLabels_
Definition: PATJetUpdater.h:57
Jet.h
pat::PATJetUpdater::discriminatorTags_
std::vector< edm::InputTag > discriminatorTags_
Definition: PATJetUpdater.h:51
pat::PATJetUpdater::userDataHelper_
pat::PATUserDataHelper< pat::Jet > userDataHelper_
Definition: PATJetUpdater.h:62
InputTag.h
pat::PATJetUpdater::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: PATJetUpdater.cc:91
pat::PATJetUpdater::jetsToken_
edm::EDGetTokenT< edm::View< reco::Jet > > jetsToken_
Definition: PATJetUpdater.h:44
pat::PATJetUpdater::useUserData_
bool useUserData_
Definition: PATJetUpdater.h:61
pat::PATJetUpdater::tagInfoTags_
std::vector< edm::InputTag > tagInfoTags_
Definition: PATJetUpdater.h:55
PATUserDataHelper.h
pat::PATJetUpdater::addTagInfos_
bool addTagInfos_
Definition: PATJetUpdater.h:54
View.h
ParameterSet.h
pat::PATJetUpdater
Produces pat::Jet's.
Definition: PATJetUpdater.h:33
edm::Event
Definition: Event.h:73
pat::PATJetUpdater::~PATJetUpdater
~PATJetUpdater() override
Definition: PATJetUpdater.cc:89
pat::PATJetUpdater::addBTagInfo_
bool addBTagInfo_
Definition: PATJetUpdater.h:49