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

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 }

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

Referenced by L3TkMuonProducer::produce().

◆ printvector() [1/2]

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

Definition at line 81 of file L3TkMuonProducer.cc.

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 }

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

◆ printvector() [2/2]

string printvector ( const vector< TrackRef > &  v)

Definition at line 70 of file L3TkMuonProducer.cc.

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 }

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

Referenced by L3TkMuonProducer::produce().

mps_fire.i
i
Definition: mps_fire.py:428
findQualityFiles.v
v
Definition: findQualityFiles.py:179
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
alignCSCRings.s
s
Definition: alignCSCRings.py:92
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
hit
Definition: SiStripHitEffFromCalibTree.cc:88