42 std::string verbosityString = ps.
getParameter<std::string>(
"VerbosityLevel");
64 double barrelSeedThreshold = ps.
getParameter<
double>(
"BarrelSeedThr");
65 double barrelSingleThreshold = ps.
getParameter<
double>(
"BarrelSingleThr");
66 double barrelSecondThreshold = ps.
getParameter<
double>(
"BarrelSecondThr");
67 double barrelSupThreshold = ps.
getParameter<
double>(
"BarrelSupThr");
68 double endcapSeedThreshold = ps.
getParameter<
double>(
"EndcapSeedThr");
69 double endcapSingleThreshold = ps.
getParameter<
double>(
"EndcapSingleThr");
70 double endcapSecondThreshold = ps.
getParameter<
double>(
"EndcapSecondThr");
71 double endcapSupThreshold = ps.
getParameter<
double>(
"EndcapSupThr");
96 island_p =
new CosmicClusterAlgo(barrelSeedThreshold, barrelSingleThreshold, barrelSecondThreshold, barrelSupThreshold, endcapSeedThreshold, endcapSingleThreshold, endcapSecondThreshold, endcapSupThreshold, posCalculator_,
verbosity);
117 const std::string& hitProducer_,
118 const std::string& hitCollection_)
123 evt.
getByLabel(hitProducer_, hitCollection_, rhcHandle);
126 std::cout <<
"could not get a handle on the EcalRecHitCollection!" << std::endl;
132 edm::LogError(
"CosmicClusterProducerError") <<
"Error! can't get the product " << hitCollection_.c_str() ;
139 const std::string& hitProducer_,
140 const std::string& hitCollection_)
145 evt.
getByLabel(hitProducer_, hitCollection_, rhcHandle);
148 std::cout <<
"could not get a handle on the EcalUncalibratedRecHitCollection!" << std::endl;
154 edm::LogError(
"CosmicClusterProducerError") <<
"Error! can't get the product " << hitCollection_.c_str() ;
164 const std::string& uhitProducer,
165 const std::string& uhitCollection,
166 const std::string& clusterCollection,
167 const std::string& clusterShapeAssociation,
182 std::string clustershapetag;
199 clusters =
island_p->
makeClusters(hitCollection_p, uhitCollection_p, geometry_p, topology_p, geometryES_p, ecalPart);
202 std::vector <reco::ClusterShape> ClusVec;
204 for (
int erg=0;erg<int(clusters.size());++erg){
206 ClusVec.push_back(TestShape);
211 clustersshapes_p->assign(ClusVec.begin(), ClusVec.end());
220 clusters_p->assign(clusters.begin(), clusters.end());
231 for (
unsigned int i = 0;
i < clusHandle->size();
i++){
234 evt.
put(shapeAssocs_p,clusterShapeAssociation);
T getParameter(std::string const &) const
std::string clustershapecollectionEB_
const EcalRecHitCollection * getCollection(edm::Event &evt, const std::string &hitProducer_, const std::string &hitCollection_)
std::string endcapClusterCollection_
std::vector< ClusterShape > ClusterShapeCollection
collection of ClusterShape objects
ClusterShapeAlgo shapeAlgo_
std::string barrelClusterCollection_
CosmicClusterAlgo * island_p
PositionCalc posCalculator_
reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology)
std::string barrelUHitCollection_
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< reco::BasicCluster > makeClusters(const EcalRecHitCollection *hits, const EcalUncalibratedRecHitCollection *uncalibhits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, EcalPart ecalPart, bool regional=false, const std::vector< EcalEtaPhiRegion > ®ions=std::vector< EcalEtaPhiRegion >())
CosmicClusterProducer(const edm::ParameterSet &ps)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::string endcapUHitCollection_
std::string endcapHitCollection_
std::string endcapHitProducer_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
CosmicClusterAlgo::VerbosityLevel verbosity
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const std::string &hitProducer, const std::string &hitCollection, const std::string &uhitProducer, const std::string &uhitCollection, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const CosmicClusterAlgo::EcalPart &ecalPart)
std::string endcapClusterShapeAssociation_
std::string barrelHitProducer_
const EcalUncalibratedRecHitCollection * getUCollection(edm::Event &evt, const std::string &hitProducer_, const std::string &hitCollection_)
std::string clustershapecollectionEE_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
T const * product() const
std::string endcapUHitProducer_
std::string barrelHitCollection_
std::string barrelUHitProducer_
std::string barrelClusterShapeAssociation_