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 98 of file L3TkMuonProducer.cc.

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

Referenced by L3TkMuonProducer::produce().

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

Definition at line 74 of file L3TkMuonProducer.cc.

References i, and contentValuesCheck::ss.

Referenced by L3TkMuonProducer::produce().

74  {
75  std::stringstream ss;
76  for (unsigned int i=0;i!=v.size();++i) {
77  if (i!=0) ss<<"\n";
78  ss<<"track with ref: "<<v[i].id().id()<<":"<<v[i].key()
79  <<" and pT: "<<v[i]->pt()
80  <<" with seedRef: "<<v[i]->seedRef().id().id()<<":"<<v[i]->seedRef().key();
81  }
82  return ss.str();
83 }
int i
Definition: DBlmapReader.cc:9
string printvector ( const vector< L3TkMuonProducer::SeedRef > &  v)

Definition at line 85 of file L3TkMuonProducer.cc.

References i, and contentValuesCheck::ss.

85  {
86  std::stringstream ss;
87  for (unsigned int i=0;i!=v.size();++i){
88  if (i!=0) ss<<"\n";
89  ss<<"seed ref: "<<v[i].id().id()<<":"<<v[i].key();
90  if (v[i]->l2Track().isNull())
91  ss<<" and pT: "<<v[i]->l1Particle()->pt()<<" of L1: "<<v[i]->l1Particle().id().id()<<":"<<v[i]->l1Particle().key();
92  else
93  ss<<" and pT: "<<v[i]->l2Track()->pt()<<" of L2: "<<v[i]->l2Track().id().id()<<":"<<v[i]->l2Track().key();
94  }
95  return ss.str();
96 }
int i
Definition: DBlmapReader.cc:9