18 mVerbose (p.getUntrackedParameter<int> (
"verbose", 0)),
19 mSource (p.getParameter<edm::
InputTag> (
"src")),
20 mEtThreshold (p.getParameter<double> (
"minimumEt")),
21 mEThreshold (p.getParameter<double> (
"minimumE"))
23 produces<CandidateCollection>();
34 cands->reserve( caloTowers->size() );
36 for (; idx < caloTowers->size (); idx++) {
37 const CaloTower* cal = &((*caloTowers) [idx]);
39 std::cout <<
"CaloTowerCandidateCreator::produce-> " << idx <<
" tower et/eta/phi/e: "
40 << cal->
et() <<
'/' << cal->
eta() <<
'/' << cal->
phi() <<
'/' << cal->
energy() <<
" is...";
47 cands->push_back( c );
48 if (
mVerbose >= 2)
std::cout <<
"accepted: pT/eta/phi:" << c->pt() <<
'/' << c->eta() <<
'/' << c->phi() <<std::endl;
55 std::cout <<
"CaloTowerCandidateCreator::produce-> " << cands->size () <<
" candidates created" << std::endl;
~CaloTowerCandidateCreator()
destructor
CaloTowerCandidateCreator(const edm::ParameterSet &)
constructor from parameter set
virtual double eta() const
momentum pseudorapidity
double mEtThreshold
ET threshold.
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
virtual double energy() const
energy
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::InputTag mSource
label of source collection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
math::XYZTLorentzVector LorentzVector
Lorentz vector.
void produce(edm::Event &e, const edm::EventSetup &)
process one event
double et(double vtxZ) const
edm::Ref< CaloTowerCollection > CaloTowerRef
virtual double phi() const
momentum azimuthal angle
double mEThreshold
E threshold.