51 if (verbosityString ==
"INFO") {
52 std::cout <<
"Barrel BC Energy threshold = "<<barrelBCEnergyThreshold_<<std::endl;
53 std::cout <<
"Endcap BC Energy threshold = "<<endcapBCEnergyThreshold_<<std::endl;
57 endcapEtaSearchRoad_, endcapPhiSearchRoad_,
58 seedTransverseEnergyThreshold_,
59 barrelBCEnergyThreshold_,
60 endcapBCEnergyThreshold_,
83 double averEnergy = 0.;
84 std::ostringstream
str;
85 str <<
"HiSuperClusterProducer::endJob()\n" 87 <<
" total energy of all clusters: " <<
totalE <<
"\n";
90 str <<
" average SuperCluster energy = " << averEnergy <<
"\n";
92 edm::LogInfo(
"HiSuperClusterProducerInfo") << str.str() <<
"\n";
121 reco::SuperClusterCollection::iterator it;
122 for (it = superclusters_ap->begin(); it != superclusters_ap->end(); it++)
129 evt.
put(
std::move(superclusters_ap), superclusterCollection);
131 delete clusterPtrVector_p;
143 edm::LogError(
"HiSuperClusterProducerError") <<
"could not get a handle on the BasicCluster Collection!";
144 clusterPtrVector_p =
nullptr;
148 for (
unsigned int i = 0;
i < clusterCollection_p->size();
i++)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::BasicClusterCollection > ebClustersToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
float seedTransverseEnergyThreshold_
void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void push_back(Ptr< T > const &iPtr)
edm::EDGetTokenT< reco::BasicClusterCollection > eeClustersToken_
float endcapPhiSearchRoad_
reco::SuperClusterCollection makeSuperClusters(reco::CaloClusterPtrVector &clusters)
void produceSuperclustersForECALPart(edm::Event &evt, const edm::EDGetTokenT< reco::BasicClusterCollection > &clustersToken, std::string superclusterColection)
~HiSuperClusterProducer() override
void getClusterPtrVector(edm::Event &evt, const edm::EDGetTokenT< reco::BasicClusterCollection > &clustersToken, reco::CaloClusterPtrVector *)
edm::PtrVector< CaloCluster > CaloClusterPtrVector
float barrelEtaSearchRoad_
HiSuperClusterProducer(const edm::ParameterSet &ps)
float endcapEtaSearchRoad_
float barrelBCEnergyThreshold_
HiBremRecoveryClusterAlgo::VerbosityLevel verbosity
T const * product() const
std::string endcapSuperclusterCollection_
float endcapBCEnergyThreshold_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
float barrelPhiSearchRoad_
std::string barrelSuperclusterCollection_
HiBremRecoveryClusterAlgo * bremAlgo_p