43 std::string debugString = ps.
getParameter<std::string>(
"debugLevel");
64 ps.
getParameter<std::vector<int> >(
"RecHitFlagToBeExcluded"),
70 ps.
getParameter<std::vector<int> >(
"RecHitSeverityToBeExcluded"),
79 bool dynamicPhiRoad = ps.
getParameter<
bool>(
"dynamicPhiRoad");
106 std::cout <<
"could not get a handle on the EcalRecHitCollection!" << std::endl;
116 std::auto_ptr<const CaloSubdetectorTopology> topology;
133 }
else throw(std::runtime_error(
"\n\nHybrid Cluster Producer encountered invalied ecalhitcollection type.\n\n"));
138 std::vector<EcalEtaPhiRegion>());
141 std::cout <<
"Finished clustering - BasicClusterCollection returned to producer..." << std::endl;
145 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
150 std::cout <<
"Basic Clusters now put into event." << std::endl;
158 std::cout <<
"could not get a handle on the BasicClusterCollection!" << std::endl;
163 std::cout <<
"Got the BasicClusterCollection" << std::endl;
166 for (
unsigned int i = 0;
i < clusterCollection.size();
i++){
173 std::cout <<
"Found: " << superClusters.size() <<
" superclusters." << std::endl;
176 superclusters_p->assign(superClusters.begin(), superClusters.end());
181 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
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
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, const EcalSeverityLevelAlgo *sevLv, bool regional=false, const std::vector< EcalEtaPhiRegion > ®ions=std::vector< EcalEtaPhiRegion >())