#include <CSCHitFromStripOnly.h>
Public Types | |
typedef std::vector< CSCStripData > | PulseHeightMap |
Public Member Functions | |
CSCHitFromStripOnly (const edm::ParameterSet &ps) | |
std::vector< CSCStripHit > | runStrip (const CSCDetId &id, const CSCLayer *layer, const CSCStripDigiCollection::Range &rstripd) |
void | setConditions (const CSCRecoConditions *reco) |
~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) |
Is the strip 'bad'? More... | |
bool | isNearDeadStrip (const CSCDetId &id, int centralStrip) |
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] |
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 33 of file CSCHitFromStripOnly.h.
typedef std::vector<CSCStripData> CSCHitFromStripOnly::PulseHeightMap |
Definition at line 38 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 334 of file CSCHitFromStripOnly.cc.
References calcped_, filterCSVwithJSON::copy, gainWeight, id_, j, CSCPedestalChoice::pedestal(), recoConditions_, CSCDetId::ring(), thePulseHeightMap, tmax, and useCalib.
Referenced by runStrip().
|
private |
Find position of hit in strip cluster in terms of strip #.
Definition at line 479 of file CSCHitFromStripOnly.cc.
References filterCSVwithJSON::copy, i, LogTrace, strip(), strips_adc, strips_adcRaw, and w().
Referenced by makeCluster().
|
private |
Find local maxima.
Definition at line 393 of file CSCHitFromStripOnly.cc.
References i, isDeadStrip(), isPeakOK(), j, gen::k, prof2calltree::l, theClosestMaximum, theConsecutiveStrips, theMaxima, and thePulseHeightMap.
Referenced by runStrip().
|
private |
Is the strip 'bad'?
Definition at line 536 of file CSCHitFromStripOnly.cc.
References CSCRecoConditions::badStrip(), and recoConditions_.
Referenced by findMaxima(), and runStrip().
|
private |
Is either neighbour 'bad'?
Definition at line 528 of file CSCHitFromStripOnly.cc.
References CSCRecoConditions::nearBadStrip(), and recoConditions_.
|
private |
Definition at line 465 of file CSCHitFromStripOnly.cc.
References i, thePulseHeightMap, theThresholdForAPeak, and theThresholdForCluster.
Referenced by findMaxima().
|
private |
Make clusters using local maxima.
Definition at line 199 of file CSCHitFromStripOnly.cc.
References clusterSize, data, findHitOnStripPosition(), i, makeStripData(), nstrips_, theClusterSize, and theStrips.
Referenced by runStrip().
|
private |
makeStripData
Definition at line 230 of file CSCHitFromStripOnly.cc.
References ecalMGPA::adc(), begin, clusterSize, filterCSVwithJSON::copy, spr::find(), i, gen::k, LogTrace, min, evf::evtn::offset(), theMaxima, thePulseHeightMap, tmax, and tmax_cluster.
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 control StripHit content!!!) LA1
Definition at line 61 of file CSCHitFromStripOnly.cc.
References CSCLayer::chamber(), clusterSize, fillPulseHeights(), findMaxima(), gainWeight, errorMatrix2Lands_multiChannel::id, id_, isDeadStrip(), layer_, makeCluster(), CSCChamberSpecs::nStrips(), nstrips_, recoConditions_, CSCDetId::ring(), 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().
|
private |
Definition at line 89 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), fillPulseHeights(), and ~CSCHitFromStripOnly().
|
private |
Definition at line 107 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), makeStripData(), and runStrip().
|
private |
Definition at line 86 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), and runStrip().
|
private |
Definition at line 80 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), and runStrip().
|
private |
Definition at line 81 of file CSCHitFromStripOnly.h.
Referenced by runStrip().
|
private |
Definition at line 84 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), and runStrip().
|
private |
Definition at line 82 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), isDeadStrip(), isNearDeadStrip(), runStrip(), and setConditions().
|
private |
Definition at line 108 of file CSCHitFromStripOnly.h.
Referenced by findHitOnStripPosition(), and runStrip().
|
private |
Definition at line 109 of file CSCHitFromStripOnly.h.
Referenced by findHitOnStripPosition(), and runStrip().
|
private |
Definition at line 103 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), and runStrip().
|
staticprivate |
Definition at line 93 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), and runStrip().
|
private |
Definition at line 102 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), and runStrip().
|
private |
Definition at line 101 of file CSCHitFromStripOnly.h.
Referenced by findMaxima(), makeStripData(), and runStrip().
|
private |
Definition at line 99 of file CSCHitFromStripOnly.h.
Referenced by fillPulseHeights(), findMaxima(), isPeakOK(), and makeStripData().
|
private |
Definition at line 110 of file CSCHitFromStripOnly.h.
Referenced by makeCluster(), and runStrip().
|
private |
Definition at line 94 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), and isPeakOK().
|
private |
Definition at line 95 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), and isPeakOK().
|
private |
Definition at line 106 of file CSCHitFromStripOnly.h.
Referenced by makeStripData(), and runStrip().
|
private |
Definition at line 92 of file CSCHitFromStripOnly.h.
Referenced by CSCHitFromStripOnly(), fillPulseHeights(), and runStrip().