41 produces<GEMRecHitCollection>();
47 string theAlgoName = config.
getParameter<
string>(
"recAlgo");
158 event.getByToken(theGEMDigiToken,digis);
162 theAlgo->setES(setup);
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());
213 event.put(recHitCollection);
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.
edm::RangeMap< GEMDetId, edm::OwnVector< GEMRecHit, edm::ClonePolicy< GEMRecHit > >, edm::ClonePolicy< GEMRecHit > > GEMRecHitCollection
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::pair< const_iterator, const_iterator > Range
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
T get(const Candidate &c)
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override