16 mVerbose (p.getUntrackedParameter<int> (
"verbose", 0)),
17 mEtThreshold (p.getParameter<double> (
"minimumEt")),
18 mEThreshold (p.getParameter<double> (
"minimumE"))
22 produces<CandidateCollection>();
33 cands->reserve( caloTowers->size() );
35 for (; idx < caloTowers->size (); idx++) {
38 std::cout <<
"CaloTowerCandidateCreator::produce-> " << idx <<
" tower et/eta/phi/e: "
39 << cal->
et() <<
'/' << cal->
eta() <<
'/' << cal->
phi() <<
'/' << cal->
energy() <<
" is...";
46 cands->push_back( c );
47 if (
mVerbose >= 2)
std::cout <<
"accepted: pT/eta/phi:" << c->pt() <<
'/' << c->eta() <<
'/' << c->phi() <<std::endl;
54 std::cout <<
"CaloTowerCandidateCreator::produce-> " << cands->size () <<
" candidates created" << std::endl;
T getParameter(std::string const &) const
~CaloTowerCandidateCreator()
destructor
CaloTowerCandidateCreator(const edm::ParameterSet &)
constructor from parameter set
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual float phi() const
momentum azimuthal angle
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::EDGetTokenT< CaloTowerCollection > tok_src_
token of source collection
virtual float eta() const
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.