36 ps.
getParameter<std::vector<edm::InputTag>>(
"interestingDetIds"),
38 return consumes<DetIdCollection>(tag);
44 { return consumes<DetIdCollection>(tag); }
62 "could not cast the subdet geometry to preshower geometry";
75 auto output = std::make_unique<EcalRecHitCollection>();
82 for (reco::SuperClusterCollection::const_iterator isc = eeSuperClusters->begin(); isc != eeSuperClusters->end(); ++isc) {
85 if (fabs(isc->eta()) < 1.65 || fabs(isc->eta()) > 2.6)
continue;
90 for ( ; ibc != isc->clustersEnd(); ++ibc ) {
121 << labels.
process <<
")" << std::endl;
133 for(
const auto&
hit : *ESRecHits_) {
134 if(
hit.recoFlag()==1 ||
hit.recoFlag()==14 || (
hit.recoFlag()<=10 &&
hit.recoFlag()>=5)){
148 << labels.
process <<
")" << std::endl;
157 for (it = ESRecHits_->begin(); it != ESRecHits_->end(); ++it) {
173 map<DetId,const EcalRecHit*>::iterator it;
174 map<DetId, int>::iterator itu;
190 if (strip2 !=
ESDetId(0)) strip2 = theESNav2.
east();
191 }
else if (row == -1) {
193 if (strip2 !=
ESDetId(0)) strip2 = theESNav2.
west();
202 for (
int i=0;
i<15; ++
i) {
203 next = theESNav1.
east();
215 for (
int i=0;
i<15; ++
i) {
216 next = theESNav1.
west();
232 for (
int i=0;
i<15; ++
i) {
233 next = theESNav2.
north();
245 for (
int i=0;
i<15; ++
i) {
246 next = theESNav2.
south();
T getParameter(std::string const &) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual void beginRun(edm::Run const &, const edm::EventSetup &) override final
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const_iterator end() const
std::vector< edm::EDGetTokenT< DetIdCollection > > interestingDetIdCollectionsNotToClean_
std::vector< edm::EDGetTokenT< DetIdCollection > > interestingDetIdCollections_
std::vector< EcalRecHit >::const_iterator const_iterator
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 >
void collectIds(const ESDetId strip1, const ESDetId strip2, const int &row=0)
void setHome(const T &startingPoint)
set the starting position
std::string OutputLabelES_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
virtual ~ReducedESRecHitCollectionProducer()
T west() const
move the navigator west
virtual DetId getClosestCellInPlane(const GlobalPoint &r, int plane) const
T south() const
move the navigator south
T east() const
move the navigator east
void home() const
move the navigator back to the starting point
const_iterator begin() const
edm::EDGetTokenT< ESRecHitCollection > InputRecHitES_
void produce(edm::Event &e, const edm::EventSetup &c) override
edm::EDGetTokenT< reco::SuperClusterCollection > InputSuperClusterEE_
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
ESHandle< TrackerGeometry > geometry
char const * productInstance
std::set< DetId > collectedIds_
T north() const
move the navigator north
const EcalPreshowerGeometry * geometry_p
ReducedESRecHitCollectionProducer(const edm::ParameterSet &pset)
*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