#include <CSCRecHit2D.h>
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, inactive_inner = 6, inactive_outer = 7 } |
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... | |
CSCRecHit2D * | clone () const override |
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 override |
LocalError | localPositionError () const override |
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... | |
bool | sharesInput (const TrackingRecHit *other, TrackingRecHit::SharedInputType what) const override |
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 () override | |
Public Member Functions inherited from RecHit2DLocalPos | |
int | dimension () const override |
AlgebraicVector | parameters () const override |
AlgebraicSymMatrix | parametersError () const override |
AlgebraicMatrix | projectionMatrix () const override |
RecHit2DLocalPos (DetId id) | |
RecHit2DLocalPos (TrackingRecHit::id_type id=0) | |
std::vector< const TrackingRecHit * > | recHits () const override |
Access to component RecHits (if any) More... | |
std::vector< TrackingRecHit * > | recHits () override |
Non-const access to component RecHits (if any) More... | |
~RecHit2DLocalPos () override | |
Public Member Functions inherited from TrackingRecHit | |
virtual bool | canImproveWithTrack () const |
RecHitPointer | cloneForFit (const GeomDet &idet) const |
virtual TrackingRecHit * | cloneHit () const |
virtual RecHitPointer | cloneSH () const |
const GeomDet * | det () const |
virtual const GeomDetUnit * | detUnit () 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 Surface * | surface () 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) |
Describes a 2-dim reconstructed hit in one layer of an Endcap Muon CSC.
Definition at line 18 of file CSCRecHit2D.h.
typedef edm::RangeMap<int, std::vector<float> > CSCRecHit2D::ADCContainer |
Definition at line 21 of file CSCRecHit2D.h.
typedef std::vector<int> CSCRecHit2D::ChannelContainer |
Definition at line 20 of file CSCRecHit2D.h.
Enumerator | |
---|---|
all | |
some | |
allWires | |
someWires | |
allStrips | |
someStrips |
Definition at line 23 of file CSCRecHit2D.h.
CSCRecHit2D::CSCRecHit2D | ( | ) |
Definition at line 4 of file CSCRecHit2D.cc.
References mps_fire::i, dqmiolumiharvest::j, MAXSTRIPS, MAXTIMEBINS, theADCs_, and theStrips_.
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.
References gather_cfg::cout, hitWire_, mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, MAXSTRIPS, MAXTIMEBINS, nStrips_, nTimeBins_, nWireGroups_, edm::RangeMap< ID, C, P >::size(), theADCs_, theL1APhaseBits_, theStrips_, theWGroupsBX_, and createJobs::tmp.
|
override |
Definition at line 88 of file CSCRecHit2D.cc.
|
inline |
Map of strip ADCs for strips comprising the rechit.
Definition at line 74 of file CSCRecHit2D.h.
References MAXTIMEBINS, and theADCs_.
Referenced by MuonTruth::analyze().
|
inline |
flags for involvement of 'bad' channels
Definition at line 91 of file CSCRecHit2D.h.
References theBadStrip.
|
inline |
|
inline |
Extracting strip channel numbers comprising the rechit - low.
Definition at line 61 of file CSCRecHit2D.h.
References mps_fire::i, and theStrips_.
Referenced by MuonTruth::analyze(), CSCHitAssociator::associateCSCHitId(), CSCHitAssociator::associateHitId(), CSCSegAlgoRU::baseline(), CSCSegAlgoRU::buildSegments(), operator<<(), print(), and sharesInput().
|
inline |
Extract the L1A phase bits from the StripChannelContainer - high.
Definition at line 65 of file CSCRecHit2D.h.
References mps_fire::i, and theL1APhaseBits_.
|
inlineoverridevirtual |
RecHit2DLocalPos base class interface.
Implements RecHit2DLocalPos.
Definition at line 55 of file CSCRecHit2D.h.
References CSCRecHit2D().
|
inline |
Definition at line 58 of file CSCRecHit2D.h.
References TrackingRecHit::geographicalId().
Referenced by MuonTruth::analyze(), CSCSegAlgoSK::areHitsCloseInGlobalPhi(), CSCSegAlgoTC::areHitsCloseInGlobalPhi(), CSCSegAlgoRU::areHitsCloseInGlobalPhi(), CSCSegAlgoRU::areHitsCloseInR(), CSCHitAssociator::associateCSCHitId(), CSCHitAssociator::associateHitId(), CSCSegAlgoRU::baseline(), FWCSCRecHitProxyBuilder::build(), CSCSegAlgoTC::buildSegments(), CSCSegAlgoRU::buildSegments(), CSCCondSegFit::correctTheCovX(), CSCSegFit::derivativeMatrix(), CSCRecHitTrait::detid(), CSCCondSegFit::fit(), CSCSegFit::fit2(), CSCSegFit::fitlsq(), MuonDetCleaner< T1, T2 >::getRawDetId(), CSCSegAlgoShowering::isHitNearSegment(), CSCSegAlgoSK::isHitNearSegment(), CSCSegAlgoTC::isHitNearSegment(), CSCSegAlgoDF::isHitNearSegment(), CSCSegAlgoRU::isHitNearSegment(), print(), CSCSegAlgoShowering::pruneFromResidual(), CSCSegAlgoDF::pruneFromResidual(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), sharesInput(), CSCSegAlgoShowering::showerSeg(), and CSCSegAlgoTC::tryAddingHitsToSegment().
|
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 106 of file CSCRecHit2D.h.
References theEnergyDeposit.
|
inline |
The uncertainty of the estimated position within the strip.
Definition at line 85 of file CSCRecHit2D.h.
References theErrorWithinStrip.
Referenced by CSCSegAlgoRU::areHitsCloseInGlobalPhi(), CSCSegAlgoRU::isHitNearSegment(), and operator<<().
|
inline |
L1A.
Container of wire groups comprising the rechit
Definition at line 68 of file CSCRecHit2D.h.
References hitWire_.
Referenced by CSCSegAlgoRU::areHitsCloseInR(), CSCSegAlgoRU::buildSegments(), CSCSegAlgoRU::isHitNearSegment(), operator<<(), and sharesInput().
|
inlineoverridevirtual |
Implements RecHit2DLocalPos.
Definition at line 56 of file CSCRecHit2D.h.
References theLocalPosition.
Referenced by CSCRecHitMatcher::areCSCRecHit2DsSame(), CSCSegAlgoSK::areHitsCloseInGlobalPhi(), CSCSegAlgoTC::areHitsCloseInGlobalPhi(), CSCSegAlgoRU::areHitsCloseInGlobalPhi(), CSCSegAlgoTC::areHitsCloseInLocalX(), CSCSegAlgoSK::areHitsCloseInLocalX(), CSCSegAlgoRU::areHitsCloseInR(), FWCSCRecHitProxyBuilder::build(), CSCRecHitDBuilder::build(), CSCSegAlgoTC::buildSegments(), CSCSegAlgoDF::buildSegments(), CSCSegAlgoSK::buildSegments(), CSCCondSegFit::correctTheCovX(), CSCSegFit::derivativeMatrix(), CSCCondSegFit::fit(), CSCSegFit::fit2(), CSCSegFit::fitlsq(), CSCMake2DRecHit::isHitInFiducial(), CSCSegAlgoShowering::isHitNearSegment(), CSCSegAlgoSK::isHitNearSegment(), CSCSegAlgoTC::isHitNearSegment(), CSCSegAlgoDF::isHitNearSegment(), CSCSegAlgoRU::isHitNearSegment(), CSCValidation::ltrh::operator()(), operator<<(), CSCRecHit2DValidation::plotResolution(), GlobalRecHitsAnalyzer::plotResolution(), GlobalRecHitsProducer::plotResolution(), print(), CSCSegAlgoShowering::pruneFromResidual(), CSCSegAlgoDF::pruneFromResidual(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), CSCSegAlgoShowering::showerSeg(), CSCSegAlgoSK::tryAddingHitsToSegment(), and CSCSegAlgoTC::tryAddingHitsToSegment().
|
inlineoverridevirtual |
Implements RecHit2DLocalPos.
Definition at line 57 of file CSCRecHit2D.h.
References theLocalError.
Referenced by FWCSCRecHitProxyBuilder::build(), CSCCondSegFit::correctTheCovX(), CSCCondSegFit::fit(), CSCSegFit::fitlsq(), operator<<(), CSCRecHit2DValidation::plotResolution(), print(), CSCCondSegFit::setChi2(), CSCSegFit::setChi2(), and CSCSegFit::weightMatrix().
|
inline |
Definition at line 62 of file CSCRecHit2D.h.
References nStrips_.
Referenced by MuonTruth::analyze(), CSCHitAssociator::associateCSCHitId(), CSCHitAssociator::associateHitId(), CSCSegAlgoRU::baseline(), CSCSegAlgoRU::buildSegments(), operator<<(), print(), and sharesInput().
|
inline |
|
inline |
Definition at line 71 of file CSCRecHit2D.h.
References nWireGroups_.
Referenced by operator<<(), print(), and sharesInput().
|
inline |
The estimated position within the strip.
Definition at line 82 of file CSCRecHit2D.h.
References thePositionWithinStrip.
Referenced by operator<<().
void CSCRecHit2D::print | ( | void | ) | const |
Print the content of the RecHit2D including L1A (for debugging)
L1A
Definition at line 174 of file CSCRecHit2D.cc.
References channels(), gather_cfg::cout, cscDetId(), TauDecayModes::dec, hitWire_, mps_fire::i, isotrackApplyRegressor::k, localPosition(), localPositionError(), nStrips(), nWireGroups(), mathSSE::sqrt(), theBadStrip, theBadWireGroup, theErrorWithinStrip, thePositionWithinStrip, theQuality, theScaledWireTime, and theTpeak.
|
inline |
quality flag of the reconstruction
Definition at line 88 of file CSCRecHit2D.h.
References theQuality.
Referenced by operator<<().
|
overridevirtual |
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 90 of file CSCRecHit2D.cc.
Referenced by sharesInput().
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 98 of file CSCRecHit2D.cc.
References MuonSubdetId::CSC, TrackingRecHit::geographicalId(), sharesInput(), and DetId::subdetId().
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.
References all, allStrips, allWires, CSCDetId::channel(), channels(), cscDetId(), newFWLiteAna::found, TrackingRecHit::geographicalId(), hitWire(), mps_fire::i, dqmiolumiharvest::j, nStrips(), nWireGroups(), some, someStrips, and someWires.
|
inline |
Fitted peaking time.
Definition at line 79 of file CSCRecHit2D.h.
References theTpeak.
Referenced by operator<<(), and CSCSegment::time().
|
inline |
|
inline |
Definition at line 95 of file CSCRecHit2D.h.
References theScaledWireTime.
Referenced by operator<<(), and CSCSegment::time().
|
private |
Definition at line 127 of file CSCRecHit2D.h.
Referenced by CSCRecHit2D(), hitWire(), and print().
|
static |
Definition at line 32 of file CSCRecHit2D.h.
Referenced by CSCRecHit2D().
|
static |
Definition at line 33 of file CSCRecHit2D.h.
Referenced by adcs(), and CSCRecHit2D().
|
static |
Definition at line 34 of file CSCRecHit2D.h.
|
private |
Definition at line 132 of file CSCRecHit2D.h.
Referenced by CSCRecHit2D(), and nStrips().
|
private |
Definition at line 132 of file CSCRecHit2D.h.
Referenced by CSCRecHit2D(), and nTimeBins().
|
private |
Definition at line 132 of file CSCRecHit2D.h.
Referenced by CSCRecHit2D(), and nWireGroups().
|
private |
Definition at line 136 of file CSCRecHit2D.h.
Referenced by adcs(), and CSCRecHit2D().
|
private |
Definition at line 129 of file CSCRecHit2D.h.
Referenced by badStrip(), and print().
|
private |
Definition at line 130 of file CSCRecHit2D.h.
Referenced by badWireGroup(), and print().
|
private |
Definition at line 124 of file CSCRecHit2D.h.
Referenced by energyDepositedInLayer().
|
private |
Definition at line 123 of file CSCRecHit2D.h.
Referenced by errorWithinStrip(), and print().
|
private |
Definition at line 134 of file CSCRecHit2D.h.
Referenced by channelsl1a(), and CSCRecHit2D().
|
private |
Definition at line 139 of file CSCRecHit2D.h.
Referenced by localPositionError().
|
private |
Definition at line 138 of file CSCRecHit2D.h.
Referenced by localPosition().
|
private |
Definition at line 122 of file CSCRecHit2D.h.
Referenced by positionWithinStrip(), and print().
|
private |
Definition at line 125 of file CSCRecHit2D.h.
|
private |
Definition at line 126 of file CSCRecHit2D.h.
Referenced by print(), and wireTime().
|
private |
Definition at line 135 of file CSCRecHit2D.h.
Referenced by channels(), and CSCRecHit2D().
|
private |
Definition at line 121 of file CSCRecHit2D.h.
|
private |
Definition at line 128 of file CSCRecHit2D.h.
Referenced by CSCRecHit2D(), and wgroupsBX().