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 Attributes | Private Attributes
CSCRecHit2D Class Referencefinal

#include <CSCRecHit2D.h>

Inheritance diagram for CSCRecHit2D:
RecHit2DLocalPos TrackingRecHit

Public Types

typedef edm::RangeMap< int,
std::vector< float > > 
ADCContainer
 
typedef std::vector< int > ChannelContainer
 
enum  SharedInputType {
  all = TrackingRecHit::all, some = TrackingRecHit::some, allWires, someWires,
  allStrips, someStrips
}
 
- Public Types inherited from RecHit2DLocalPos
typedef GloballyPositioned
< float >::LocalPoint 
LocalPoint
 
- Public Types inherited from TrackingRecHit
typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
using RecHitPointer = std::shared_ptr< TrackingRecHit const >
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type {
  valid = 0, missing = 1, inactive = 2, bad = 3,
  missing_inner = 4, missing_outer = 5
}
 

Public Member Functions

float adcs (unsigned int strip, unsigned int timebin) const
 Map of strip ADCs for strips comprising the rechit. More...
 
short int badStrip () const
 flags for involvement of 'bad' channels More...
 
short int badWireGroup () const
 
int channels (unsigned int i) const
 Extracting strip channel numbers comprising the rechit - low. More...
 
int channelsl1a (unsigned int i) const
 Extract the L1A phase bits from the StripChannelContainer - high. More...
 
CSCRecHit2Dclone () const
 RecHit2DLocalPos base class interface. More...
 
CSCDetId cscDetId () const
 
 CSCRecHit2D ()
 
 CSCRecHit2D (const CSCDetId &id, const LocalPoint &pos, const LocalError &err, const ChannelContainer &channels, const ADCContainer &adcs, const ChannelContainer &wgroups, float tpeak, float posInStrip, float errInStrip, int quality, short int badStrip=0, short int badWireGroup=0, int scaledWireTime=0, float energyDeposit=-995.)
 
float energyDepositedInLayer () const
 
float errorWithinStrip () const
 The uncertainty of the estimated position within the strip. More...
 
short int hitWire () const
 L1A. More...
 
LocalPoint localPosition () const
 
LocalError localPositionError () const
 
unsigned int nStrips () const
 
unsigned int nTimeBins () const
 
unsigned int nWireGroups () const
 
float positionWithinStrip () const
 The estimated position within the strip. More...
 
void print () const
 Print the content of the RecHit2D including L1A (for debugging) More...
 
int quality () const
 quality flag of the reconstruction More...
 
virtual bool sharesInput (const TrackingRecHit *other, TrackingRecHit::SharedInputType what) const
 Returns true if the two TrackingRecHits are using the same input information, false otherwise. In this case, looks at the geographical ID and channel numbers for strips and wires. More...
 
bool sharesInput (const TrackingRecHit *other, CSCRecHit2D::SharedInputType what) const
 Returns true if the two TrackingRecHits are using the same input information, false otherwise. In this case, looks at the geographical ID and channel numbers for strips and wires. More...
 
bool sharesInput (const CSCRecHit2D *otherRecHit, CSCRecHit2D::SharedInputType what) const
 Returns true if the two CSCRecHits are using the same input information, false otherwise. In this case, looks at the geographical ID and channel numbers for strips and wires. More...
 
float tpeak () const
 Fitted peaking time. More...
 
short int wgroupsBX () const
 
float wireTime () const
 
 ~CSCRecHit2D ()
 
- Public Member Functions inherited from RecHit2DLocalPos
virtual int dimension () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
 RecHit2DLocalPos (DetId id)
 
 RecHit2DLocalPos (TrackingRecHit::id_type id=0)
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any) More...
 
virtual ~RecHit2DLocalPos ()
 
- Public Member Functions inherited from TrackingRecHit
virtual bool canImproveWithTrack () const
 
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
virtual float errorGlobalR () const
 
virtual float errorGlobalRPhi () const
 
virtual float errorGlobalZ () const
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
virtual TrackingRecHit const * hit () const
 
bool isValid () const
 
id_type rawId () const
 
virtual void recHitsV (std::vector< const TrackingRecHit * > &) const
 
virtual void recHitsV (std::vector< TrackingRecHit * > &)
 
virtual void setDet (const GeomDet &idet)
 
virtual const Surfacesurface () const
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Static Public Attributes

static const unsigned int MAXSTRIPS =3
 
static const unsigned int MAXTIMEBINS =4
 
