CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
MuonSeedDetLayer Class Reference

#include <MuonSeedDetLayer.h>

Public Member Functions

int id () const
 return layer identifyer More...
 
const DetLayerlayer () const
 return layer More...
 
 MuonSeedDetLayer (const DetLayer *layer, GlobalPoint &point, int id, TrajectoryStateOnSurface &state)
 constructor More...
 
const GlobalPointpoint () const
 return impact point More...
 
double radius () const
 return radius of impact point More...
 
const TrajectoryStateOnSurfacestate () const
 return trajectory state on layer More...
 
double z () const
 return z coordinate of impact point More...
 
virtual ~MuonSeedDetLayer ()
 destructor More...
 

Static Public Member Functions

static bool getHigherR (const MuonSeedDetLayer first, const MuonSeedDetLayer second)
 sort More...
 
static bool getLowerR (const MuonSeedDetLayer first, const MuonSeedDetLayer second)
 sort More...
 

Private Attributes

int theID
 
const DetLayertheLayer
 
GlobalPoint thePoint
 
TrajectoryStateOnSurface theState
 

Detailed Description

Muon seed detector layer Helper class for seed generation

Author
N. Neumeister Purdue University

Definition at line 22 of file MuonSeedDetLayer.h.

Constructor & Destructor Documentation

◆ MuonSeedDetLayer()

MuonSeedDetLayer::MuonSeedDetLayer ( const DetLayer layer,
GlobalPoint point,
int  id,
TrajectoryStateOnSurface state 
)
inline

constructor

Definition at line 27 of file MuonSeedDetLayer.h.

30  :

◆ ~MuonSeedDetLayer()

virtual MuonSeedDetLayer::~MuonSeedDetLayer ( )
inlinevirtual

destructor

Definition at line 34 of file MuonSeedDetLayer.h.

34 {}

Member Function Documentation

◆ getHigherR()

static bool MuonSeedDetLayer::getHigherR ( const MuonSeedDetLayer  first,
const MuonSeedDetLayer  second 
)
inlinestatic

sort

Definition at line 55 of file MuonSeedDetLayer.h.

55  {
56  return first.radius() < second.radius();
57  }

References dqmdumpme::first, and edm::second().

◆ getLowerR()

static bool MuonSeedDetLayer::getLowerR ( const MuonSeedDetLayer  first,
const MuonSeedDetLayer  second 
)
inlinestatic

sort

Definition at line 60 of file MuonSeedDetLayer.h.

60  {
61  return first.radius() > second.radius();
62  }

References dqmdumpme::first, and edm::second().

◆ id()

int MuonSeedDetLayer::id ( void  ) const
inline

return layer identifyer

Definition at line 43 of file MuonSeedDetLayer.h.

43 { return theID; }

References theID.

◆ layer()

const DetLayer* MuonSeedDetLayer::layer ( ) const
inline

return layer

Definition at line 37 of file MuonSeedDetLayer.h.

37 { return theLayer; }

References theLayer.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

◆ point()

const GlobalPoint& MuonSeedDetLayer::point ( ) const
inline

return impact point

Definition at line 40 of file MuonSeedDetLayer.h.

40 { return thePoint; }

References thePoint.

◆ radius()

double MuonSeedDetLayer::radius ( void  ) const
inline

return radius of impact point

Definition at line 49 of file MuonSeedDetLayer.h.

49 { return sqrt(thePoint.x()*thePoint.x()+thePoint.y()*thePoint.y()); }

References mathSSE::sqrt(), thePoint, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().

◆ state()

const TrajectoryStateOnSurface& MuonSeedDetLayer::state ( ) const
inline

return trajectory state on layer

Definition at line 46 of file MuonSeedDetLayer.h.

46 { return theState; }

References theState.

◆ z()

double MuonSeedDetLayer::z ( ) const
inline

return z coordinate of impact point

Definition at line 52 of file MuonSeedDetLayer.h.

52 { return thePoint.z(); }

References thePoint, and PV3DBase< T, PVType, FrameType >::z().

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

Member Data Documentation

◆ theID

int MuonSeedDetLayer::theID
private

Definition at line 68 of file MuonSeedDetLayer.h.

Referenced by id().

◆ theLayer

const DetLayer* MuonSeedDetLayer::theLayer
private

Definition at line 66 of file MuonSeedDetLayer.h.

Referenced by layer().

◆ thePoint

GlobalPoint MuonSeedDetLayer::thePoint
private

Definition at line 67 of file MuonSeedDetLayer.h.

Referenced by point(), radius(), and z().

◆ theState

TrajectoryStateOnSurface MuonSeedDetLayer::theState
private

Definition at line 69 of file MuonSeedDetLayer.h.

Referenced by state().

MuonSeedDetLayer::point
const GlobalPoint & point() const
return impact point
Definition: MuonSeedDetLayer.h:40
MuonSeedDetLayer::theID
int theID
Definition: MuonSeedDetLayer.h:68
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
dqmdumpme.first
first
Definition: dqmdumpme.py:55
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
MuonSeedDetLayer::thePoint
GlobalPoint thePoint
Definition: MuonSeedDetLayer.h:67
MuonSeedDetLayer::theLayer
const DetLayer * theLayer
Definition: MuonSeedDetLayer.h:66
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
MuonSeedDetLayer::layer
const DetLayer * layer() const
return layer
Definition: MuonSeedDetLayer.h:37
MuonSeedDetLayer::theState
TrajectoryStateOnSurface theState
Definition: MuonSeedDetLayer.h:69
MuonSeedDetLayer::state
const TrajectoryStateOnSurface & state() const
return trajectory state on layer
Definition: MuonSeedDetLayer.h:46