CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
L3TkMuonProducer.cc File Reference
#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 97 of file L3TkMuonProducer.cc.

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

Referenced by L3TkMuonProducer::produce().

97  {
98  std::stringstream ss;
99  ss << " seed ref: " << s.id().id() << ":" << s.key() << " has " << s->nHits() << "rechits";
100  for (auto const& hit : s->recHits()) {
101  ss << "\n detId: " << std::hex << hit.geographicalId().rawId() << std::dec << " position: " << hit.localPosition()
102  << " and error: " << hit.localPositionError();
103  }
104  return ss.str();
105 }
key_type key() const
Accessor for product key.
Definition: Ref.h:250
ProductID id() const
Accessor for product ID.
Definition: Ref.h:244
ProductIndex id() const
Definition: ProductID.h:35
string printvector ( const vector< TrackRef > &  v)

Definition at line 70 of file L3TkMuonProducer.cc.

References mps_fire::i, and contentValuesCheck::ss.

Referenced by L3TkMuonProducer::produce().

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

Definition at line 81 of file L3TkMuonProducer.cc.

References mps_fire::i, and contentValuesCheck::ss.

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