CMS 3D CMS Logo

FFTJetInterface.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FFTJetProducers
4 // Class: FFTJetInterface
5 //
11 //
12 // Original Author: Igor Volobouev
13 // Created: June 29 2010
14 //
15 //
16 
17 #ifndef RecoJets_FFTJetProducers_FFTJetInterface_h
18 #define RecoJets_FFTJetProducers_FFTJetInterface_h
19 
20 #include <memory>
21 #include <vector>
22 #include <cassert>
23 
24 // FFTJet headers
25 #include "fftjet/Grid2d.hh"
26 
27 // framework include files
32 
34 
36 
40 
43 
44 // local FFTJet-related definitions
47 
48 //
49 // class declaration
50 //
51 namespace fftjetcms {
53  public:
54  ~FFTJetInterface() override {}
55 
56  protected:
57  explicit FFTJetInterface(const edm::ParameterSet&);
58 
59  template <class Ptr>
60  void checkConfig(const Ptr& ptr, const char* message) {
61  if (ptr.get() == nullptr)
62  throw cms::Exception("FFTJetBadConfig") << message << std::endl;
63  }
64 
65  void loadInputCollection(const edm::Event&);
66  void discretizeEnergyFlow();
67  double getEventScale() const;
68  bool storeInSinglePrecision() const;
69 
70  const reco::Particle::Point& vertexUsed() const { return vertex_; }
71 
72  // Label for the input collection
74 
75  // Label for the output objects
77 
78  // Jet type to produce
80 
81  // Vertex correction-related stuff
82  const bool doPVCorrection;
83 
84  // Label for the vertices
86 
87  // Try to equalize magnitudes in the energy flow grid?
88  const std::vector<double> etaDependentMagnutideFactors;
89 
90  // Functor for finding anomalous towers
92 
93  // Event data 4-vectors
94  std::vector<fftjetcms::VectorLike> eventData;
95 
96  // Candidate number which corresponds to the item in the "eventData"
97  std::vector<unsigned> candidateIndex;
98 
99  // The energy discretization grid
100  std::unique_ptr<fftjet::Grid2d<fftjetcms::Real> > energyFlow;
101 
102  // The input handle for the collection of candidates
104 
105  private:
106  // Explicitly disable other ways to construct this object
107  FFTJetInterface() = delete;
108  FFTJetInterface(const FFTJetInterface&) = delete;
109  FFTJetInterface& operator=(const FFTJetInterface&) = delete;
110 
112  const double completeEventScale;
114 
117  };
118 } // namespace fftjetcms
119 
120 #endif // RecoJets_FFTJetProducers_FFTJetInterface_h
edm::EDGetTokenT< reco::CandidateView > inputToken
const edm::InputTag inputLabel
edm::Handle< reco::CandidateView > inputCollection
FFTJetInterface & operator=(const FFTJetInterface &)=delete
const reco::Particle::Point & vertexUsed() const
void loadInputCollection(const edm::Event &)
const edm::InputTag srcPVs
void checkConfig(const Ptr &ptr, const char *message)
std::vector< unsigned > candidateIndex
reco::Particle::Point vertex_
std::unique_ptr< fftjet::Grid2d< fftjetcms::Real > > energyFlow
const std::vector< double > etaDependentMagnutideFactors
edm::EDGetTokenT< reco::VertexCollection > srcPVsToken
math::XYZPoint Point
point in the space
Definition: Particle.h:25
const AnomalousTower anomalous
bool storeInSinglePrecision() const
std::vector< fftjetcms::VectorLike > eventData
const std::string outputLabel