static const unsigned int N_ADC =MAXSTRIPS*MAXTIMEBINS
 
- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 

Private Attributes

short int hitWire_
 
unsigned char nStrips_
 
unsigned char nTimeBins_
 
unsigned char nWireGroups_
 
float theADCs_ [N_ADC]
 
short int theBadStrip
 
short int theBadWireGroup
 
float theEnergyDeposit
 
float theErrorWithinStrip
 
unsigned char theL1APhaseBits_ [MAXSTRIPS]
 
LocalError theLocalError
 
LocalPoint theLocalPosition
 
float thePositionWithinStrip
 
int theQuality
 
int theScaledWireTime
 
unsigned char theStrips_ [MAXSTRIPS]
 
float theTpeak
 
short int theWGroupsBX_
 

Additional Inherited Members

- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Detailed Description

Describes a 2-dim reconstructed hit in one layer of an Endcap Muon CSC.

Author
Tim Cox et al.

Definition at line 18 of file CSCRecHit2D.h.

Member Typedef Documentation

typedef edm::RangeMap<int, std::vector<float> > CSCRecHit2D::ADCContainer

Definition at line 23 of file CSCRecHit2D.h.

typedef std::vector<int> CSCRecHit2D::ChannelContainer

Definition at line 22 of file CSCRecHit2D.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

CSCRecHit2D::CSCRecHit2D ( )

Definition at line 4 of file CSCRecHit2D.cc.

Referenced by clone().

CSCRecHit2D::CSCRecHit2D ( const CSCDetId id,
const LocalPoint pos,
const LocalError err,
const ChannelContainer channels,
const ADCContainer adcs,
const ChannelContainer wgroups,
float  tpeak,
float  posInStrip,
float  errInStrip,
int  quality,
short int  badStrip = 0,
short int  badWireGroup = 0,
int  scaledWireTime = 0,
float  energyDeposit = -995. 
)

Definition at line 25 of file CSCRecHit2D.cc.

CSCRecHit2D::~CSCRecHit2D ( )

Definition at line 86 of file CSCRecHit2D.cc.

Member Function Documentation

float CSCRecHit2D::adcs ( unsigned int  strip,
unsigned int  timebin 
) const
inline

Map of strip ADCs for strips comprising the rechit.

Definition at line 68 of file CSCRecHit2D.h.

References MAXTIMEBINS, and theADCs_.

68 { return theADCs_[strip*MAXTIMEBINS+timebin]; }
static const unsigned int MAXTIMEBINS
Definition: CSCRecHit2D.h:28
float theADCs_[N_ADC]
Definition: CSCRecHit2D.h:131
short int CSCRecHit2D::badStrip ( ) const
inline

flags for involvement of 'bad' channels

Definition at line 85 of file CSCRecHit2D.h.

References theBadStrip.

85 { return theBadStrip; }
short int theBadStrip
Definition: CSCRecHit2D.h:124
short int CSCRecHit2D::badWireGroup ( ) const
inline

Definition at line 86 of file CSCRecHit2D.h.

References theBadWireGroup.

86 { return theBadWireGroup; }
short int theBadWireGroup
Definition: CSCRecHit2D.h:125
int CSCRecHit2D::channels ( unsigned int  i) const
inline

Extracting strip channel numbers comprising the rechit - low.

Definition at line 55 of file CSCRecHit2D.h.

References i, and theStrips_.

Referenced by CSCHitAssociator::associateCSCHitId(), and CSCHitAssociator::associateHitId().

55 { return theStrips_[i]; }
int i
Definition: DBlmapReader.cc:9
unsigned char theStrips_[MAXSTRIPS]
Definition: CSCRecHit2D.h:130
int CSCRecHit2D::channelsl1a ( unsigned int  i) const
inline

Extract the L1A phase bits from the StripChannelContainer - high.

Definition at line 59 of file CSCRecHit2D.h.

References i, and theL1APhaseBits_.

59 { return theL1APhaseBits_[i]; }
int i
Definition: DBlmapReader.cc:9
unsigned char theL1APhaseBits_[MAXSTRIPS]
Definition: CSCRecHit2D.h:129
CSCRecHit2D* CSCRecHit2D::clone ( void  ) const
inlinevirtual

RecHit2DLocalPos base class interface.

Implements RecHit2DLocalPos.

Definition at line 49 of file CSCRecHit2D.h.

References CSCRecHit2D().

