41 produces<GEMRecHitCollection>();
47 string theAlgoName = config.
getParameter<
string>(
"recAlgo");
158 event.getByToken(theGEMDigiToken,digis);
162 theAlgo->setES(setup);
166 auto recHitCollection = std::make_unique<GEMRecHitCollection>();
171 for (gemdgIt = digis->begin(); gemdgIt != digis->end();
175 const GEMDetId& gemId = (*gemdgIt).first;
207 theAlgo->reconstruct(*roll, gemId, range, mask);
209 if(recHits.
size() > 0)
210 recHitCollection->put(gemId, recHits.
begin(), recHits.
end());
T getParameter(std::string const &) const
virtual void produce(edm::Event &event, const edm::EventSetup &setup) override
The method which produces the rechits.
GEMRecHitProducer(const edm::ParameterSet &config)
Constructor.
virtual ~GEMRecHitProducer()
Destructor.
def setup(process, global_tag, zero_tesla=False)
const GEMEtaPartition * etaPartition(GEMDetId id) const
Return a GEMEtaPartition given its id.
std::pair< const_iterator, const_iterator > Range
T get(const Candidate &c)
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override