CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_6/src/RecoMuon/L3MuonProducer/src/L3TkMuonProducer.cc File Reference

#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "RecoMuon/L3MuonProducer/src/L3TkMuonProducer.h"
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
#include <string>

Go to the source code of this file.

Functions

string printseed (const L3TkMuonProducer::SeedRef &s)
string printvector (const vector< TrackRef > &v)

Function Documentation

string printseed ( const L3TkMuonProducer::SeedRef s)

Definition at line 85 of file L3TkMuonProducer.cc.

References edm::Ref< C, T, F >::id(), edm::ProductID::id(), edm::Ref< C, T, F >::key(), and alignCSCRings::r.

Referenced by L3TkMuonProducer::produce().

                                                   {
  std::stringstream ss;
  ss<<" seed ref: "<<s.id().id()<<":"<<s.key()<<" has "<< s->nHits()<<"rechits";
  TrajectorySeed::range r=s->recHits();
  TrajectorySeed::const_iterator it=r.first;
  for (;it!=r.second;++it)
    ss<<"\n detId: "<<it->geographicalId()<<" position: "<<it->localPosition()<<" and error: "<<it->localPositionError();
  return ss.str();
}
string printvector ( const vector< TrackRef > &  v)

Definition at line 61 of file L3TkMuonProducer.cc.

References i.

Referenced by L3TkMuonProducer::produce().

                                              {
  std::stringstream ss;
  for (unsigned int i=0;i!=v.size();++i) {
    if (i!=0) ss<<"\n";
    ss<<"track with ref: "<<v[i].id().id()<<":"<<v[i].key()
      <<" and pT: "<<v[i]->pt()
      <<" with seedRef: "<<v[i]->seedRef().id().id()<<":"<<v[i]->seedRef().key();
  }
  return ss.str();
}