CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
MultipleScatteringParametrisation Class Reference

#include <MultipleScatteringParametrisation.h>

Public Types

enum  Consecutive { notAssumeConsecutive, useConsecutive }
 
enum  X0Source { useDetLayer =0, useX0AtEta =1, useX0DataAveraged =2 }
 

Public Member Functions

 MultipleScatteringParametrisation (const DetLayer *layer, const edm::EventSetup &iSetup, X0Source x0source=useX0AtEta)
 
float operator() (float pt, float cotTheta, float transverseIP=0.) const
 
float operator() (float pt, float cotTheta, const PixelRecoPointRZ &point, float transverseIP=0.) const
 
float operator() (float pt, float cotTheta, const PixelRecoPointRZ &point, int ol) const
 
float operator() (float pt, const PixelRecoPointRZ &point1, const PixelRecoPointRZ &point2, Consecutive consecutive=notAssumeConsecutive, float transverseIP=0.) const
 
float operator() (float pT, const PixelRecoPointRZ &pointV, const PixelRecoPointRZ &pointO, int ol) const
 

Static Public Member Functions

static void initKeepers (const edm::EventSetup &iSetup)
 

Private Attributes

MSLayer theLayer
 
MSLayersKeeper const * theLayerKeeper
 

Static Private Attributes

static const float x0ToSigma = 0.0136f
 

Detailed Description

Parametrisation of multiple scattering sigma in tracker.

Definition at line 20 of file MultipleScatteringParametrisation.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

MultipleScatteringParametrisation::MultipleScatteringParametrisation ( const DetLayer layer,
const edm::EventSetup iSetup,
X0Source  x0source = useX0AtEta 
)

Definition at line 52 of file MultipleScatteringParametrisation.cc.

References initKeepers(), MSLayersKeeper::layer(), theLayer, and theLayerKeeper.

52  :
53  theLayerKeeper(keepers(x0Source))
54 {
55 
56  // FIXME not thread safe: move elsewhere...
57  initKeepers(iSetup);
58 
59  if (!layer) return;
60  theLayer = theLayerKeeper->layer(layer);
61 }
static void initKeepers(const edm::EventSetup &iSetup)
virtual MSLayer layer(const DetLayer *dl) const

Member Function Documentation

void MultipleScatteringParametrisation::initKeepers ( const edm::EventSetup iSetup)
static

Definition at line 45 of file MultipleScatteringParametrisation.cc.

References init.

Referenced by MultipleScatteringParametrisation().

45  {
46  const_cast<Keepers&>(keepers).init(iSetup);
47 }
int init
Definition: HydjetWrapper.h:62
float MultipleScatteringParametrisation::operator() ( float  pt,
float  cotTheta,
float  transverseIP = 0. 
) const

MS sigma at the layer for which parametrisation is initialised; particle assumed to come from nominal vertex, "fast" methods called

Definition at line 64 of file MultipleScatteringParametrisation.cc.

References MSLayer::sumX0D(), theLayer, and x0ToSigma.

66 {
67  float sumX0D = theLayer.sumX0D(cotTheta);
68  return x0ToSigma * sumX0D /pT;
69 }
float sumX0D(float cotTheta) const dso_hidden
Definition: MSLayer.cc:152
float MultipleScatteringParametrisation::operator() ( float  pt,
float  cotTheta,
const PixelRecoPointRZ point,
float  transverseIP = 0. 
) const

MS sigma at the layer for which parametrisation is initialised; particle assumed to come from constraint point (inner to layer). layer by layer contribution is calculated

Definition at line 72 of file MultipleScatteringParametrisation.cc.

References MSLayer::crossing(), MSLayersKeeper::layers(), MSLayersAtAngle::sumX0D(), theLayer, theLayerKeeper, and x0ToSigma.

74 {
75 
76  PixelRecoLineRZ lineIO(pointI, cotTheta, tip);
77  PixelRecoPointRZ pointO = theLayer.crossing(lineIO).first;
78 
79  const MSLayersAtAngle & layersAtEta = theLayerKeeper->layers(cotTheta);
80 
81  float sumX0D = layersAtEta.sumX0D(pointI, pointO);
82  return x0ToSigma * sumX0D /pT;
83 }
virtual const MSLayersAtAngle & layers(float cotTheta) const =0
float sumX0D(const PixelRecoPointRZ &pointI, const PixelRecoPointRZ &pointO) const
std::pair< PixelRecoPointRZ, bool > crossing(const PixelRecoLineRZ &line) const dso_hidden
Definition: MSLayer.cc:90
float MultipleScatteringParametrisation::operator() ( float  pt,
float  cotTheta,
const PixelRecoPointRZ point,
int  ol 
) const

Definition at line 87 of file MultipleScatteringParametrisation.cc.

References MSLayer::crossing(), MSLayersKeeper::layers(), MSLayer::seqNum(), MSLayersAtAngle::sumX0D(), theLayer, theLayerKeeper, and x0ToSigma.

