24 #include "TLorentzVector.h"
86 produces<std::vector<reco::RecoChargedCandidate> >();
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());
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~ME0MuonConverter()
Destructor.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Abs< T >::type abs(const T &t)
virtual void produce(edm::Event &, const edm::EventSetup &) override
Produce the converted collection.
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
edm::EDGetTokenT< ME0MuonCollection > OurMuonsToken_
ME0MuonConverter(const edm::ParameterSet &)
Constructor.
void setTrack(const reco::TrackRef &r)
set reference to track
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
math::PtEtaPhiELorentzVectorF LorentzVector