Definition at line 55 of file HGCalLayerClusterProducer.cc.
References algo, algoId, hgcalLayerClusters_cff::dEdXweights, detector, doSharing, hgcalLayerClusters_cff::fcPerEle, hgcalLayerClusters_cff::fcPerMip, edm::ParameterSet::getParameter(), reco::CaloCluster::hgcal_em, reco::CaloCluster::hgcal_had, reco::CaloCluster::hgcal_mixed, hits_bh_token, hits_ee_token, hits_fh_token, kappa, hgcalLayerClusters_cff::noiseMip, hgcalDigitizer_cfi::nonAgedNoises, particleFlowClusterECALUncorrected_cfi::showerSigma, hgcalLayerClusters_cff::thicknessCorrection, and verbosity.
61 std::vector<double> vecDeltas = ps.
getParameter<std::vector<double> >(
"deltac");
69 bool dependSensor = ps.
getParameter<
bool>(
"dependSensor");
91 algo = std::make_unique<HGCalImagingAlgo>(vecDeltas,
kappa, ecut,
showerSigma,
algoId, dependSensor,
dEdXweights,
thicknessCorrection,
fcPerMip,
fcPerEle,
nonAgedNoises,
noiseMip,
verbosity);
93 algo = std::make_unique<HGCalImagingAlgo>(vecDeltas,
kappa, ecut,
algoId, dependSensor,
dEdXweights,
thicknessCorrection,
fcPerMip,
fcPerEle,
nonAgedNoises,
noiseMip,
verbosity);
97 produces<std::vector<reco::BasicCluster> >();
98 produces<std::vector<reco::BasicCluster> >(
"sharing");
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
reco::CaloCluster::AlgoId algoId
HGCalImagingAlgo::VerbosityLevel verbosity
edm::EDGetTokenT< HGCRecHitCollection > hits_bh_token
edm::EDGetTokenT< HGCRecHitCollection > hits_ee_token
edm::EDGetTokenT< HGCRecHitCollection > hits_fh_token
static const G4double kappa
std::unique_ptr< HGCalImagingAlgo > algo
HGCalLayerClusterProducer::~HGCalLayerClusterProducer |
( |
| ) |
|
|
inlineoverride |
Definition at line 103 of file HGCalLayerClusterProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~HGCalLayerClusterProducer().
107 desc.
add<
bool>(
"doSharing",
false);
108 desc.
add<std::vector<double>>(
"deltac", {
113 desc.
add<
bool>(
"dependSensor",
true);
114 desc.
add<
double>(
"ecut", 3.0);
115 desc.add<
double>(
"kappa", 9.0);
116 desc.addUntracked<
unsigned int>(
"verbosity", 3);
120 desc.add<std::vector<double>>(
"dEdXweights",{});
121 desc.add<std::vector<double>>(
"thicknessCorrection",{});
122 desc.add<std::vector<double>>(
"fcPerMip",{});
123 desc.add<
double>(
"fcPerEle",0.0);
125 descNestedNoises.
add<std::vector<double> >(
"values", {});
128 descNestedNoiseMIP.
add<
double>(
"value", 0 );
130 descriptions.
add(
"hgcalLayerClusters", desc);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition at line 135 of file HGCalLayerClusterProducer.cc.
References algo, algoId, fastPrimaryVertexProducer_cfi::clusters, doSharing, edm::Event::getByToken(), reco::CaloCluster::hgcal_em, reco::CaloCluster::hgcal_had, reco::CaloCluster::hgcal_mixed, hits_bh_token, hits_ee_token, hits_fh_token, mps_fire::i, edm::HandleBase::isValid(), eostools::move(), edm::PtrVector< T >::push_back(), and edm::Event::put().
Referenced by ~HGCalLayerClusterProducer().
143 std::unique_ptr<std::vector<reco::BasicCluster> >
clusters(
new std::vector<reco::BasicCluster> ),
144 clusters_sharing(
new std::vector<reco::BasicCluster> );
148 algo->getEventSetup(es);
153 algo->populate(*ee_hits);
159 algo->populate(*fh_hits);
160 }
else if ( bh_hits.
isValid() ) {
161 algo->populate(*bh_hits);
166 algo->populate(*ee_hits);
168 algo->populate(*fh_hits);
170 algo->populate(*bh_hits);
175 algo->makeClusters();
178 *clusters_sharing =
algo->getClusters(
true);
181 auto clusterHandleSharing = evt.
put(
std::move(clusters_sharing),
"sharing");
183 for(
unsigned i = 0;
i < clusterHandle->size(); ++
i ) {
189 for(
unsigned i = 0;
i < clusterHandleSharing->size(); ++
i ) {
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
reco::CaloCluster::AlgoId algoId
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void push_back(Ptr< T > const &iPtr)
edm::EDGetTokenT< HGCRecHitCollection > hits_bh_token
edm::EDGetTokenT< HGCRecHitCollection > hits_ee_token
edm::EDGetTokenT< HGCRecHitCollection > hits_fh_token
std::unique_ptr< HGCalImagingAlgo > algo
std::string HGCalLayerClusterProducer::detector |
|
private |
bool HGCalLayerClusterProducer::doSharing |
|
private |