52 :
mVerbose(p.getUntrackedParameter<int>(
"verbose", 0)),
53 mEtThreshold(p.getParameter<double>(
"minimumEt")),
54 mEThreshold(p.getParameter<double>(
"minimumE")) {
57 produces<CandidateCollection>();
66 auto cands = std::make_unique<CandidateCollection>();
67 cands->reserve(caloTowers->size());
69 for (; idx < caloTowers->size(); idx++) {
70 const CaloTower* cal = &((*caloTowers)[idx]);
72 std::cout <<
"CaloTowerCandidateCreator::produce-> " << idx <<
" tower et/eta/phi/e: " << cal->
et() <<
'/'
73 << cal->
eta() <<
'/' << cal->
phi() <<
'/' << cal->
energy() <<
" is...";
81 std::cout <<
"accepted: pT/eta/phi:" << c->pt() <<
'/' << c->eta() <<
'/' << c->phi() << std::endl;
88 std::cout <<
"CaloTowerCandidateCreator::produce-> " <<
cands->size() <<
" candidates created" << std::endl;
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EventSetup & c
CaloTowerCandidateCreator(const edm::ParameterSet &)
constructor from parameter set
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
double mEtThreshold
ET threshold.
void produce(edm::Event &e, const edm::EventSetup &) override
process one event
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
edm::EDGetTokenT< CaloTowerCollection > tok_src_
token of source collection
T getParameter(std::string const &) const
math::XYZTLorentzVector LorentzVector
Lorentz vector.
mVerbose(fConfig.getUntrackedParameter< bool >("verbose", false))
double et(double vtxZ) const
edm::Ref< CaloTowerCollection > CaloTowerRef
~CaloTowerCandidateCreator() override
destructor
double phi() const final
momentum azimuthal angle
double mEThreshold
E threshold.
double energy() const final
energy
double eta() const final
momentum pseudorapidity