11 #define init_param(type, varname) varname (ps.getParameter< type >( #varname ))
23 inputLabel(ps.getParameter<edm::InputTag>(
"src")),
28 etaDependentMagnutideFactors(
29 ps.getParameter<std::vector<double> >(
30 "etaDependentMagnutideFactors")),
34 vertex_(0.0, 0.0, 0.0)
38 <<
"Bad scale for the complete event : must be positive"
64 if (pvCollection->empty())
67 vertex_ = pvCollection->begin()->position();
89 const CaloTower& tower(dynamic_cast<const CaloTower&>(item));
108 const unsigned nInputs =
eventData.size();
110 for (
unsigned i=0;
i<nInputs; ++
i)
113 g.fill(item.Eta(), item.Phi(), item.Et());
120 <<
"ERROR in FFTJetInterface::discretizeEnergyFlow() :"
121 " number of elements in the \"etaDependentMagnutideFactors\""
122 " vector is inconsistent with the grid binning"
const bool doPVCorrection
edm::EDGetTokenT< reco::CandidateView > inputToken
std::auto_ptr< fftjet::Grid2d< fftjetcms::Real > > energyFlow
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
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
virtual float pt() const =0
transverse momentum
std::vector< unsigned > candidateIndex
reco::Particle::Point vertex_
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