40 LogTrace(
"Muon|RecoMuon|L2MuonCandidateProducer")<<
" constructor called";
44 tracksToken = consumes<reco::TrackCollection>(theSACollectionLabel);
45 produces<RecoChargedCandidateCollection>();
50 LogTrace(
"Muon|RecoMuon|L2MuonCandidateProducer")<<
" L2MuonCandidateProducer destructor called";
56 const string metname =
"Muon|RecoMuon|L2MuonCandidateProducer";
59 LogTrace(metname)<<
" Taking the StandAlone muons: "<<theSACollectionLabel;
61 event.getByToken(tracksToken,tracks);
64 LogTrace(metname)<<
" Creating the RecoChargedCandidate collection";
67 for (
unsigned int i=0;
i<tracks->size();
i++) {
73 if(
abs(q)==1) pid = q < 0 ? 13 : -13;
74 else LogWarning(metname) <<
"L2MuonCandidate has charge = "<<
q;
77 candidates->push_back(cand);
80 event.put(candidates);
83 <<
"================================";
T getParameter(std::string const &) const
const std::string metname
int Charge
electric charge type
math::XYZPoint Point
point in the space
Abs< T >::type abs(const T &t)
L2MuonCandidateProducer(const edm::ParameterSet &)
constructor with config
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
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
virtual ~L2MuonCandidateProducer()
destructor
virtual void produce(edm::Event &, const edm::EventSetup &)
produce candidates
void setTrack(const reco::TrackRef &r)
set reference to track
math::XYZTLorentzVector LorentzVector
Lorentz vector.
ParameterSet const & parameterSet(Provenance const &provenance)