46 bool dynamicPhiRoad = ps.
getParameter<
bool>(
"dynamicPhiRoad");
49 endcapEtaSearchRoad_, endcapPhiSearchRoad_,
50 dynamicPhiRoad, seedTransverseEnergyThreshold_);
68 double averEnergy = 0.;
69 std::ostringstream str;
70 str <<
"Multi5x5SuperClusterProducer::endJob()\n"
72 <<
" total energy of all clusters: " <<
totalE <<
"\n";
75 str <<
" average SuperCluster energy = " << averEnergy <<
"\n";
77 edm::LogInfo(
"Multi5x5SuperClusterProducerInfo") << str.str() <<
"\n";
104 std::auto_ptr<reco::SuperClusterCollection>
108 reco::SuperClusterCollection::iterator it;
109 for (it = superclusters_ap->begin(); it != superclusters_ap->end(); it++)
116 evt.
put(superclusters_ap, superclusterCollection);
118 delete clusterPtrVector_p;
127 evt.
getByLabel(clusterProducer_, clusterCollection_, bccHandle);
130 edm::LogError(
"Multi5x5SuperClusterProducerError") <<
"could not get a handle on the BasicCluster Collection!";
131 clusterPtrVector_p = 0;
136 edm::LogError(
"Multi5x5SuperClusterProducerError") <<
"Error! can't get the product " << clusterCollection_.c_str();
137 clusterPtrVector_p = 0;
141 for (
unsigned int i = 0;
i < clusterCollection_p->size();
i++)
T getParameter(std::string const &) const
float barrelPhiSearchRoad_
std::string barrelSuperclusterCollection_
std::string barrelClusterCollection_
void produceSuperclustersForECALPart(edm::Event &evt, std::string clusterProducer, std::string clusterCollection, std::string superclusterColection)
std::string endcapClusterProducer_
void push_back(Ptr< T > const &iPtr)
reco::SuperClusterCollection makeSuperClusters(reco::CaloClusterPtrVector &clusters)
float endcapEtaSearchRoad_
virtual void produce(edm::Event &, const edm::EventSetup &)
~Multi5x5SuperClusterProducer()
std::string endcapClusterCollection_
Multi5x5BremRecoveryClusterAlgo * bremAlgo_p
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
float seedTransverseEnergyThreshold_
Multi5x5SuperClusterProducer(const edm::ParameterSet &ps)
float endcapPhiSearchRoad_
edm::PtrVector< CaloCluster > CaloClusterPtrVector
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
float barrelEtaSearchRoad_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
T const * product() const
std::string barrelClusterProducer_
void getClusterPtrVector(edm::Event &evt, std::string clusterProducer_, std::string clusterCollection_, reco::CaloClusterPtrVector *)
std::string endcapSuperclusterCollection_