49 { return new CSCRecHit2D( *this ); }
CSCDetId CSCRecHit2D::cscDetId ( ) const
inline
float CSCRecHit2D::energyDepositedInLayer ( ) const
inline

Energy deposited in the layer. Note: this value is dE. In order to get the dE/dX, you will need to divide by the path length. Specific failure values... If the user has chosen not to use the gas gain correction —> -998. If the gas gain correction from the database is a bad value -> -997. If it is an edge strip -----------------------------------—> -996. If gas-gain is OK, but the ADC vector is the wrong size -—> -999. If the user has created the Rechit without the energy deposit> -995. If the user has created the Rechit with no arguments -----—> -994.

Definition at line 100 of file CSCRecHit2D.h.

References theEnergyDeposit.

100 { return theEnergyDeposit; }
float theEnergyDeposit
Definition: CSCRecHit2D.h:119
float CSCRecHit2D::errorWithinStrip ( ) const
inline

The uncertainty of the estimated position within the strip.

Definition at line 79 of file CSCRecHit2D.h.

References theErrorWithinStrip.

79 { return theErrorWithinStrip;} ;
float theErrorWithinStrip
Definition: CSCRecHit2D.h:118
short int CSCRecHit2D::hitWire ( ) const
inline

L1A.

Container of wire groups comprising the rechit

Definition at line 62 of file CSCRecHit2D.h.

References hitWire_.

62 { return hitWire_;}
short int hitWire_
Definition: CSCRecHit2D.h:122
LocalPoint CSCRecHit2D::localPosition ( ) const
inlinevirtual

Implements RecHit2DLocalPos.

Definition at line 50 of file CSCRecHit2D.h.

References theLocalPosition.

Referenced by FWCSCRecHitProxyBuilder::build(), and CSCRecHit2DValidation::plotResolution().

50 { return theLocalPosition; }
LocalPoint theLocalPosition
Definition: CSCRecHit2D.h:133
LocalError CSCRecHit2D::localPositionError ( ) const
inlinevirtual

Implements RecHit2DLocalPos.

Definition at line 51 of file CSCRecHit2D.h.

References theLocalError.

Referenced by FWCSCRecHitProxyBuilder::build(), and CSCRecHit2DValidation::plotResolution().

51 { return theLocalError; }
LocalError theLocalError
Definition: CSCRecHit2D.h:134
unsigned int CSCRecHit2D::nStrips ( ) const
inline

Definition at line 56 of file CSCRecHit2D.h.

References nStrips_.

Referenced by CSCHitAssociator::associateCSCHitId(), and CSCHitAssociator::associateHitId().

56 {return nStrips_;}
unsigned char nStrips_
Definition: CSCRecHit2D.h:127
unsigned int CSCRecHit2D::nTimeBins ( ) const
inline

Definition at line 70 of file CSCRecHit2D.h.

References nTimeBins_.

70 {return nTimeBins_;}
unsigned char nTimeBins_
Definition: CSCRecHit2D.h:127
unsigned int CSCRecHit2D::nWireGroups ( ) const
inline

Definition at line 65 of file CSCRecHit2D.h.

References nWireGroups_.

65 {return nWireGroups_;}
unsigned char nWireGroups_
Definition: CSCRecHit2D.h:127
float CSCRecHit2D::positionWithinStrip ( ) const
inline

The estimated position within the strip.

Definition at line 76 of file CSCRecHit2D.h.

References thePositionWithinStrip.

76 { return thePositionWithinStrip; };
float thePositionWithinStrip
Definition: CSCRecHit2D.h:117
void CSCRecHit2D::print ( void  ) const

Print the content of the RecHit2D including L1A (for debugging)

L1A

Definition at line 165 of file CSCRecHit2D.cc.

int CSCRecHit2D::quality ( ) const
inline

quality flag of the reconstruction

Definition at line 82 of file CSCRecHit2D.h.

References theQuality.

82 { return theQuality;}
bool CSCRecHit2D::sharesInput ( const TrackingRecHit other,
TrackingRecHit::SharedInputType  what 
) const
virtual

Returns true if the two TrackingRecHits are using the same input information, false otherwise. In this case, looks at the geographical ID and channel numbers for strips and wires.

Reimplemented from TrackingRecHit.

Definition at line 88 of file CSCRecHit2D.cc.

bool CSCRecHit2D::sharesInput ( const TrackingRecHit other,
CSCRecHit2D::SharedInputType  what 
) const

Returns true if the two TrackingRecHits are using the same input information, false otherwise. In this case, looks at the geographical ID and channel numbers for strips and wires.

