|
|
◆ ReducedESRecHitCollectionProducer()
ReducedESRecHitCollectionProducer::ReducedESRecHitCollectionProducer |
( |
const edm::ParameterSet & |
pset | ) |
|
Definition at line 63 of file ReducedESRecHitCollectionProducer.cc.
65 scEtThresh_ = ps.getParameter<
double>(
"scEtThreshold");
69 consumes<reco::SuperClusterCollection>(ps.getParameter<
edm::InputTag>(
"EndcapSuperClusterCollection"));
70 caloGeometryToken_ = esConsumes<CaloGeometry, CaloGeometryRecord, edm::Transition::BeginRun>();
76 [
this](
edm::InputTag const&
tag) { return consumes<DetIdCollection>(tag); });
80 [
this](
edm::InputTag const&
tag) { return consumes<DetIdCollection>(tag); });
References caloGeometryToken_, edm::ParameterSet::getParameter(), InputRecHitES_, InputSuperClusterEE_, interestingDetIdCollections_, interestingDetIdCollectionsNotToClean_, OutputLabelES_, scEtThresh_, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, and edm::vector_transform().
◆ ~ReducedESRecHitCollectionProducer()
ReducedESRecHitCollectionProducer::~ReducedESRecHitCollectionProducer |
( |
| ) |
|
|
overridedefault |
◆ beginRun()
◆ collectIds()
void ReducedESRecHitCollectionProducer::collectIds |
( |
const ESDetId |
strip1, |
|
|
const ESDetId |
strip2, |
|
|
const int & |
row = 0 |
|
) |
| |
◆ produce()
Definition at line 99 of file ReducedESRecHitCollectionProducer.cc.
103 auto output = std::make_unique<EcalRecHitCollection>();
110 for (reco::SuperClusterCollection::const_iterator isc = eeSuperClusters->begin(); isc != eeSuperClusters->end();
114 if (fabs(isc->eta()) < 1.65 || fabs(isc->eta()) > 2.6)
120 for (; ibc != isc->clustersEnd(); ++ibc) {
143 edm::LogError(
"MissingInput") <<
"no reason to skip detid from : (" <<
labels.module <<
", "
144 <<
labels.productInstance <<
", " <<
labels.process <<
")" << std::endl;
155 for (
const auto&
hit : *ESRecHits_) {
156 if (
hit.recoFlag() == 1 ||
hit.recoFlag() == 14 ||
157 (
hit.recoFlag() <= 10 &&
hit.recoFlag() >= 5)) {
165 e.getByToken(
token, detId);
169 edm::LogError(
"MissingInput") <<
"no reason to skip detid from : (" <<
labels.module <<
", "
170 <<
labels.productInstance <<
", " <<
labels.process <<
")" << std::endl;
178 for (it = ESRecHits_->begin(); it != ESRecHits_->end(); ++it) {
References edm::EDCollection< T >::begin(), collectedIds_, collectIds(), MillePedeFileConverter_cfg::e, edm::EDCollection< T >::end(), geometry_p, EcalPreshowerGeometry::getClosestCellInPlane(), hit::id, InputRecHitES_, InputSuperClusterEE_, interestingDetIdCollections_, interestingDetIdCollectionsNotToClean_, edm::HandleBase::isValid(), SummaryClient_cfi::labels, eostools::move(), convertSQLitetoXML_cfg::output, OutputLabelES_, point, edm::Handle< T >::product(), scEtThresh_, submitPVValidationJobs::t, and unpackBuffers-CaloStage2::token.
◆ caloGeometryToken_
◆ collectedIds_
std::set<DetId> ReducedESRecHitCollectionProducer::collectedIds_ |
|
private |
◆ geometry_p
◆ InputRecHitES_
◆ InputSuperClusterEE_
◆ interestingDetIdCollections_
◆ interestingDetIdCollectionsNotToClean_
◆ OutputLabelES_
std::string ReducedESRecHitCollectionProducer::OutputLabelES_ |
|
private |
◆ scEtThresh_
double ReducedESRecHitCollectionProducer::scEtThresh_ |
|
private |
◆ topology_p
edm::EDGetTokenT< ESRecHitCollection > InputRecHitES_
const_iterator begin() const
std::vector< EcalRecHit >::const_iterator const_iterator
T const * product() const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
void collectIds(const ESDetId strip1, const ESDetId strip2, const int &row=0)
edm::EDGetTokenT< reco::SuperClusterCollection > InputSuperClusterEE_
void setHome(const T &startingPoint)
set the starting position
std::unique_ptr< CaloSubdetectorTopology > topology_p
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
virtual DetId getClosestCellInPlane(const GlobalPoint &r, int plane) const
const EcalPreshowerGeometry * geometry_p
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Log< level::Error, false > LogError
std::vector< edm::EDGetTokenT< DetIdCollection > > interestingDetIdCollectionsNotToClean_
std::vector< edm::EDGetTokenT< DetIdCollection > > interestingDetIdCollections_
std::set< DetId > collectedIds_
std::string OutputLabelES_
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
const_iterator end() const