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  // Explicitly disable other ways to construct this object
55  FFTJetInterface() = delete;
56  FFTJetInterface(const FFTJetInterface&) = delete;
57  FFTJetInterface& operator=(const FFTJetInterface&) = delete;
58  ~FFTJetInterface() override {}
59 
60  protected:
61  explicit FFTJetInterface(const edm::ParameterSet&);
62 
63  template <class Ptr>
64  void checkConfig(const Ptr& ptr, const char* message) {
65  if (ptr.get() == nullptr)
66  throw cms::Exception("FFTJetBadConfig") << message << std::endl;
67  }
68 
69  void loadInputCollection(const edm::Event&);
70  void discretizeEnergyFlow();
71  double getEventScale() const;
72  bool storeInSinglePrecision() const;
73 
74  const reco::Particle::Point& vertexUsed() const { return vertex_; }
75 
76  // Label for the input collection
78 
79  // Label for the output objects
81 
82  // Jet type to produce
84 
85  // Vertex correction-related stuff
86  const bool doPVCorrection;
87 
88  // Label for the vertices
90 
91  // Try to equalize magnitudes in the energy flow grid?
92  const std::vector<double> etaDependentMagnutideFactors;
93 
94  // Functor for finding anomalous towers
96 
97  // Event data 4-vectors
98  std::vector<fftjetcms::VectorLike> eventData;
99 
100  // Candidate number which corresponds to the item in the "eventData"
101  std::vector<unsigned> candidateIndex;
102 
103  // The energy discretization grid
104  std::unique_ptr<fftjet::Grid2d<fftjetcms::Real> > energyFlow;
105 
106  // The input handle for the collection of candidates
108 
109  private:
111  const double completeEventScale;
113 
116  };
117 } // namespace fftjetcms
118 
119 #endif // RecoJets_FFTJetProducers_FFTJetInterface_h
Handle.h
fftjetcms::FFTJetInterface::FFTJetInterface
FFTJetInterface()=delete
fftjetcms
Definition: AbsPileupCalculator.h:15
fftjetcms::FFTJetInterface::checkConfig
void checkConfig(const Ptr &ptr, const char *message)
Definition: FFTJetInterface.h:64
EDProducer.h
fftjetcms::FFTJetInterface::loadInputCollection
void loadInputCollection(const edm::Event &)
Definition: FFTJetInterface.cc:40
fftjetcms::FFTJetInterface::outputLabel
const std::string outputLabel
Definition: FFTJetInterface.h:80
AnomalousTower
Definition: AnomalousTower.h:7
edm::EDGetTokenT
Definition: EDGetToken.h:33
fftjetcms::FFTJetInterface::inputCollection
edm::Handle< reco::CandidateView > inputCollection
Definition: FFTJetInterface.h:107
fftjetTypedefs.h
fftjetcms::FFTJetInterface::getEventScale
double getEventScale() const
Definition: FFTJetInterface.cc:38
fftjetcms::FFTJetInterface::inputLabel
const edm::InputTag inputLabel
Definition: FFTJetInterface.h:77
fftjetcms::FFTJetInterface::operator=
FFTJetInterface & operator=(const FFTJetInterface &)=delete
JetType.h
edm::Handle
Definition: AssociativeIterator.h:50
fftjetcms::FFTJetInterface::completeEventScale
const double completeEventScale
Definition: FFTJetInterface.h:111
fftjetcms::FFTJetInterface::vertexUsed
const reco::Particle::Point & vertexUsed() const
Definition: FFTJetInterface.h:74
fftjetcms::FFTJetInterface::srcPVsToken
edm::EDGetTokenT< reco::VertexCollection > srcPVsToken
Definition: FFTJetInterface.h:115
fftjetcms::FFTJetInterface::jetType
const JetType jetType
Definition: FFTJetInterface.h:83
CandidateFwd.h
fftjetcms::FFTJetInterface::candidateIndex
std::vector< unsigned > candidateIndex
Definition: FFTJetInterface.h:101
fftjetcms::FFTJetInterface::srcPVs
const edm::InputTag srcPVs
Definition: FFTJetInterface.h:89
fftjetcms::FFTJetInterface::etaDependentMagnutideFactors
const std::vector< double > etaDependentMagnutideFactors
Definition: FFTJetInterface.h:92
fftjetcms::FFTJetInterface
Definition: FFTJetInterface.h:52
Particle.h
AnomalousTower.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
fftjetcms::FFTJetInterface::vertex_
reco::Particle::Point vertex_
Definition: FFTJetInterface.h:112
fftjetcms::FFTJetInterface::energyFlow
std::unique_ptr< fftjet::Grid2d< fftjetcms::Real > > energyFlow
Definition: FFTJetInterface.h:104
fftjetcms::FFTJetInterface::insertCompleteEvent
const bool insertCompleteEvent
Definition: FFTJetInterface.h:110
fftjetcms::FFTJetInterface::storeInSinglePrecision
bool storeInSinglePrecision() const
Definition: FFTJetInterface.cc:15
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
fftjetcms::FFTJetInterface::anomalous
const AnomalousTower anomalous
Definition: FFTJetInterface.h:95
VertexFwd.h
fftjetcms::FFTJetInterface::~FFTJetInterface
~FFTJetInterface() override
Definition: FFTJetInterface.h:58
fftjetcms::FFTJetInterface::eventData
std::vector< fftjetcms::VectorLike > eventData
Definition: FFTJetInterface.h:98
Vertex.h
fftjetcms::JetType
JetType
Definition: JetType.h:7
ParameterSetfwd.h
edm::EDProducer
Definition: EDProducer.h:35
Exception.h
fftjetcms::FFTJetInterface::discretizeEnergyFlow
void discretizeEnergyFlow()
Definition: FFTJetInterface.cc:79
reco::Particle::Point
math::XYZPoint Point
point in the space
Definition: Particle.h:25
fftjetcms::FFTJetInterface::doPVCorrection
const bool doPVCorrection
Definition: FFTJetInterface.h:86
cms::Exception
Definition: Exception.h:70
Candidate.h
edm::Event
Definition: Event.h:73
fftjetcms::FFTJetInterface::inputToken
edm::EDGetTokenT< reco::CandidateView > inputToken
Definition: FFTJetInterface.h:114
edm::InputTag
Definition: InputTag.h:15