57 if (verbosityString ==
"INFO") {
58 std::cout <<
"Barrel BC Energy threshold = "<<barrelBCEnergyThreshold_<<std::endl;
59 std::cout <<
"Endcap BC Energy threshold = "<<endcapBCEnergyThreshold_<<std::endl;
63 endcapEtaSearchRoad_, endcapPhiSearchRoad_,
64 seedTransverseEnergyThreshold_,
65 barrelBCEnergyThreshold_,
66 endcapBCEnergyThreshold_,
84 double averEnergy = 0.;
85 std::ostringstream str;
86 str <<
"HiSuperClusterProducer::endJob()\n"
88 <<
" total energy of all clusters: " <<
totalE <<
"\n";
91 str <<
" average SuperCluster energy = " << averEnergy <<
"\n";
93 edm::LogInfo(
"HiSuperClusterProducerInfo") << str.str() <<
"\n";
120 std::auto_ptr<reco::SuperClusterCollection>
124 reco::SuperClusterCollection::iterator it;
125 for (it = superclusters_ap->begin(); it != superclusters_ap->end(); it++)
132 evt.
put(superclusters_ap, superclusterCollection);
134 delete clusterPtrVector_p;
142 evt.
getByLabel(clusterProducer_, clusterCollection_, bccHandle);
145 edm::LogError(
"HiSuperClusterProducerError") <<
"could not get a handle on the BasicCluster Collection!";
146 edm::LogError(
"HiSuperClusterProducerError") <<
"Error! can't get the product " << clusterCollection_.c_str();
147 clusterPtrVector_p = 0;
151 for (
unsigned int i = 0;
i < clusterCollection_p->size();
i++)
T getParameter(std::string const &) const
float seedTransverseEnergyThreshold_
void getClusterPtrVector(edm::Event &evt, std::string clusterProducer_, std::string clusterCollection_, reco::CaloClusterPtrVector *)
#define DEFINE_FWK_MODULE(type)
void push_back(Ptr< T > const &iPtr)
std::string endcapClusterCollection_
float endcapPhiSearchRoad_
reco::SuperClusterCollection makeSuperClusters(reco::CaloClusterPtrVector &clusters)
std::string barrelClusterCollection_
void produceSuperclustersForECALPart(edm::Event &evt, std::string clusterProducer, std::string clusterCollection, std::string superclusterColection)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::PtrVector< CaloCluster > CaloClusterPtrVector
float barrelEtaSearchRoad_
HiSuperClusterProducer(const edm::ParameterSet &ps)
float endcapEtaSearchRoad_
float barrelBCEnergyThreshold_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string endcapClusterProducer_
HiBremRecoveryClusterAlgo::VerbosityLevel verbosity
std::string barrelClusterProducer_
std::string endcapSuperclusterCollection_
float endcapBCEnergyThreshold_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
T const * product() const
float barrelPhiSearchRoad_
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string barrelSuperclusterCollection_
HiBremRecoveryClusterAlgo * bremAlgo_p
~HiSuperClusterProducer()