32 produces<reco::PFClusterCollection>();
33 produces<reco::PFSuperClusterCollection>();
53 bool foundHO = iEvent.
getByLabel( inputTagPFClustersHO_, clustersHOHandle );
58 err<<
"cannot find clusters: "<<inputTagPFClusters_;
59 LogError(
"PFHCALSuperClusterProducer")<<err.str()<<endl;
67 err<<
"cannot find HO clusters: "<<inputTagPFClustersHO_;
68 LogError(
"PFHCALSuperClusterProducer")<<err.str()<<endl;
74 hcalSuperClusterAlgo_.doClustering( clustersHandle, clustersHOHandle );
77 LogInfo(
"PFHCALSuperClusterProducer")
78 <<
" superclusters --------------------------------- "<<endl
79 <<hcalSuperClusterAlgo_<<endl;
84 auto_ptr< vector<reco::PFCluster> > outClusters( hcalSuperClusterAlgo_.clusters() );
85 auto_ptr< vector<reco::PFSuperCluster> > outSuperClusters( hcalSuperClusterAlgo_.superClusters() );
86 iEvent.
put( outClusters );
87 iEvent.
put( outSuperClusters );
93 hcalSuperClusterAlgo_.write();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
~PFHCALSuperClusterProducer()
PFHCALSuperClusterProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)