File indexing completed on 2024-04-06 12:23:26
0001 #ifndef PhysicsTools_Heppy_FSRWeightAlgo_h
0002 #define PhysicsTools_Heppy_FSRWeightAlgo_h
0003
0004 #include "DataFormats/HepMCCandidate/interface/GenParticle.h"
0005
0006 namespace heppy {
0007
0008 class FSRWeightAlgo {
0009 public:
0010 FSRWeightAlgo() {}
0011 virtual ~FSRWeightAlgo() {}
0012 void addGenParticle(const reco::GenParticle& gen) { genParticles_.push_back(gen); }
0013 void clear() { genParticles_.clear(); }
0014 double weight() const;
0015
0016 private:
0017 double alphaRatio(double) const;
0018
0019 std::vector<reco::GenParticle> genParticles_;
0020 };
0021 }
0022 #endif