30 produces<DTRecSegment4DCollection>();
36 cout <<
"[DTRecSegment4DProducer] Constructor called" << endl;
45 string theReco4DAlgoName = pset.
getParameter<
string>(
"Reco4DAlgoName");
46 if(debug)
cout <<
"the Reco4D AlgoName is " << theReco4DAlgoName << endl;
54 cout <<
"[DTRecSegment4DProducer] Destructor called" << endl;
62 event.getByLabel(theRecHits1DLabel,all1DHits);
66 if(the4DAlgo->wants2DSegments())
67 event.
getByLabel(theRecHits2DLabel, all2DSegments);
77 the4DAlgo->setES(setup);
84 for (dtLayerIt = all1DHits->id_begin(); dtLayerIt != all1DHits->id_end(); ++dtLayerIt){
88 if (chId==oldChId)
continue;
90 if(
debug)
cout <<
"ChamberId: "<< chId << endl;
91 the4DAlgo->setChamber(chId);
93 if(
debug)
cout<<
"Take the DTRecHits1D and set them in the reconstructor"<<endl;
95 the4DAlgo->setDTRecHit1DContainer(all1DHits);
97 if(
debug)
cout<<
"Take the DTRecSegments2D and set them in the reconstructor"<<endl;
99 the4DAlgo->setDTRecSegment2DContainer(all2DSegments);
101 if(
debug)
cout <<
"Start 4D-Segments Reco " << endl;
106 cout <<
"Number of reconstructed 4D-segments " << segments4D.
size() << endl;
108 ostream_iterator<DTRecSegment4D>(
cout,
"\n"));
111 if (segments4D.
size() > 0 )
113 segments4DCollection->put(chId, segments4D.
begin(),segments4D.
end());
116 event.put(segments4DCollection);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual ~DTRecSegment4DProducer()
Destructor.
DTRecSegment4DProducer(const edm::ParameterSet &)
Constructor.
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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &event, const edm::EventSetup &setup)
The method which produces the 4D rec segments.
edm::RangeMap< DTChamberId, edm::OwnVector< DTRecSegment4D > > DTRecSegment4DCollection
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
T get(const Candidate &c)