Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:10

0001 #ifndef PhysicsToolsPatUtils_RazorComputer_H
0002 #define PhysicsToolsPatUtils_RazorComputer_H
0003 #include "PhysicsTools/UtilAlgos/interface/CachingVariable.h"
0004 #include "DataFormats/PatCandidates/interface/Jet.h"
0005 #include "DataFormats/PatCandidates/interface/MET.h"
0006 
0007 class RazorBox : public CachingVariable {
0008 public:
0009   RazorBox(const CachingVariable::CachingVariableFactoryArg& arg, edm::ConsumesCollector& iC);
0010   ~RazorBox() override {}
0011 
0012   void compute(const edm::Event& iEvent) const;
0013 
0014 private:
0015   double par_;
0016 };
0017 
0018 class RazorComputer : public VariableComputer {
0019 public:
0020   RazorComputer(const CachingVariable::CachingVariableFactoryArg& arg, edm::ConsumesCollector& iC);
0021   ~RazorComputer() override{};
0022 
0023   void compute(const edm::Event& iEvent) const override;
0024 
0025 private:
0026   edm::InputTag jet_;
0027   edm::InputTag met_;
0028   edm::EDGetTokenT<std::vector<pat::Jet>> jetToken_;
0029   edm::EDGetTokenT<std::vector<pat::MET>> metToken_;
0030   float pt_, eta_;
0031 };
0032 
0033 #endif