42 std::string debugString = ps.
getParameter<std::string>(
"debugLevel");
63 ps.
getParameter<std::vector<int> >(
"RecHitFlagToBeExcluded"),
69 ps.
getParameter<std::vector<int> >(
"RecHitSeverityToBeExcluded"),
105 std::cout <<
"could not get a handle on the EcalRecHitCollection!" << std::endl;
115 std::auto_ptr<const CaloSubdetectorTopology> topology;
133 }
else throw(std::runtime_error(
"\n\nHybrid Cluster Producer encountered invalied ecalhitcollection type.\n\n"));
137 hybrid_p->
makeClusters(hit_collection, geometry_p, basicClusters,
false, std::vector<EcalEtaPhiRegion>(),theEcalChStatus);
139 std::cout <<
"Finished clustering - BasicClusterCollection returned to producer..." << std::endl;
143 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
148 std::cout <<
"Basic Clusters now put into event." << std::endl;
156 std::cout <<
"could not get a handle on the BasicClusterCollection!" << std::endl;
161 std::cout <<
"Got the BasicClusterCollection" << std::endl;
164 for (
unsigned int i = 0;
i < clusterCollection.size();
i++){
171 std::cout <<
"Found: " << superClusters.size() <<
" superclusters." << std::endl;
174 superclusters_p->assign(superClusters.begin(), superClusters.end());
179 std::cout <<
"Hybrid Clusters (Basic/Super) added to the Event! :-)" << std::endl;
T getParameter(std::string const &) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
HybridClusterProducer(const edm::ParameterSet &ps)
std::string superclusterCollection_
virtual void produce(edm::Event &, const edm::EventSetup &)
HybridClusterAlgo::DebugLevel debugL
void push_back(Ptr< T > const &iPtr)
std::string basicclusterCollection_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
reco::SuperClusterCollection makeSuperClusters(const reco::CaloClusterPtrVector &)
void setDynamicPhiRoad(const edm::ParameterSet &bremRecoveryPset)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, bool regional=false, const std::vector< EcalEtaPhiRegion > ®ions=std::vector< EcalEtaPhiRegion >(), const EcalChannelStatus *chStatus=new EcalChannelStatus())
std::string hitcollection_
PositionCalc posCalculator_
T const * product() const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
T const * product() const
ESHandle< TrackerGeometry > geometry
HybridClusterAlgo * hybrid_p