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++) {
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;
virtual double energy() const GCC11_FINAL
energy
~CaloTowerCandidateCreator()
destructor
CaloTowerCandidateCreator(const edm::ParameterSet &)
constructor from parameter set
double mEtThreshold
ET threshold.
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
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
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
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
double mEThreshold
E threshold.