CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: FFTJetInterface.h,v 1.2 2010/12/07 00:18:18 igv Exp $
15 //
16 //
17 
18 #ifndef RecoJets_FFTJetProducers_FFTJetInterface_h
19 #define RecoJets_FFTJetProducers_FFTJetInterface_h
20 
21 #include <memory>
22 #include <vector>
23 #include <cassert>
24 
25 // FFTJet headers
26 #include "fftjet/Grid2d.hh"
27 
28 // framework include files
32 
34 
36 
40 
41 // local FFTJet-related definitions
43 
44 //
45 // class declaration
46 //
47 namespace fftjetcms {
49  {
50  public:
51  enum JetType
52  {
53  BASICJET = 0,
59  };
60 
61  virtual ~FFTJetInterface() {}
62 
63  static JetType parse_jet_type(const std::string& name);
64 
65  protected:
66  explicit FFTJetInterface(const edm::ParameterSet&);
67 
68  template<class Ptr>
69  void checkConfig(const Ptr& ptr, const char* message)
70  {
71  if (ptr.get() == NULL)
72  throw cms::Exception("FFTJetBadConfig") << message << std::endl;
73  }
74 
75  void loadInputCollection(const edm::Event&);
76  void discretizeEnergyFlow();
77  double getEventScale() const;
78  bool storeInSinglePrecision() const;
79 
80  const reco::Particle::Point& vertexUsed() const {return vertex_;}
81 
82  // Label for the input collection
84 
85  // Label for the output objects
86  const std::string outputLabel;
87 
88  // Jet type to produce
90 
91  // Vertex correction-related stuff
92  const bool doPVCorrection;
93 
94  // Label for the vertices
96 
97  // Try to equalize magnitudes in the energy flow grid?
98  const std::vector<double> etaDependentMagnutideFactors;
99 
100  // Functor for finding anomalous towers
102 
103  // Event data 4-vectors
104  std::vector<fftjetcms::VectorLike> eventData;
105 
106  // Candidate number which corresponds to the item in the "eventData"
107  std::vector<unsigned> candidateIndex;
108 
109  // The energy discretization grid
110  std::auto_ptr<fftjet::Grid2d<fftjetcms::Real> > energyFlow;
111 
112  // The input handle for the collection of candidates
114 
115  private:
116  // Explicitly disable other ways to construct this object
117  FFTJetInterface();
120 
122  const double completeEventScale;
124  };
125 }
126 
127 #endif // RecoJets_FFTJetProducers_FFTJetInterface_h
std::auto_ptr< fftjet::Grid2d< fftjetcms::Real > > energyFlow
const edm::InputTag inputLabel
edm::Handle< reco::CandidateView > inputCollection
const reco::Particle::Point & vertexUsed() const
void loadInputCollection(const edm::Event &)
const edm::InputTag srcPVs
#define NULL
Definition: scimark2.h:8
void checkConfig(const Ptr &ptr, const char *message)
std::vector< unsigned > candidateIndex
reco::Particle::Point vertex_
const std::vector< double > etaDependentMagnutideFactors
math::XYZPoint Point
point in the space
Definition: Particle.h:29
const AnomalousTower anomalous
bool storeInSinglePrecision() const
static JetType parse_jet_type(const std::string &name)
FFTJetInterface & operator=(const FFTJetInterface &)
std::vector< fftjetcms::VectorLike > eventData
const std::string outputLabel