8 template<
typename HitCollection>
33 template<
typename HitCollection>
41 size_t size = hits->size();
42 cands->reserve( size );
46 double eta = 0, phi = 0, energy = hit.
energy();
48 p *= ( energy / p.r() );
51 cands->push_back( c );
constexpr float energy() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
reco::modules::CaloRecHitCandidateProducer< ZDCRecHitCollection > ZDCRecHitCandidateProducer
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~CaloRecHitCandidateProducer() override
destructor
edm::EDGetTokenT< HitCollection > srcToken_
source collection tag
RhoEtaPhiVectorD RhoEtaPhiVector
spatial vector with cylindrical internal representation using pseudorapidity
reco::modules::CaloRecHitCandidateProducer< HORecHitCollection > HORecHitCandidateProducer
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
reco::modules::CaloRecHitCandidateProducer< HFRecHitCollection > HFRecHitCandidateProducer
#define DEFINE_FWK_MODULE(type)
def template(fileName, svg, replaceme="REPLACEME")
void setCaloRecHit(const CaloRecHitRef &r)
set CaloRecHit reference
CaloRecHitCandidateProducer(const edm::ParameterSet &cfg)
constructor
reco::modules::CaloRecHitCandidateProducer< HBHERecHitCollection > HBHERecHitCandidateProducer
math::XYZTLorentzVector LorentzVector
Lorentz vector.
void produce(edm::Event &, const edm::EventSetup &) override
process one event