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";
118 std::auto_ptr<reco::SuperClusterCollection>
122 reco::SuperClusterCollection::iterator it;
123 for (it = superclusters_ap->begin(); it != superclusters_ap->end(); it++)
130 evt.
put(superclusters_ap, superclusterCollection);
132 delete clusterPtrVector_p;
144 edm::LogError(
"HiSuperClusterProducerError") <<
"could not get a handle on the BasicCluster Collection!";
145 clusterPtrVector_p = 0;
149 for (
unsigned int i = 0;
i < clusterCollection_p->size();
i++)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::BasicClusterCollection > ebClustersToken_
float seedTransverseEnergyThreshold_
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)
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void produceSuperclustersForECALPart(edm::Event &evt, const edm::EDGetTokenT< reco::BasicClusterCollection > &clustersToken, std::string superclusterColection)
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_
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string barrelSuperclusterCollection_
HiBremRecoveryClusterAlgo * bremAlgo_p
~HiSuperClusterProducer()