Go to the documentation of this file.
15 : mVerbose(
p.getUntrackedParameter<
int>(
"verbose", 0)),
16 mEtThreshold(
p.getParameter<double>(
"minimumEt")),
17 mEThreshold(
p.getParameter<double>(
"minimumE")) {
20 produces<CandidateCollection>();
29 auto cands = std::make_unique<CandidateCollection>();
35 std::cout <<
"CaloTowerCandidateCreator::produce-> " <<
idx <<
" tower et/eta/phi/e: " << cal->
et() <<
'/'
36 << cal->
eta() <<
'/' << cal->
phi() <<
'/' << cal->
energy() <<
" is...";
44 std::cout <<
"accepted: pT/eta/phi:" <<
c->pt() <<
'/' <<
c->eta() <<
'/' <<
c->phi() << std::endl;
51 std::cout <<
"CaloTowerCandidateCreator::produce-> " <<
cands->size() <<
" candidates created" << std::endl;
double mEtThreshold
ET threshold.
void produce(edm::Event &e, const edm::EventSetup &) override
process one event
~CaloTowerCandidateCreator() override
destructor
CaloTowerCandidateCreator(const edm::ParameterSet &)
constructor from parameter set
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double eta() const final
momentum pseudorapidity
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
double et(double vtxZ) const
double phi() const final
momentum azimuthal angle
edm::Ref< CaloTowerCollection > CaloTowerRef
double energy() const final
energy
double mEThreshold
E threshold.
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
math::XYZTLorentzVector LorentzVector
Lorentz vector.
edm::EDGetTokenT< CaloTowerCollection > tok_src_
token of source collection