#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 36 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 350 of file CSCHitFromStripOnly.cc.
References cms::cuda::assert(), calcped_, filterCSVwithJSON::copy, gainWeight, ganged(), id_, dqmiolumiharvest::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 546 of file CSCHitFromStripOnly.cc.
References filterCSVwithJSON::copy, data, mps_fire::i, LogTrace, nano_mu_digi_cff::strip, strips_adc, strips_adcRaw, and w().
Referenced by makeCluster().
|
private |
Find local maxima.
Definition at line 411 of file CSCHitFromStripOnly.cc.
References mps_fire::i, isDeadStrip(), isPeakOK(), dqmiolumiharvest::j, dqmdumpme::k, MainPageGenerator::l, nstrips_, theClosestMaximum, theConsecutiveStrips, theMaxima, and thePulseHeightMap.
Referenced by runStrip().
|
inline |
Definition at line 48 of file CSCHitFromStripOnly.h.
References ganged_.
Referenced by fillPulseHeights(), and runStrip().
|
private |
Is the strip 'bad'?
Definition at line 602 of file CSCHitFromStripOnly.cc.
References CSCRecoConditions::badStrip(), and recoConditions_.
Referenced by findMaxima(), and runStrip().
|
private |
Is either neighbour 'bad'?
Definition at line 596 of file CSCHitFromStripOnly.cc.
References CSCRecoConditions::nearBadStrip(), and recoConditions_.
|
private |
Definition at line 534 of file CSCHitFromStripOnly.cc.
References mps_fire::i, thePulseHeightMap, theThresholdForAPeak, and theThresholdForCluster.
Referenced by findMaxima().
|
private |
Make clusters using local maxima.
Definition at line 211 of file CSCHitFromStripOnly.cc.
References clusterSize, data, findHitOnStripPosition(), mps_fire::i, LogTrace, makeStripData(), nstrips_, theClusterSize, and theStrips.
Referenced by runStrip().
|
private |
makeStripData
Definition at line 241 of file CSCHitFromStripOnly.cc.
References gpuClustering::adc, clusterSize, filterCSVwithJSON::copy, spr::find(), mps_fire::i, dqmdumpme::k, LogTrace, SiStripPI::min, hltrates_dqm_sourceclient-live_cfg::offset, Validation_hcalonly_cfi::sign, theMaxima, thePulseHeightMap, tmax, tmax_cluster, and validateGeometry_cfg::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 54 of file CSCHitFromStripOnly.cc.
References funct::abs(), CSCLayer::chamber(), clusterSize, fillPulseHeights(), findMaxima(), gainWeight, ganged(), CSCChamberSpecs::gangedStrips(), l1ctLayer2EG_cff::id, id_, createfilelist::int, isDeadStrip(), nano_mu_digi_cff::layer, layer_, LogTrace, makeCluster(), 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 46 of file CSCHitFromStripOnly.h.
References dt_dqm_sourceclient_common_cff::reco, and recoConditions_.
Referenced by CSCRecHitDBuilder::setConditions().
|
inline |
|
private |
Definition at line 87 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), fillPulseHeights(), and ~CSCHitFromStripOnly().
|
private |
Definition at line 104 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), makeStripData(), and runStrip().
|
private |
Definition at line 84 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), and runStrip().
|
private |
Definition at line 109 of file CSCHitFromStripOnly.h.
Referenced by ganged(), and setGanged().
|
private |
Definition at line 78 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), and runStrip().
|
private |
Definition at line 79 of file CSCHitFromStripOnly.h.
Referenced by runStrip().
|
private |
Definition at line 82 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), makeCluster(), and runStrip().
|
private |
Definition at line 80 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), isDeadStrip(), isNearDeadStrip(), runStrip(), and setConditions().
|
private |
Definition at line 105 of file CSCHitFromStripOnly.h.
Referenced by findHitOnStripPosition(), and runStrip().
|
private |
Definition at line 106 of file CSCHitFromStripOnly.h.
Referenced by findHitOnStripPosition(), and runStrip().
|
private |
Definition at line 100 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), and runStrip().
|
staticprivate |
Definition at line 91 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), and runStrip().
|
private |
Definition at line 99 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), and runStrip().
|
private |
Definition at line 98 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), makeStripData(), and runStrip().
|
private |
Definition at line 96 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), findMaxima(), isPeakOK(), and makeStripData().
|
private |
Definition at line 107 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), and runStrip().
|
private |
Definition at line 92 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), and isPeakOK().
|
private |
Definition at line 93 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), and isPeakOK().
|
private |
Definition at line 103 of file CSCHitFromStripOnly.h.
Referenced by makeStripData(), and runStrip().
|
private |
Definition at line 90 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), fillPulseHeights(), and runStrip().