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 <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

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

Definition at line 17 of file MSLayer.cc.

References MSLayer::face(), MSLayer::position(), MSLayer::range(), alignCSCRings::s, and MSLayer::theX0Data.

17  {
18  s << " face: " << l.face() << " pos:" << l.position() << ", "
19  << " range:" << l.range() << ", " << l.theX0Data;
20  return s;
21 }
const Range & range() const
Definition: MSLayer.h:51
const GeomDetEnumerators::Location & face() const
Definition: MSLayer.h:53
float position() const
Definition: MSLayer.h:54
DataX0 theX0Data
Definition: MSLayer.h:75
ostream& operator<< ( ostream &  s,
const MSLayer::DataX0 d 
)

Definition at line 23 of file MSLayer.cc.

References MSLayer::DataX0::allLayers, MSLayer::DataX0::hasX0, alignCSCRings::s, MSLayer::DataX0::sumX0D, and MSLayer::DataX0::x0.

23  {
24  if (d.hasX0)
25  s << "x0=" << d.x0 << " sumX0D=" << d.sumX0D;
26  else if (d.allLayers)
27  s << "x0 by MSLayersKeeper";
28  else
29  s << "empty DataX0";
30  return s;
31 }
const MSLayersKeeper * allLayers
Definition: MSLayer.h:34
float sumX0D
Definition: MSLayer.h:33
template<class T >
T sqr ( T  t)

Definition at line 12 of file MSLayer.cc.

References OrderedSet::t.

Referenced by MSLayer::distance2().

12  {
13  return t * t;
14 }