11 #define init_param(type, varname) varname(ps.getParameter<type>(#varname))
24 etaDependentMagnutideFactors(ps.getParameter<std::
vector<double> >(
"etaDependentMagnutideFactors")),
28 vertex_(0.0, 0.0, 0.0) {
30 throw cms::Exception(
"FFTJetBadConfig") <<
"Bad scale for the complete event : must be positive" << std::endl;
45 if (adjustForVertex) {
48 if (pvCollection->empty())
51 vertex_ = pvCollection->begin()->position();
69 if (adjustForVertex) {
86 const unsigned nInputs =
eventData.size();
88 for (
unsigned i = 0;
i < nInputs; ++
i) {
90 g.fill(item.Eta(), item.Phi(), item.Et());
95 throw cms::Exception(
"FFTJetBadConfig") <<
"ERROR in FFTJetInterface::discretizeEnergyFlow() :"
96 " number of elements in the \"etaDependentMagnutideFactors\""
97 " vector is inconsistent with the grid binning"
const bool doPVCorrection
edm::EDGetTokenT< reco::CandidateView > inputToken
const edm::InputTag inputLabel
edm::Handle< reco::CandidateView > inputCollection
const double completeEventScale
math::PtEtaPhiMLorentzVector p4(double vtxZ) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
constexpr bool isNotFinite(T x)
virtual double pt() const =0
transverse momentum
void loadInputCollection(const edm::Event &)
const edm::InputTag srcPVs
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
double getEventScale() const
std::vector< unsigned > candidateIndex
reco::Particle::Point vertex_
std::unique_ptr< fftjet::Grid2d< fftjetcms::Real > > energyFlow
math::XYZTLorentzVector VectorLike
const std::vector< double > etaDependentMagnutideFactors
edm::EDGetTokenT< reco::VertexCollection > srcPVsToken
math::XYZPoint Point
point in the space
const AnomalousTower anomalous
JetType parseJetType(const std::string &name)
bool storeInSinglePrecision() const
void discretizeEnergyFlow()
const bool insertCompleteEvent
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
#define init_param(type, varname)
std::vector< fftjetcms::VectorLike > eventData
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector