CMS 3D CMS Logo

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< L3TkMuonProducer::SeedRef > &v)
 
string printvector (const vector< TrackRef > &v)
 

Function Documentation

◆ printseed()

string printseed ( const L3TkMuonProducer::SeedRef s)

Definition at line 100 of file L3TkMuonProducer.cc.

100  {
101  std::stringstream ss;
102  ss << " seed ref: " << s.id().id() << ":" << s.key() << " has " << s->nHits() << "rechits";
103  TrajectorySeed::range r = s->recHits();
105  for (; it != r.second; ++it)
106  ss << "\n detId: " << std::hex << it->geographicalId().rawId() << std::dec << " position: " << it->localPosition()
107  << " and error: " << it->localPositionError();
108  return ss.str();
109 }

References TauDecayModes::dec, alignCSCRings::r, alignCSCRings::s, and contentValuesCheck::ss.

Referenced by L3TkMuonProducer::produce().

◆ printvector() [1/2]

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

Definition at line 84 of file L3TkMuonProducer.cc.

84  {
85  std::stringstream ss;
86  for (unsigned int i = 0; i != v.size(); ++i) {
87  if (i != 0)
88  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() << ":"
92  << v[i]->l1Particle().key();
93  else
94  ss << " and pT: " << v[i]->l2Track()->pt() << " of L2: " << v[i]->l2Track().id().id() << ":"
95  << v[i]->l2Track().key();
96  }
97  return ss.str();
98 }

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

◆ printvector() [2/2]

string printvector ( const vector< TrackRef > &  v)

Definition at line 73 of file L3TkMuonProducer.cc.

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

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

Referenced by L3TkMuonProducer::produce().

mps_fire.i
i
Definition: mps_fire.py:355
TrajectorySeed::range
std::pair< const_iterator, const_iterator > range
Definition: TrajectorySeed.h:21
TrajectorySeed::const_iterator
recHitContainer::const_iterator const_iterator
Definition: TrajectorySeed.h:20
findQualityFiles.v
v
Definition: findQualityFiles.py:179
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
alignCSCRings.s
s
Definition: alignCSCRings.py:92
alignCSCRings.r
r
Definition: alignCSCRings.py:93
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143