87  {
88 
89  PixelRecoLineRZ lineIO(pointI, cotTheta);
90  PixelRecoPointRZ pointO = theLayer.crossing(lineIO).first;
91 
92  const MSLayersAtAngle & layersAtEta = theLayerKeeper->layers(cotTheta);
93 
94  float sumX0D = layersAtEta.sumX0D(il, theLayer.seqNum(), pointI, pointO);
95  return x0ToSigma * sumX0D /pT;
96 }
virtual const MSLayersAtAngle & layers(float cotTheta) const =0
float sumX0D(const PixelRecoPointRZ &pointI, const PixelRecoPointRZ &pointO) const
std::pair< PixelRecoPointRZ, bool > crossing(const PixelRecoLineRZ &line) const dso_hidden
Definition: MSLayer.cc:90
int seqNum() const
Definition: MSLayer.h:41
float MultipleScatteringParametrisation::operator() ( float  pt,
const PixelRecoPointRZ point1,
const PixelRecoPointRZ point2,
Consecutive  consecutive = notAssumeConsecutive,
float  transverseIP = 0. 
) const

MS sigma at the layer for which parametrisation is initialised; particle assumed to be measured at point1 and point2, it is assumed that layer is between point1 and point2. layer by layer contribution is calculated

Definition at line 100 of file MultipleScatteringParametrisation.cc.

References PixelRecoLineRZ::cotLine(), MSLayer::crossing(), MSLayersKeeper::layers(), PixelRecoPointRZ::r(), mathSSE::sqrt(), MSLayersAtAngle::sumX0D(), theLayer, theLayerKeeper, useConsecutive, MSLayer::x0(), and x0ToSigma.

106 {
107 
108 
109  PixelRecoLineRZ lineIO(pointI, pointO, tip);
110  PixelRecoPointRZ pointM = theLayer.crossing(lineIO).first;
111  float cotTheta = lineIO.cotLine();
112 
113  if (consecutive==useConsecutive) {
114  float dist = fabs( (pointO.r()-pointM.r())
115  * (pointM.r()-pointI.r())
116  / (pointO.r()-pointI.r()) );
117  return x0ToSigma * sqrt(theLayer.x0(cotTheta)) * dist /pT;
118  } else {
119  const MSLayersAtAngle & layersAtEta = theLayerKeeper->layers(cotTheta);
120  float sumX0D = layersAtEta.sumX0D(pointI, pointM, pointO);
121  return x0ToSigma * sumX0D /pT;
122  }
123 }
T sqrt(T t)
Definition: SSEVec.h:48
virtual const MSLayersAtAngle & layers(float cotTheta) const =0
float sumX0D(const PixelRecoPointRZ &pointI, const PixelRecoPointRZ &pointO) const
std::pair< PixelRecoPointRZ, bool > crossing(const PixelRecoLineRZ &line) const dso_hidden
Definition: MSLayer.cc:90
float r() const
float x0(float cotTheta) const dso_hidden
Definition: MSLayer.cc:137
float MultipleScatteringParametrisation::operator() ( float  pT,
const PixelRecoPointRZ pointV,
const PixelRecoPointRZ pointO,
int  ol 
) const

Definition at line 125 of file MultipleScatteringParametrisation.cc.

References PixelRecoLineRZ::cotLine(), MSLayer::crossing(), MSLayersKeeper::layers(), MSLayer::seqNum(), MSLayersAtAngle::sumX0D(), theLayer, theLayerKeeper, x0ToSigma, and PixelRecoPointRZ::z().

130 {
131 
132  PixelRecoLineRZ lineIO(pointV, pointO);
133  PixelRecoPointRZ pointI = theLayer.crossing(lineIO).first;
134  float cotTheta = lineIO.cotLine();
135 
136  const MSLayersAtAngle & layersAtEta = theLayerKeeper->layers(cotTheta);
137  float sumX0D = layersAtEta.sumX0D(pointV.z(), theLayer.seqNum(), ol, pointI, pointO);
138  return x0ToSigma * sumX0D /pT;
139 }
virtual const MSLayersAtAngle & layers(float cotTheta) const =0
float sumX0D(const PixelRecoPointRZ &pointI, const PixelRecoPointRZ &pointO) const
float z() const
std::pair< PixelRecoPointRZ, bool > crossing(const PixelRecoLineRZ &line) const dso_hidden
Definition: MSLayer.cc:90
int seqNum() const
Definition: MSLayer.h:41

Member Data Documentation

MSLayer MultipleScatteringParametrisation::theLayer
private
MSLayersKeeper const* MultipleScatteringParametrisation::theLayerKeeper
private
const float MultipleScatteringParametrisation::x0ToSigma = 0.0136f
staticprivate

Definition at line 72 of file MultipleScatteringParametrisation.h.

Referenced by operator()().