CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 "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

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

Definition at line 18 of file MSLayer.cc.

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

18  {
19  s << " face: " << l.face() << " pos:" << l.position() << ", "
20  << " range:" << l.range() << ", " << l.theX0Data;
21  return s;
22 }
const Range & range() const
Definition: MSLayer.h:50
const GeomDetEnumerators::Location & face() const
Definition: MSLayer.h:52
float position() const
Definition: MSLayer.h:53
DataX0 theX0Data
Definition: MSLayer.h:74
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.

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 }
const MSLayersKeeper * allLayers
Definition: MSLayer.h:33
float sumX0D
Definition: MSLayer.h:32
template<class T >
T sqr ( T  t)

Definition at line 13 of file MSLayer.cc.

References submitPVValidationJobs::t.

13  {
14  return t * t;
15 }