40 cout <<
"[DTRecHitProducer] Constructor called" << endl;
42 produces<DTRecHitCollection>();
47 string theAlgoName = config.
getParameter<
string>(
"recAlgo");
54 cout <<
"[DTRecHitProducer] Destructor called" << endl;
67 event.getByLabel(theDTDigiLabel, digis);
70 theAlgo->setES(setup);
78 for (dtLayerIt = digis->begin();
79 dtLayerIt != digis->end();
82 const DTLayerId& layerId = (*dtLayerIt).first;
84 const DTLayer* layer = dtGeom->layer(layerId);
90 theAlgo->reconstruct(layer, layerId, range);
93 cout <<
"Number of hits in this layer: " << recHits.
size() << endl;
94 if(recHits.
size() > 0)
95 recHitCollection->put(layerId, recHits.
begin(), recHits.
end());
98 event.put(recHitCollection);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::RangeMap< DTLayerId, edm::OwnVector< DTRecHit1DPair > > DTRecHitCollection
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
DTRecHitProducer(const edm::ParameterSet &)
Constructor.
virtual ~DTRecHitProducer()
Destructor.
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 produce(edm::Event &event, const edm::EventSetup &setup)
The method which produces the rechits.