#include <CSCHitFromStripOnly.h>
Public Types | |
typedef std::array < CSCStripData, 100 > | PulseHeightMap |
Public Member Functions | |
CSCHitFromStripOnly (const edm::ParameterSet &ps) | |
bool | ganged () |
std::vector< CSCStripHit > | runStrip (const CSCDetId &id, const CSCLayer *layer, const CSCStripDigiCollection::Range &rstripd) |
void | setConditions (const CSCRecoConditions *reco) |
void | setGanged (bool ig) |
~CSCHitFromStripOnly () | |
Private Member Functions | |
void | fillPulseHeights (const CSCStripDigiCollection::Range &rstripd) |
Store SCA pulseheight information from strips in digis of one layer. More... | |
float | findHitOnStripPosition (const std::vector< CSCStripHitData > &data, const int ¢erStrip) |
Find position of hit in strip cluster in terms of strip #. More... | |
void | findMaxima (const CSCDetId &id) |
Find local maxima. More... | |
bool | isDeadStrip (const CSCDetId &id, int centralStrip, int nstrips) |
Is the strip 'bad'? More... | |
bool | isNearDeadStrip (const CSCDetId &id, int centralStrip, int nstrips) |
Is either neighbour 'bad'? More... | |
bool | isPeakOK (int iStrip, float heightCluster) |
float | makeCluster (int centerStrip) |
Make clusters using local maxima. More... | |
CSCStripHitData | makeStripData (int centerStrip, int offset) |
Private Attributes | |
CSCPedestalChoice * | calcped_ |
int | clusterSize |
float | gainWeight [80] |
bool | ganged_ |
CSCDetId | id_ |
const CSCLayer * | layer_ |
unsigned | nstrips_ |
const CSCRecoConditions * | recoConditions_ |
std::vector< float > | strips_adc |
std::vector< float > | strips_adcRaw |
std::vector< int > | theClosestMaximum |
std::vector< int > | theConsecutiveStrips |
std::vector< int > | theMaxima |
PulseHeightMap | thePulseHeightMap |
std::vector< int > | theStrips |
float | theThresholdForAPeak |
float | theThresholdForCluster |
int | tmax_cluster |
bool | useCalib |
Static Private Attributes | |
static const int | theClusterSize = 3 |
below)
Search for strip with ADC output exceeding theThresholdForAPeak. For each of these strips, build a cluster of strip of size theClusterSize (typically 5 strips). Finally, make a Strip Hit out of these clusters by finding the center-of-mass position of the hit The DetId, strip hit position, and peaking time are stored in a CSCStripHit collection.
Be careful with the ME_1/a chambers: the 48 strips are ganged into 16 channels, Each channel contains signals from three strips, each separated by 16 strips from the next.
Definition at line 34 of file CSCHitFromStripOnly.h.
typedef std::array<CSCStripData,100> CSCHitFromStripOnly::PulseHeightMap |
Definition at line 39 of file CSCHitFromStripOnly.h.
|
explicit |
Definition at line 22 of file CSCHitFromStripOnly.cc.
References calcped_, edm::ParameterSet::getParameter(), LogTrace, theThresholdForAPeak, theThresholdForCluster, and useCalib.
CSCHitFromStripOnly::~CSCHitFromStripOnly | ( | ) |
|
private |
Store SCA pulseheight information from strips in digis of one layer.
Definition at line 360 of file CSCHitFromStripOnly.cc.
References calcped_, filterCSVwithJSON::copy, gainWeight, ganged(), id_, j, CSCPedestalChoice::pedestal(), recoConditions_, thePulseHeightMap, tmax, and useCalib.
Referenced by runStrip().
|
private |
Find position of hit in strip cluster in terms of strip #.
Definition at line 510 of file CSCHitFromStripOnly.cc.
References filterCSVwithJSON::copy, i, LogTrace, strips_adc, strips_adcRaw, and w.
Referenced by makeCluster().
|
private |
Find local maxima.
Definition at line 424 of file CSCHitFromStripOnly.cc.
References i, isDeadStrip(), isPeakOK(), j, roll_playback::k, prof2calltree::l, nstrips_, theClosestMaximum, theConsecutiveStrips, theMaxima, and thePulseHeightMap.
Referenced by runStrip().
|
inline |
Definition at line 51 of file CSCHitFromStripOnly.h.
References ganged_.
Referenced by fillPulseHeights(), and runStrip().
|
private |
Is the strip 'bad'?
Definition at line 568 of file CSCHitFromStripOnly.cc.
References CSCRecoConditions::badStrip(), and recoConditions_.
Referenced by findMaxima(), and runStrip().
|
private |
Is either neighbour 'bad'?
Definition at line 560 of file CSCHitFromStripOnly.cc.
References CSCRecoConditions::nearBadStrip(), and recoConditions_.
|
private |
Definition at line 496 of file CSCHitFromStripOnly.cc.
References i, thePulseHeightMap, theThresholdForAPeak, and theThresholdForCluster.
Referenced by findMaxima().
|
private |
Make clusters using local maxima.
Definition at line 218 of file CSCHitFromStripOnly.cc.
References clusterSize, data, findHitOnStripPosition(), i, LogTrace, makeStripData(), nstrips_, theClusterSize, and theStrips.
Referenced by runStrip().
|
private |
makeStripData
Definition at line 252 of file CSCHitFromStripOnly.cc.
References ecalMGPA::adc(), begin, clusterSize, filterCSVwithJSON::copy, spr::find(), i, roll_playback::k, LogTrace, min(), evf::evtn::offset(), jetcorrextractor::sign(), theMaxima, thePulseHeightMap, tmax, tmax_cluster, and TrackValidation_HighPurity_cff::valid.
Referenced by makeCluster().
std::vector< CSCStripHit > CSCHitFromStripOnly::runStrip | ( | const CSCDetId & | id, |
const CSCLayer * | layer, | ||
const CSCStripDigiCollection::Range & | rstripd | ||
) |
fact (20.10.09);
L1A (Begin looping) Attempt to redefine theStrips, to encode L1A phase bits
L1A (end Looping)
L1A
Print statement to check StripHit content w/ LA1
Definition at line 61 of file CSCHitFromStripOnly.cc.
References CSCLayer::chamber(), clusterSize, fillPulseHeights(), findMaxima(), gainWeight, ganged(), CSCChamberSpecs::gangedStrips(), id_, isDeadStrip(), layer_, LogTrace, makeCluster(), CSCChamberSpecs::nStrips(), nstrips_, recoConditions_, CSCDetId::ring(), setGanged(), CSCChamber::specs(), strips_adc, strips_adcRaw, CSCRecoConditions::stripWeights(), theClosestMaximum, theClusterSize, theConsecutiveStrips, theMaxima, theStrips, tmax_cluster, and useCalib.
Referenced by CSCRecHitDBuilder::build().
|
inline |
Definition at line 47 of file CSCHitFromStripOnly.h.
References dt_dqm_sourceclient_common_cff::reco, and recoConditions_.
Referenced by CSCRecHitDBuilder::setConditions().
|
inline |
|
private |
Definition at line 92 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), fillPulseHeights(), and ~CSCHitFromStripOnly().
|
private |
Definition at line 110 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), makeStripData(), and runStrip().
|
private |
Definition at line 89 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), and runStrip().
|
private |
Definition at line 115 of file CSCHitFromStripOnly.h.
Referenced by ganged(), and setGanged().
|
private |
Definition at line 83 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), and runStrip().
|
private |
Definition at line 84 of file CSCHitFromStripOnly.h.
Referenced by runStrip().
|
private |
Definition at line 87 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), makeCluster(), and runStrip().
|
private |
Definition at line 85 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), isDeadStrip(), isNearDeadStrip(), runStrip(), and setConditions().
|
private |
Definition at line 111 of file CSCHitFromStripOnly.h.
Referenced by findHitOnStripPosition(), and runStrip().
|
private |
Definition at line 112 of file CSCHitFromStripOnly.h.
Referenced by findHitOnStripPosition(), and runStrip().
|
private |
Definition at line 106 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), and runStrip().
|
staticprivate |
Definition at line 96 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), and runStrip().
|
private |
Definition at line 105 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), and runStrip().
|
private |
Definition at line 104 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), makeStripData(), and runStrip().
|
private |
Definition at line 102 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), findMaxima(), isPeakOK(), and makeStripData().
|
private |
Definition at line 113 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), and runStrip().
|
private |
Definition at line 97 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), and isPeakOK().
|
private |
Definition at line 98 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), and isPeakOK().
|
private |
Definition at line 109 of file CSCHitFromStripOnly.h.
Referenced by makeStripData(), and runStrip().
|
private |
Definition at line 95 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), fillPulseHeights(), and runStrip().