CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

HitDoublets Class Reference

#include <RecHitsSortedInPhi.h>

List of all members.

Public Types

typedef
TransientTrackingRecHit::ConstRecHitPointer 
Hit
enum  layer { inner = 0, outer = 1 }

Public Member Functions

void add (int il, int ol)
void clear ()
DetLayer const * detLayer (layer l) const
bool empty () const
GlobalPoint gp (int i, layer l) const
Hit const & hit (int i, layer l) const
 HitDoublets (RecHitsSortedInPhi const &in, RecHitsSortedInPhi const &out)
 indeces (std::move(rh.indeces))
float phi (int i, layer l) const
void reserve (std::size_t s)
float rv (int i, layer l) const
std::size_t size () const
float x (int i, layer l) const
float y (int i, layer l) const
float z (int i, layer l) const

Private Attributes

std::vector< int > indeces
std::array< RecHitsSortedInPhi
const *, 2 > 
layers

Detailed Description

Definition at line 127 of file RecHitsSortedInPhi.h.


Member Typedef Documentation

Definition at line 18 of file RecHitsSortedInPhi.h.


Member Enumeration Documentation

Enumerator:
inner 
outer 

Definition at line 129 of file RecHitsSortedInPhi.h.

{ inner=0, outer=1};

Constructor & Destructor Documentation

HitDoublets::HitDoublets ( RecHitsSortedInPhi const &  in,
RecHitsSortedInPhi const &  out 
) [inline]

Definition at line 134 of file RecHitsSortedInPhi.h.

References recoMuon::in.

                                                :
    layers{{&in,&out}}{}

Member Function Documentation

void HitDoublets::add ( int  il,
int  ol 
) [inline]

Definition at line 145 of file RecHitsSortedInPhi.h.

References indeces.

Referenced by HitPairGeneratorFromLayerPair::doublets().

{ indeces.push_back(il);indeces.push_back(ol);}
void HitDoublets::clear ( void  ) [inline]

Definition at line 143 of file RecHitsSortedInPhi.h.

References indeces.

Referenced by HitPairGeneratorFromLayerPair::doublets().

{ indeces.clear();}
DetLayer const* HitDoublets::detLayer ( layer  l) const [inline]

Definition at line 147 of file RecHitsSortedInPhi.h.

References prof2calltree::l, and layers.

Referenced by PixelTripletHLTGenerator::hitTriplets(), and PixelTripletLargeTipGenerator::hitTriplets().

{ return layers[l]->layer; }
bool HitDoublets::empty ( void  ) const [inline]

Definition at line 142 of file RecHitsSortedInPhi.h.

References indeces.

{ return indeces.empty();}
GlobalPoint HitDoublets::gp ( int  i,
layer  l 
) const [inline]

Definition at line 155 of file RecHitsSortedInPhi.h.

References x(), y(), and z().

{ return GlobalPoint(x(i,l),y(i,l),z(i,l));}
Hit const& HitDoublets::hit ( int  i,
layer  l 
) const [inline]

Definition at line 149 of file RecHitsSortedInPhi.h.

References indeces, prof2calltree::l, and layers.

{ return layers[l]->theHits[indeces[2*i+l]].hit();}
HitDoublets::indeces ( std::  moverh.indeces) [inline]

Definition at line 138 of file RecHitsSortedInPhi.h.

: layers(std::move(rh.layers)), indeces(std::move(rh.indeces)){}
float HitDoublets::phi ( int  i,
layer  l 
) const [inline]

Definition at line 150 of file RecHitsSortedInPhi.h.

References indeces, prof2calltree::l, and layers.

{ return layers[l]->phi(indeces[2*i+l]);}
void HitDoublets::reserve ( std::size_t  s) [inline]

Definition at line 140 of file RecHitsSortedInPhi.h.

References indeces.

Referenced by HitPairGeneratorFromLayerPair::doublets().

{ indeces.reserve(2*s);}
float HitDoublets::rv ( int  i,
layer  l 
) const [inline]

Definition at line 151 of file RecHitsSortedInPhi.h.

References indeces, prof2calltree::l, and layers.

{ return layers[l]->rv(indeces[2*i+l]);}
std::size_t HitDoublets::size ( void  ) const [inline]

Definition at line 141 of file RecHitsSortedInPhi.h.

References indeces.

Referenced by HitPairGeneratorFromLayerPair::doublets().

{ return indeces.size()/2;}
float HitDoublets::x ( int  i,
layer  l 
) const [inline]

Definition at line 153 of file RecHitsSortedInPhi.h.

References indeces, prof2calltree::l, and layers.

Referenced by gp().

{ return layers[l]->x[indeces[2*i+l]];}
float HitDoublets::y ( int  i,
layer  l 
) const [inline]

Definition at line 154 of file RecHitsSortedInPhi.h.

References indeces, prof2calltree::l, and layers.

Referenced by gp().

{ return layers[l]->y[indeces[2*i+l]];}
float HitDoublets::z ( int  i,
layer  l 
) const [inline]

Definition at line 152 of file RecHitsSortedInPhi.h.

References indeces, prof2calltree::l, and layers.

Referenced by gp().

{ return layers[l]->z[indeces[2*i+l]];}

Member Data Documentation

std::vector<int> HitDoublets::indeces [private]

Definition at line 162 of file RecHitsSortedInPhi.h.

Referenced by add(), clear(), empty(), hit(), phi(), reserve(), rv(), size(), x(), y(), and z().

std::array<RecHitsSortedInPhi const *,2> HitDoublets::layers [private]

Definition at line 159 of file RecHitsSortedInPhi.h.

Referenced by detLayer(), hit(), phi(), rv(), x(), y(), and z().