CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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)
 
string printvector (const vector< L3TkMuonProducer::SeedRef > &v)
 

Function Documentation

string printseed ( const L3TkMuonProducer::SeedRef s)

Definition at line 85 of file L3TkMuonProducer.cc.

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

Referenced by L3TkMuonProducer::produce().

85  {
86  std::stringstream ss;
87  ss<<" seed ref: "<<s.id().id()<<":"<<s.key()<<" has "<< s->nHits()<<"rechits";
88  TrajectorySeed::range r=s->recHits();
90  for (;it!=r.second;++it)
91  ss<<"\n detId: "<<it->geographicalId()<<" position: "<<it->localPosition()<<" and error: "<<it->localPositionError();
92  return ss.str();
93 }
recHitContainer::const_iterator const_iterator
std::pair< const_iterator, const_iterator > range
key_type key() const
Accessor for product key.
Definition: Ref.h:266
ProductID id() const
Accessor for product ID.
Definition: Ref.h:256
ProductIndex id() const
Definition: ProductID.h:38
string printvector ( const vector< TrackRef > &  v)

Definition at line 61 of file L3TkMuonProducer.cc.

References i.

Referenced by L3TkMuonProducer::produce().

61  {
62  std::stringstream ss;
63  for (unsigned int i=0;i!=v.size();++i) {
64  if (i!=0) ss<<"\n";
65  ss<<"track with ref: "<<v[i].id().id()<<":"<<v[i].key()
66  <<" and pT: "<<v[i]->pt()
67  <<" with seedRef: "<<v[i]->seedRef().id().id()<<":"<<v[i]->seedRef().key();
68  }
69  return ss.str();
70 }
int i
Definition: DBlmapReader.cc:9
mathSSE::Vec4< T > v
string printvector ( const vector< L3TkMuonProducer::SeedRef > &  v)

Definition at line 72 of file L3TkMuonProducer.cc.

References i.

72  {
73  std::stringstream ss;
74  for (unsigned int i=0;i!=v.size();++i){
75  if (i!=0) ss<<"\n";
76  ss<<"seed ref: "<<v[i].id().id()<<":"<<v[i].key();
77  if (v[i]->l2Track().isNull())
78  ss<<" and pT: "<<v[i]->l1Particle()->pt()<<" of L1: "<<v[i]->l1Particle().id().id()<<":"<<v[i]->l1Particle().key();
79  else
80  ss<<" and pT: "<<v[i]->l2Track()->pt()<<" of L2: "<<v[i]->l2Track().id().id()<<":"<<v[i]->l2Track().key();
81  }
82  return ss.str();
83 }
int i
Definition: DBlmapReader.cc:9
mathSSE::Vec4< T > v