66 : endcapSuperclusterPut_{produces<reco::SuperClusterCollection>(
68 barrelSuperclusterPut_{
69 produces<reco::SuperClusterCollection>(ps.getParameter<
std::string>(
"barrelSuperclusterCollection"))},
70 eeClustersToken_{consumes<reco::BasicClusterCollection>(
72 ps.getParameter<
std::string>(
"endcapClusterCollection")))},
73 ebClustersToken_{consumes<reco::BasicClusterCollection>(
75 ps.getParameter<
std::string>(
"barrelClusterCollection")))},
76 barrelEtaSearchRoad_{
float(ps.getParameter<
double>(
"barrelEtaSearchRoad"))},
77 barrelPhiSearchRoad_{
float(ps.getParameter<
double>(
"barrelPhiSearchRoad"))},
78 endcapEtaSearchRoad_{
float(ps.getParameter<
double>(
"endcapEtaSearchRoad"))},
79 endcapPhiSearchRoad_{
float(ps.getParameter<
double>(
"endcapPhiSearchRoad"))},
80 seedTransverseEnergyThreshold_{
float(ps.getParameter<
double>(
"seedTransverseEnergyThreshold"))},
81 barrelBCEnergyThreshold_{
float(ps.getParameter<
double>(
"barrelBCEnergyThreshold"))},
82 endcapBCEnergyThreshold_{
float(ps.getParameter<
double>(
"endcapBCEnergyThreshold"))},
83 doBarrel_{ps.getParameter<
bool>(
"doBarrel")},
84 doEndcaps_{ps.getParameter<
bool>(
"doEndcaps")}
90 if (verbosityString ==
"DEBUG")
92 else if (verbosityString ==
"WARNING")
94 else if (verbosityString ==
"INFO")
99 if (verbosityString ==
"INFO") {
100 std::cout <<
"Barrel BC Energy threshold = " << barrelBCEnergyThreshold_ << std::endl;
101 std::cout <<
"Endcap BC Energy threshold = " << endcapBCEnergyThreshold_ << std::endl;
104 bremAlgo_p = std::make_unique<HiBremRecoveryClusterAlgo>(barrelEtaSearchRoad_,
105 barrelPhiSearchRoad_,
106 endcapEtaSearchRoad_,
107 endcapPhiSearchRoad_,
108 seedTransverseEnergyThreshold_,
109 barrelBCEnergyThreshold_,
110 endcapBCEnergyThreshold_,
115 double averEnergy = 0.;
116 std::ostringstream
str;
117 str <<
"HiSuperClusterProducer::endJob()\n" 118 <<
" total # reconstructed super clusters: " <<
noSuperClusters <<
"\n" 119 <<
" total energy of all clusters: " <<
totalE <<
"\n";
122 str <<
" average SuperCluster energy = " << averEnergy <<
"\n";
147 for (
auto const& cluster : superclusters_ap) {
148 totalE += cluster.energy();
162 edm::LogError(
"HiSuperClusterProducerError") <<
"could not get a handle on the BasicCluster Collection!";
163 clusterPtrVector_p =
nullptr;
167 for (
unsigned int i = 0;
i < clusterCollection_p->size();
i++) {
std::unique_ptr< HiBremRecoveryClusterAlgo > bremAlgo_p
void produceSuperclustersForECALPart(edm::Event &evt, const edm::EDGetTokenT< reco::BasicClusterCollection > &clustersToken, edm::EDPutTokenT< reco::SuperClusterCollection > const &putToken)
T getParameter(std::string const &) const
const edm::EDPutTokenT< reco::SuperClusterCollection > endcapSuperclusterPut_
void produce(edm::Event &, const edm::EventSetup &) override
const edm::EDGetTokenT< reco::BasicClusterCollection > ebClustersToken_
const float barrelBCEnergyThreshold_
void outputValidationInfo(reco::SuperClusterCollection &superclusterCollection)
void push_back(Ptr< T > const &iPtr)
T const * product() const
const float endcapPhiSearchRoad_
const float seedTransverseEnergyThreshold_
Log< level::Error, false > LogError
const float barrelEtaSearchRoad_
const float barrelPhiSearchRoad_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
void getClusterPtrVector(edm::Event &evt, const edm::EDGetTokenT< reco::BasicClusterCollection > &clustersToken, reco::CaloClusterPtrVector *)
#define DEFINE_FWK_MODULE(type)
HiSuperClusterProducer(const edm::ParameterSet &ps)
const edm::EDGetTokenT< reco::BasicClusterCollection > eeClustersToken_
Log< level::Info, false > LogInfo
const edm::EDPutTokenT< reco::SuperClusterCollection > barrelSuperclusterPut_
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&... args)
puts a new product
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
const float endcapEtaSearchRoad_
const float endcapBCEnergyThreshold_