Definition at line 97 of file CSCRecHit2D.cc.

bool CSCRecHit2D::sharesInput ( const CSCRecHit2D otherRecHit,
CSCRecHit2D::SharedInputType  what 
) const

Returns true if the two CSCRecHits are using the same input information, false otherwise. In this case, looks at the geographical ID and channel numbers for strips and wires.

Definition at line 109 of file CSCRecHit2D.cc.

float CSCRecHit2D::tpeak ( ) const
inline

Fitted peaking time.

Definition at line 73 of file CSCRecHit2D.h.

References theTpeak.

73 { return theTpeak; }
float theTpeak
Definition: CSCRecHit2D.h:116
short int CSCRecHit2D::wgroupsBX ( ) const
inline

Definition at line 63 of file CSCRecHit2D.h.

References theWGroupsBX_.

63 {return theWGroupsBX_;}
short int theWGroupsBX_
Definition: CSCRecHit2D.h:123
float CSCRecHit2D::wireTime ( ) const
inline

Definition at line 89 of file CSCRecHit2D.h.

References theScaledWireTime.

89 { return (float)theScaledWireTime/100.; }
int theScaledWireTime
Definition: CSCRecHit2D.h:121

Member Data Documentation

short int CSCRecHit2D::hitWire_
private

Definition at line 122 of file CSCRecHit2D.h.

Referenced by hitWire().

const unsigned int CSCRecHit2D::MAXSTRIPS =3
static

Definition at line 27 of file CSCRecHit2D.h.

const unsigned int CSCRecHit2D::MAXTIMEBINS =4
static

Definition at line 28 of file CSCRecHit2D.h.

Referenced by adcs().

const unsigned int CSCRecHit2D::N_ADC =MAXSTRIPS*MAXTIMEBINS
static

Definition at line 29 of file CSCRecHit2D.h.

unsigned char CSCRecHit2D::nStrips_
private

Definition at line 127 of file CSCRecHit2D.h.

Referenced by nStrips().

unsigned char CSCRecHit2D::nTimeBins_
private

Definition at line 127 of file CSCRecHit2D.h.

Referenced by nTimeBins().

unsigned char CSCRecHit2D::nWireGroups_
private

Definition at line 127 of file CSCRecHit2D.h.

Referenced by nWireGroups().

float CSCRecHit2D::theADCs_[N_ADC]
private

Definition at line 131 of file CSCRecHit2D.h.

Referenced by adcs().

short int CSCRecHit2D::theBadStrip
private

Definition at line 124 of file CSCRecHit2D.h.

Referenced by badStrip().

short int CSCRecHit2D::theBadWireGroup
private

Definition at line 125 of file CSCRecHit2D.h.

Referenced by badWireGroup().

float CSCRecHit2D::theEnergyDeposit
private

Definition at line 119 of file CSCRecHit2D.h.

Referenced by energyDepositedInLayer().

float CSCRecHit2D::theErrorWithinStrip
private

Definition at line 118 of file CSCRecHit2D.h.

Referenced by errorWithinStrip().

unsigned char CSCRecHit2D::theL1APhaseBits_[MAXSTRIPS]
private

Definition at line 129 of file CSCRecHit2D.h.

Referenced by channelsl1a().

LocalError CSCRecHit2D::theLocalError
private

Definition at line 134 of file CSCRecHit2D.h.

Referenced by localPositionError().

LocalPoint CSCRecHit2D::theLocalPosition
private

Definition at line 133 of file CSCRecHit2D.h.

Referenced by localPosition().

float CSCRecHit2D::thePositionWithinStrip
private

Definition at line 117 of file CSCRecHit2D.h.

Referenced by positionWithinStrip().

int CSCRecHit2D::theQuality
private

Definition at line 120 of file CSCRecHit2D.h.

Referenced by quality().

int CSCRecHit2D::theScaledWireTime
private

Definition at line 121 of file CSCRecHit2D.h.

Referenced by wireTime().

unsigned char CSCRecHit2D::theStrips_[MAXSTRIPS]
private

Definition at line 130 of file CSCRecHit2D.h.

Referenced by channels().

float CSCRecHit2D::theTpeak
private

Definition at line 116 of file CSCRecHit2D.h.

Referenced by tpeak().

short int CSCRecHit2D::theWGroupsBX_
private

Definition at line 123 of file CSCRecHit2D.h.

Referenced by wgroupsBX().