27 std::string verbosityString = ps.
getParameter<std::string>(
"VerbosityLevel");
55 endcapEtaSearchRoad_, endcapPhiSearchRoad_,
56 dynamicPhiRoad, seedTransverseEnergyThreshold_,
verbosity);
74 double averEnergy = 0.;
75 std::ostringstream str;
76 str <<
"Multi5x5SuperClusterProducer::endJob()\n"
78 <<
" total energy of all clusters: " <<
totalE <<
"\n";
81 str <<
" average SuperCluster energy = " << averEnergy <<
"\n";
83 edm::LogInfo(
"Multi5x5SuperClusterProducerInfo") << str.str() <<
"\n";
101 std::string clusterProducer,
102 std::string clusterCollection,
110 std::auto_ptr<reco::SuperClusterCollection>
114 reco::SuperClusterCollection::iterator it;
115 for (it = superclusters_ap->begin(); it != superclusters_ap->end(); it++)
122 evt.
put(superclusters_ap, superclusterCollection);
124 delete clusterPtrVector_p;
133 evt.
getByLabel(clusterProducer_, clusterCollection_, bccHandle);
136 edm::LogError(
"Multi5x5SuperClusterProducerError") <<
"could not get a handle on the BasicCluster Collection!";
137 clusterPtrVector_p = 0;
142 edm::LogError(
"Multi5x5SuperClusterProducerError") <<
"Error! can't get the product " << clusterCollection_.c_str();
143 clusterPtrVector_p = 0;
147 for (
unsigned int i = 0;
i < clusterCollection_p->size();
i++)
T getParameter(std::string const &) const
float barrelPhiSearchRoad_
std::string barrelSuperclusterCollection_
tuple superclusterCollection
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_
Multi5x5BremRecoveryClusterAlgo::VerbosityLevel verbosity
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_