17 inputTagPFClustersECAL_
19 inputTagPFRecHitsECAL_
25 produces<reco::ClusterShapeCollection>(shapesLabel_);
26 produces<reco::PFClusterShapeAssociationCollection>(shapesLabel_);
40 clusterHandle = getClusterCollection(evt);
42 rechitHandle = getRecHitCollection(evt);
52 std::unique_ptr<reco::ClusterShapeCollection>
53 csCollection_ap(csAlgo_p->makeClusterShapes(clusterHandle, rechitHandle,
54 barrelGeo_p, barrelTop_p,
55 endcapGeo_p, endcapTop_p));
59 auto association_ap = std::make_unique<reco::PFClusterShapeAssociationCollection>();
61 for (
unsigned int i = 0;
i < clusterHandle->size();
i++){
81 err<<
"cannot find clusters: "<<inputTagPFClustersECAL_;
82 LogError(
"PFSimParticleProducer")<<err.str()<<endl;
100 err<<
"cannot find rechits: "<<inputTagPFRecHitsECAL_;
101 LogError(
"PFSimParticleProducer")<<err.str()<<endl;
edm::Handle< reco::PFRecHitCollection > getRecHitCollection(edm::Event &evt)
T getParameter(std::string const &) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::Handle< reco::PFClusterCollection > getClusterCollection(edm::Event &evt)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &ev, const edm::EventSetup &es)
~PFClusterShapeProducer()
PFClusterShapeProducer(const edm::ParameterSet &)