CMS 3D CMS Logo

Functions
MSLayer.cc File Reference
#include "RecoTracker/TkMSParametrization/interface/MSLayer.h"
#include "TrackingTools/DetLayers/interface/DetLayer.h"
#include "TrackingTools/DetLayers/interface/BarrelDetLayer.h"
#include "TrackingTools/DetLayers/interface/ForwardDetLayer.h"
#include "MSLayersKeeper.h"
#include "FWCore/Utilities/interface/Likely.h"
#include <iostream>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &s, const MSLayer &l)
 
ostream & operator<< (ostream &s, const MSLayer::DataX0 &d)
 
template<class T >
T sqr (T t)
 

Function Documentation

◆ operator<<() [1/2]

ostream& operator<< ( ostream &  s,
const MSLayer l 
)

Definition at line 18 of file MSLayer.cc.

References cmsLHEtoEOSManager::l, and alignCSCRings::s.

18  {
19  s << " face: " << l.face() << " pos:" << l.position() << ", "
20  << " range:" << l.range() << ", " << l.theX0Data;
21  return s;
22 }

◆ operator<<() [2/2]

ostream& operator<< ( ostream &  s,
const MSLayer::DataX0 d 
)

Definition at line 24 of file MSLayer.cc.

References ztail::d, and alignCSCRings::s.

24  {
25  if (d.hasX0)
26  s << "x0=" << d.x0 << " sumX0D=" << d.sumX0D;
27  else if (d.allLayers)
28  s << "x0 by MSLayersKeeper";
29  else
30  s << "empty DataX0";
31  return s;
32 }
d
Definition: ztail.py:151

◆ sqr()

template<class T >
T sqr ( T  t)

Definition at line 13 of file MSLayer.cc.

References submitPVValidationJobs::t.

Referenced by MSLayer::distance2().

13  {
14  return t * t;
15 }