CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 15 of file MSLayer.cc.

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

16 {
17  s <<" face: "<<l.face()
18  <<" pos:"<<l.position()<<", "
19  <<" range:"<<l.range()<<", "
20  <<l.theX0Data;
21  return s;
22 }
const Range & range() const
Definition: MSLayer.h:45
const GeomDetEnumerators::Location & face() const
Definition: MSLayer.h:47
float position() const
Definition: MSLayer.h:48
DataX0 theX0Data
Definition: MSLayer.h:72
ostream& operator<< ( ostream &  s,
const MSLayer::DataX0 d 
)

Definition at line 24 of file MSLayer.cc.

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

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

Definition at line 12 of file MSLayer.cc.

References t.

12 {return t*t;}