35 debug(config.getUntrackedParameter<bool>(
"debug",
false))
38 cout <<
"[DTRecHitProducer] Constructor called" << endl;
40 produces<DTRecHitCollection>();
45 string theAlgoName = config.
getParameter<
string>(
"recAlgo");
52 cout <<
"[DTRecHitProducer] Destructor called" << endl;
76 for (dtLayerIt = digis->begin();
77 dtLayerIt != digis->end();
80 const DTLayerId& layerId = (*dtLayerIt).first;
82 const DTLayer* layer = dtGeom->layer(layerId);
91 cout <<
"Number of hits in this layer: " << recHits.
size() << endl;
92 if(recHits.
size() > 0)
93 recHitCollection->put(layerId, recHits.
begin(), recHits.
end());
96 event.put(recHitCollection);
T getParameter(std::string const &) const
edm::RangeMap< DTLayerId, edm::OwnVector< DTRecHit1DPair > > DTRecHitCollection
virtual edm::OwnVector< DTRecHit1DPair > reconstruct(const DTLayer *layer, const DTLayerId &layerId, const DTDigiCollection::Range &digiRange)
Build all hits in the range associated to the layerId, at the 1st step.
edm::EDGetTokenT< DTDigiCollection > DTDigiToken_
virtual void setES(const edm::EventSetup &setup)=0
Pass the Event Setup to the algo at each event.
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
DTRecHitBaseAlgo * theAlgo
DTRecHitProducer(const edm::ParameterSet &)
Constructor.
virtual ~DTRecHitProducer()
Destructor.
std::pair< const_iterator, const_iterator > Range
volatile std::atomic< bool > shutdown_flag false
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.