24 #include "TLorentzVector.h" 86 produces<std::vector<reco::RecoChargedCandidate> >();
107 auto oc = std::make_unique<RecoChargedCandidateCollection>();
109 for (std::vector<ME0Muon>::const_iterator thisMuon = OurMuons->begin();
110 thisMuon != OurMuons->end(); ++thisMuon){
111 TrackRef tkRef = thisMuon->innerTrack();
113 Particle::Charge
q = tkRef->charge();
118 if(
abs(q)==1) pid = q < 0 ? 13 : -13;
120 cand.
setTrack(thisMuon->innerTrack());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
def setup(process, global_tag, zero_tesla=False)
~ME0MuonConverter() override
Destructor.
#define DEFINE_FWK_MODULE(type)
Abs< T >::type abs(const T &t)
void produce(edm::Event &, const edm::EventSetup &) override
Produce the converted collection.
edm::EDGetTokenT< ME0MuonCollection > OurMuonsToken_
ME0MuonConverter(const edm::ParameterSet &)
Constructor.
void setTrack(const reco::TrackRef &r)
set reference to track
math::PtEtaPhiELorentzVectorF LorentzVector