23 produces<DTRecSegment4DCollection>();
29 cout <<
"[DTSegment4DT0Corrector] Constructor called" << endl;
32 recHits4DToken_ = consumes<DTRecSegment4DCollection>(pset.
getParameter<
InputTag>(
"recHits4DLabel"));
41 cout <<
"[DTSegment4DT0Corrector] Destructor called" << endl;
49 event.getByToken(recHits4DToken_, all4DSegments);
56 theUpdator->setES(setup);
63 DTRecSegment4DCollection::id_iterator chamberId;
66 cout <<
"[DTSegment4DT0Corrector] Starting to loop over segments" << endl;
68 for (chamberId = all4DSegments->id_begin(); chamberId != all4DSegments->id_end(); ++chamberId){
77 segment4D!=range.second; ++segment4D) {
83 if(newSeg == 0)
continue;
85 theUpdator->update(newSeg,
true,0);
90 segments4DCollection->put(*chamberId, result.
begin(), result.
end());
95 cout <<
"[DTSegment4DT0Corrector] Saving modified segments into the event" << endl;
98 event.put(segments4DCollection);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual DTRecSegment4D * clone() const
std::pair< const_iterator, const_iterator > range
iterator range
DTSegment4DT0Corrector(const edm::ParameterSet &)
Constructor.
virtual void produce(edm::Event &event, const edm::EventSetup &setup)
The method which produces the 4D rec segments corrected for t0 offset.
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
edm::RangeMap< DTChamberId, edm::OwnVector< DTRecSegment4D > > DTRecSegment4DCollection
virtual ~DTSegment4DT0Corrector()
Destructor.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")