27 std::string verbosityString = ps.
getParameter<std::string>(
"VerbosityLevel");
53 endcapEtaSearchRoad_, endcapPhiSearchRoad_,
54 seedTransverseEnergyThreshold_,
verbosity);
72 double averEnergy = 0.;
73 std::ostringstream str;
74 str <<
"SuperClusterProducer::endJob()\n"
76 <<
" total energy of all clusters: " <<
totalE <<
"\n";
79 str <<
" average SuperCluster energy = " << averEnergy <<
"\n";
81 edm::LogInfo(
"SuperClusterProducerInfo") << str.str() <<
"\n";
99 std::string clusterProducer,
100 std::string clusterCollection,
108 std::auto_ptr<reco::SuperClusterCollection>
112 reco::SuperClusterCollection::iterator it;
113 for (it = superclusters_ap->begin(); it != superclusters_ap->end(); it++)
120 evt.
put(superclusters_ap, superclusterCollection);
122 delete clusterPtrVector_p;
130 evt.
getByLabel(clusterProducer_, clusterCollection_, bccHandle);
133 edm::LogError(
"SuperClusterProducerError") <<
"could not get a handle on the BasicCluster Collection!";
134 edm::LogError(
"SuperClusterProducerError") <<
"Error! can't get the product " << clusterCollection_.c_str();
135 clusterPtrVector_p = 0;
139 for (
unsigned int i = 0;
i < clusterCollection_p->size();
i++)
T getParameter(std::string const &) const
float endcapPhiSearchRoad_
tuple superclusterCollection
std::string barrelClusterProducer_
void push_back(Ptr< T > const &iPtr)
void getClusterPtrVector(edm::Event &evt, std::string clusterProducer_, std::string clusterCollection_, reco::CaloClusterPtrVector *)
reco::SuperClusterCollection makeSuperClusters(reco::CaloClusterPtrVector &clusters)
float barrelEtaSearchRoad_
float seedTransverseEnergyThreshold_
BremRecoveryClusterAlgo::VerbosityLevel verbosity
std::string barrelSuperclusterCollection_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
BremRecoveryClusterAlgo * bremAlgo_p
void produceSuperclustersForECALPart(edm::Event &evt, std::string clusterProducer, std::string clusterCollection, std::string superclusterColection)
edm::PtrVector< CaloCluster > CaloClusterPtrVector
SuperClusterProducer(const edm::ParameterSet &ps)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &)
std::string endcapClusterProducer_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
T const * product() const
std::string barrelClusterCollection_
float endcapEtaSearchRoad_
std::string endcapClusterCollection_
float barrelPhiSearchRoad_
std::string endcapSuperclusterCollection_