35 debug(config.getUntrackedParameter<bool>(
"debug",
false)),
36 theDTDigiLabel(config.getParameter<
InputTag>(
"dtDigiLabel"))
39 cout <<
"[DTRecHitProducer] Constructor called" << endl;
41 produces<DTRecHitCollection>();
44 string theAlgoName = config.
getParameter<
string>(
"recAlgo");
51 cout <<
"[DTRecHitProducer] Destructor called" << endl;
75 for (dtLayerIt = digis->begin();
76 dtLayerIt != digis->end();
79 const DTLayerId& layerId = (*dtLayerIt).first;
81 const DTLayer* layer = dtGeom->layer(layerId);
90 cout <<
"Number of hits in this layer: " << recHits.
size() << endl;
91 if(recHits.
size() > 0)
92 recHitCollection->put(layerId, recHits.
begin(), recHits.
end());
95 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.
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
edm::InputTag theDTDigiLabel
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.