CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCHitFromStripOnly.cc
Go to the documentation of this file.
1 // This is CSCHitFromStripOnly.cc
2 
8 
10 
13 
16 
17 #include <algorithm>
18 #include <string>
19 #include <vector>
20 //#include <iostream>
21 
22 CSCHitFromStripOnly::CSCHitFromStripOnly( const edm::ParameterSet& ps ) : recoConditions_(0), calcped_(0), ganged_(0) {
23 
24  useCalib = ps.getParameter<bool>("CSCUseCalibrations");
25  bool useStaticPedestals = ps.getParameter<bool>("CSCUseStaticPedestals");
26  int noOfTimeBinsForDynamicPed = ps.getParameter<int>("CSCNoOfTimeBinsForDynamicPedestal");
27 
28  theThresholdForAPeak = ps.getParameter<double>("CSCStripPeakThreshold");
29  theThresholdForCluster = ps.getParameter<double>("CSCStripClusterChargeCut");
30 
31  LogTrace("CSCRecHit") << "[CSCHitFromStripOnly] CSCUseStaticPedestals = " << useStaticPedestals;
32  if ( !useStaticPedestals ) LogTrace("CSCRecHit") << "[CSCHitFromStripOnly] CSCNoOfTimeBinsForDynamicPedestal = "
33  << noOfTimeBinsForDynamicPed;
34 
35  if ( useStaticPedestals ) {
37  }
38  else {
39  if ( noOfTimeBinsForDynamicPed == 1 ) {
41  }
42  else {
43  calcped_ = new CSCDynamicPedestal2(); // NORMAL DEFAULT!
44  }
45  }
46 
47 }
48 
49 
51  delete calcped_;
52 }
53 
54 
55 /* runStrip
56  *
57  * Search for strip with ADC output exceeding theThresholdForAPeak. For each of these strips,
58  * build a cluster of strip of size theClusterSize (typically 3 strips). Finally, make
59  * a Strip Hit out of these clusters by finding the center-of-mass position of the hit
60  */
61 std::vector<CSCStripHit> CSCHitFromStripOnly::runStrip( const CSCDetId& id, const CSCLayer* layer,
62  const CSCStripDigiCollection::Range& rstripd )
63 {
64 
65  std::vector<CSCStripHit> hitsInLayer;
66 
67  // cache layer info for ease of access
68  id_ = id;
69  layer_ = layer;
70  nstrips_ = layer->chamber()->specs()->nStrips();
71 
72  setGanged(false);
73  if ( id_.ring() == 4 && layer_->chamber()->specs()->gangedStrips() ) setGanged(true); //@@ ONLY ME1/1A CAN BE GANGED
74 
75  LogTrace("CSCHitFromStripOnly") << "[CSCHitFromStripOnly::runStrip] id= " << id_ <<
76  " nstrips= " << nstrips_ << " ganged strips? " << ganged();
77 
78  tmax_cluster = 5;
79 
80  // Get gain correction weights for all strips in layer, and cache in gainWeight.
81  // They're used in fillPulseHeights below.
82  // When ME11a is ganged we only need the first 16 values of the 48 filled,
83  // but 17-48 are just duplicates of 1-16 anyway
84 
85  if ( useCalib ) {
87 
88  // *** START DUMP gainWeight
89  // std::cout << "gainWeight for id= " << id_ << " nstrips= " << nstrips_ << std::endl;
90  // for ( size_t i = 0; i!=10; ++i ) {
91  // for ( size_t j = 0; j!=8; ++j ) {
92  // std::cout << gainWeight[i*8 + j] << " ";
93  // }
94  // std::cout << std::endl;
95  // }
96  // *** END DUMP gainWeight
97 
98  }
99 
100  // Store pulseheights from SCA and find maxima (potential hits)
101  fillPulseHeights( rstripd );
102  findMaxima(id);
103 
104  // Make a Strip Hit out of each strip local maximum
105  for ( size_t imax = 0; imax != theMaxima.size(); ++imax ) {
106 
107  // Initialize parameters entering the CSCStripHit
109  theStrips.clear();
110  strips_adc.clear();
111  strips_adcRaw.clear();
112 
113  // makeCluster calls findHitOnStripPosition to determine the centroid position
114 
115  // Remember, the array starts at 0, but the stripId starts at 1...
116  float strippos = makeCluster( theMaxima[imax]+1 );
117 
118  //if ( strippos < 0 || tmax_cluster < 3 ){
119  // the strippos (as calculated here) is not used later on in
121  // with the negative charges allowed it can become negative
122  if ( tmax_cluster < 3 ){
123  theClosestMaximum.push_back(99); // to keep proper vector size
124  continue;
125  }
126  //---- If two maxima are too close the error assigned will be width/sqrt(12) - see CSCXonStrip_MatchGatti.cc
127  int maximum_to_left = 99; //---- If there is one maximum - the distance is set to 99 (strips)
128  int maximum_to_right = 99;
129  if(imax<theMaxima.size()-1){
130  maximum_to_right = theMaxima.at(imax+1) - theMaxima.at(imax);
131  }
132  if(imax>0 ){
133  maximum_to_left = theMaxima.at(imax-1) - theMaxima.at(imax);
134  }
135  if(fabs(maximum_to_right) < fabs(maximum_to_left)){
136  theClosestMaximum.push_back(maximum_to_right);
137  }
138  else{
139  theClosestMaximum.push_back(maximum_to_left);
140  }
141 
142  //---- Check if a neighbouring strip is a dead strip
143  //bool deadStrip = isNearDeadStrip(id, theMaxima.at(imax));
144  bool deadStripL = isDeadStrip(id, theMaxima.at(imax)-1);
145  bool deadStripR = isDeadStrip(id, theMaxima.at(imax)+1);
146  short int aDeadStrip = 0;
147  if(!deadStripL && !deadStripR){
148  aDeadStrip = 0;
149  }
150  else if(deadStripL && deadStripR){
151  aDeadStrip = 255;
152  }
153  else{
154  if(deadStripL){
155  aDeadStrip = theMaxima.at(imax)-1;
156  }
157  else{
158  aDeadStrip = theMaxima.at(imax)+1;
159  }
160  }
161 
164  std::vector<int> theL1AStrips;
165  for(int ila=0; ila<(int)theStrips.size(); ila++){
166  bool stripMatchCounter=false;
167  for ( CSCStripDigiCollection::const_iterator itl1 = rstripd.first; itl1 != rstripd.second; ++itl1 ) {
168  int stripNproto = (*itl1).getStrip();
169  if( !ganged() ){
170  if(theStrips[ila]==stripNproto){
171  stripMatchCounter=true;
172  std::vector<int> L1AP=(*itl1).getL1APhase();
173  int L1AbitOnPlace=0;
174  for(int iBit=0; iBit<(int)L1AP.size(); iBit++){
175  L1AbitOnPlace=L1AbitOnPlace|(L1AP[iBit] << (15-iBit));
176  }
177  theL1AStrips.push_back(theStrips[ila] | L1AbitOnPlace);
178  }
179  }
180  else{
181  for(int tripl=0; tripl<3; ++tripl){
182  if(theStrips[ila]==(stripNproto+tripl*16)){
183  stripMatchCounter=true;
184  std::vector<int> L1AP=(*itl1).getL1APhase();
185  int L1AbitOnPlace=0;
186  for(int iBit=0; iBit<(int)L1AP.size(); iBit++){
187  L1AbitOnPlace=L1AbitOnPlace|(L1AP[iBit] << (15-iBit));
188  }
189  theL1AStrips.push_back(theStrips[ila] | L1AbitOnPlace);
190  }
191  }
192  }
193  }
194  if(!stripMatchCounter){
195  theL1AStrips.push_back(theStrips[ila]);
196  }
197  }
199 
200  CSCStripHit striphit( id, strippos, tmax_cluster, theL1AStrips, strips_adc, strips_adcRaw,
201  theConsecutiveStrips.at(imax), theClosestMaximum.at(imax), aDeadStrip);
202  hitsInLayer.push_back( striphit );
203  }
204 
206  /*
207  for(std::vector<CSCStripHit>::const_iterator itSHit=hitsInLayer.begin(); itSHit!=hitsInLayer.end(); ++itSHit){
208  (*itSHit).print();
209  }
210  */
211 
212  return hitsInLayer;
213 }
214 
215 
216 /* makeCluster
217  *
218  */
219 float CSCHitFromStripOnly::makeCluster( int centerStrip ) {
220 
221  float strippos = -1.;
223  std::vector<CSCStripHitData> stripDataV;
224 
225  // We only want to use strip position in terms of strip # for the strip hit. //@@ What other choice is there?
226 
227  // If the cluster size is such that you go beyond the edge of detector, shrink cluster appropriately
228  for ( int i = 1; i < theClusterSize/2 + 1; ++i ) {
229 
230  if ( centerStrip - i < 1 || centerStrip + i > int(nstrips_) ) {
231 
232  // Shrink cluster size, but keep it an odd number of strips.
233  clusterSize = 2*i - 1;
234  }
235  }
236  for ( int i = -clusterSize/2; i <= clusterSize/2; ++i ) {
237  CSCStripHitData data = makeStripData(centerStrip, i);
238  stripDataV.push_back( data );
239  theStrips.push_back( centerStrip + i );
240  }
241  strippos = findHitOnStripPosition( stripDataV, centerStrip );
242 
243  LogTrace("CSCHitFromStripOnly") << "[CSCHitFromStripOnly::makeCluster] centerStrip= " << centerStrip <<
244  " strippos=" << strippos;
245 
246  return strippos;
247 }
248 
249 
254 
255  CSCStripHitData prelimData;
256  int thisStrip = centerStrip+offset;
257 
258  int tmax = thePulseHeightMap[centerStrip-1].tmax();
259  tmax_cluster = tmax;
260 
261  std::vector<float> adc(4);
262  std::vector<float> adcRaw(4);
263 
264  // Fill adc & adcRaw
265 
266  int istart = tmax-1;
267  int istop = std::min( tmax+2, 7 ) ; // there are only time bins 0-7
268  adc[3] = 0.1; // in case it isn't filled
269 
270  if ( tmax > 2 && tmax < 7 ) { // for time bins 3-6
271  int ibin = thisStrip-1;
272 
273  std::copy( thePulseHeightMap[ibin].ph().begin()+istart,
274  thePulseHeightMap[ibin].ph().begin()+istop+1, adc.begin() );
275 
276  std::copy( thePulseHeightMap[ibin].phRaw().begin()+istart,
277  thePulseHeightMap[ibin].phRaw().begin()+istop+1, adcRaw.begin() );
278  }
279  else {
280  adc[0] = 0.1;
281  adc[1] = 0.1;
282  adc[2] = 0.1;
283  adc[3] = 0.1;
284  adcRaw = adc;
285  LogTrace("CSCRecHit") << "[CSCHitFromStripOnly::makeStripData] Tmax out of range: contact CSC expert!";
286  }
287 
288  if ( offset == 0 ) {
289  prelimData = CSCStripHitData(thisStrip, tmax_cluster, adcRaw, adc);
290  } else {
291  int sign = offset>0 ? 1 : -1;
292  // If there's another maximum that would like to use part of this cluster,
293  // it gets shared in proportion to the height of the maxima
294  for ( int i = 1; i <= clusterSize/2; ++i ) {
295 
296  // Find the direction of the offset
297  int testStrip = thisStrip + sign*i;
298  std::vector<int>::iterator otherMax = find(theMaxima.begin(), theMaxima.end(), testStrip-1);
299 
300  // No other maxima found, so just store
301  if ( otherMax == theMaxima.end() ) {
302  prelimData = CSCStripHitData(thisStrip, tmax_cluster, adcRaw, adc); }
303  else {
304 
305  // Another maximum found - share
306  std::vector<float> adc1(4);
307  std::vector<float> adcRaw1(4);
308  std::vector<float> adc2(4);
309  std::vector<float> adcRaw2(4);
310  // In case we only copy (below) into 3 of the 4 bins i.e. when istart=5, istop=7
311  adc1[3] = 0.1;
312  adc2[3] = 0.1;
313  adcRaw1[3] = 0.1;
314  adcRaw2[3] = 0.1;
315 
316  // Fill adcN with content of time bins tmax-1 to tmax+2 (if it exists!)
317  if ( tmax > 2 && tmax < 7 ) { // for time bin tmax from 3-6
318  int ibin = testStrip-1;
319  int jbin = centerStrip-1;
320  std::copy(thePulseHeightMap[ibin].ph().begin()+istart,
321  thePulseHeightMap[ibin].ph().begin()+istop+1, adc1.begin());
322 
323  std::copy(thePulseHeightMap[ibin].phRaw().begin()+istart,
324  thePulseHeightMap[ibin].phRaw().begin()+istop+1, adcRaw1.begin());
325 
326  std::copy(thePulseHeightMap[jbin].ph().begin()+istart,
327  thePulseHeightMap[jbin].ph().begin()+istop+1, adc2.begin());
328 
329  std::copy(thePulseHeightMap[jbin].phRaw().begin()+istart,
330  thePulseHeightMap[jbin].phRaw().begin()+istop+1, adcRaw2.begin());
331  }
332  else {
333  adc1.assign(4, 0.1);
334  adcRaw1 = adc1;
335  adc2.assign(4, 0.1);
336  adcRaw2 = adc2;
337  }
338 
339  // Scale shared strip B ('adc') by ratio of peak of ADC counts from central strip A ('adc2')
340  // to sum of A and neighbouring maxima C ('adc1')
341 
342  for (size_t k = 0; k < 4; ++k){
343  if(adc1[k]>0 && adc2[k]>0) adc[k] = adc[k] * adc2[k] / ( adc1[k]+adc2[k] );
344  if(adcRaw1[k]>0 && adcRaw2[k]>0) adcRaw[k] = adcRaw[k] * adcRaw2[k] / ( adcRaw1[k]+adcRaw2[k] );
345  }
346  prelimData = CSCStripHitData(thisStrip, tmax_cluster, adcRaw, adc);
347  }
348  }
349  }
350  return prelimData;
351 }
352 
353 
354 /* fillPulseHeights
355  *
356  */
358 
359  // Loop over strip digis in one CSCLayer and fill PulseHeightMap with pedestal-subtracted
360  // SCA pulse heights.
361 
362  thePulseHeightMap.clear();
363  thePulseHeightMap.resize(100); //@@ WHY NOT JUST 80?
364 
365  // for storing sca pulseheights once they may no longer be integer (e.g. after ped subtraction)
366  std::vector<float> sca;
367  sca.reserve(8);
368  for ( CSCStripDigiCollection::const_iterator it = rstripd.first; it != rstripd.second; ++it ) {
369  int thisChannel = (*it).getStrip();
370  std::vector<int> scaRaw = (*it).getADCCounts();
371  sca.clear();
372  // Fill sca from scaRaw, implicitly converting to float
373  std::copy( scaRaw.begin(), scaRaw.end(), std::back_inserter( sca ));
374 
375  //@@ Find bin with largest pulseheight (_before_ ped subtraction - shouldn't matter, right?)
376  int tmax = std::max_element( sca.begin(), sca.end() ) - sca.begin(); // counts from 0
377 
378  // get pedestal - calculated as appropriate - for this sca pulse
379  float ped = calcped_->pedestal(sca, recoConditions_, id_, thisChannel );
380 
381  // subtract the pedestal (from BOTH sets of sca pulseheights)
382  std::for_each( sca.begin(), sca.end(), CSCSubtractPedestal( ped ) );
383  std::for_each( scaRaw.begin(), scaRaw.end(), CSCSubtractPedestal( ped ) );
384 
385  //@@ Max in first 3 or last time bins is unacceptable, if so set to zero (why?)
386  float phmax = 0.;
387  if ( tmax > 2 && tmax < 7 ) {
388  phmax = sca[tmax];
389  }
390 
391  // Fill the map, possibly apply gains from cond data, and unfold ME1A channels
392  // (To apply gains use CSCStripData::op*= which scales only the non-raw sca ph's;
393  // but note that both sca & scaRaw are pedestal-subtracted.)
394 
395  // From StripDigi, thisChannel labels strip channel. Values phmax, tmax, scaRaw, sca belong to thisChannel
396  thePulseHeightMap[thisChannel-1] = CSCStripData( thisChannel, phmax, tmax, scaRaw, sca );
397  if ( useCalib ) thePulseHeightMap[thisChannel-1] *= gainWeight[thisChannel-1];
398 
399  // for ganged ME1a need to duplicate values on istrip=thisChannel to iStrip+16 and iStrip+32
400  if ( ganged() ) {
401  for ( int j = 1; j < 3; ++j ) {
402  thePulseHeightMap[thisChannel-1+16*j] = CSCStripData( thisChannel+16*j, phmax, tmax, scaRaw, sca );
403  if ( useCalib ) thePulseHeightMap[thisChannel-1+16*j] *= gainWeight[thisChannel-1];
404  }
405  }
406 
407  }
408 }
409 
410 
411 /* findMaxima
412  *
413  * fills vector 'theMaxima' with the local maxima in the pulseheight distribution
414  * of the strips. The threshold defining a maximum is a configurable parameter.
415  * A typical value is 30.
416  */
418 
419  theMaxima.clear();
420  theConsecutiveStrips.clear();
421  theClosestMaximum.clear();
422  for ( size_t i=0; i!=thePulseHeightMap.size(); ++i ) {
423 
424  // sum 3 strips so that hits between strips are not suppressed
425  float heightCluster = 0.;
426 
427  bool maximumFound = false;
428  // Left edge of chamber
429  if(!isDeadStrip(id, i+1)){ // is it i or i+1
430  if ( i == 0 ) {
431  heightCluster = thePulseHeightMap[i].phmax()+thePulseHeightMap[i+1].phmax();
432  // Have found a strip Hit if...
433  if(thePulseHeightMap[i].phmax() >= thePulseHeightMap[i+1].phmax() &&
434  isPeakOK(i,heightCluster)){
435  theMaxima.push_back(i);
436  maximumFound = true;
437  }
438  // Right edge of chamber
439  } else if ( i == thePulseHeightMap.size()-1) {
440  heightCluster = thePulseHeightMap[i-1].phmax()+thePulseHeightMap[i].phmax();
441  // Have found a strip Hit if...
442  if(thePulseHeightMap[i].phmax() > thePulseHeightMap[i-1].phmax() &&
443  isPeakOK(i,heightCluster)){
444  theMaxima.push_back(i);
445  maximumFound = true;
446  }
447  // Any other strips
448  } else {
449  heightCluster = thePulseHeightMap[i-1].phmax()+thePulseHeightMap[i].phmax()+thePulseHeightMap[i+1].phmax();
450  // Have found a strip Hit if...
451  if(thePulseHeightMap[i].phmax() > thePulseHeightMap[i-1].phmax() &&
452  thePulseHeightMap[i].phmax() >= thePulseHeightMap[i+1].phmax() &&
453  isPeakOK(i,heightCluster)){
454  theMaxima.push_back(i);
455  maximumFound = true;
456  }
457  }
458  }
459  //---- Consecutive strips with charge (real cluster); if too wide - measurement is not accurate
460  if(maximumFound){
461  int numberOfConsecutiveStrips = 1;
462  float testThreshold = 10.;//---- ADC counts;
463  //---- this is not XTalk corrected so it is correct in first approximation only
464  int j = 0;
465  for(int l = 0; l<8; ++l){
466  if(j<0) edm::LogWarning("FailedStripCountingWrongConsecutiveStripNumber") << "This should never occur!!! Contact CSC expert!";
467  ++j;
468  bool signalPresent = false;
469  for(int k = 0; k<2; ++k){
470  j*= -1;//---- check from left and right
471  int anotherConsecutiveStrip = i+j;
472  if(anotherConsecutiveStrip>=0 && anotherConsecutiveStrip<int( thePulseHeightMap.size() )){
473  if(thePulseHeightMap[anotherConsecutiveStrip].phmax()>testThreshold){
474  ++numberOfConsecutiveStrips;
475  signalPresent = true;
476  }
477  }
478  }
479  if(!signalPresent){
480  break;
481  }
482  }
483  theConsecutiveStrips.push_back(numberOfConsecutiveStrips);
484  }
485  }
486 }
487 //
488 
489 bool CSCHitFromStripOnly::isPeakOK(int iStrip, float heightCluster){
490  int i = iStrip;
491  bool peakOK = ( thePulseHeightMap[i].phmax()>theThresholdForAPeak &&
492  heightCluster > theThresholdForCluster &&
493  // ... and proper peak time; note that the values below are used elsewhere in this file;
494  // they should become parameters or at least constants defined in appropriate place
495  thePulseHeightMap[i].tmax() > 2 && thePulseHeightMap[i].tmax() < 7);
496  return peakOK;
497 }
498 
499 
500 /* findHitOnStripPosition
501  *
502  */
503 float CSCHitFromStripOnly::findHitOnStripPosition( const std::vector<CSCStripHitData>& data, const int& centerStrip ) {
504 
505  float strippos = -1.;
506 
507  if ( data.size() < 1 ) return strippos;
508 
509  // biggestStrip is strip with largest pulse height
510  // Use pointer subtraction
511 
512  int biggestStrip = max_element(data.begin(), data.end()) - data.begin();
513  strippos = data[biggestStrip].strip() * 1.;
514 
515  // If more than one strip: use centroid to find center of cluster
516  // but only use time bin == tmax (otherwise, bias centroid).
517  float sum = 0.;
518  float sum_w= 0.;
519 
520  std::vector<float> w(4);
521  std::vector<float> wRaw(4);
522 
523  for ( size_t i = 0; i != data.size(); ++i ) {
524  w = data[i].ph();
525  wRaw = data[i].phRaw();
526 
527  // (Require ADC to be > 0.)
528  // No later studies suggest that this only do harm
529  /*
530  for ( size_t j = 0; j != w.size(); ++j ) {
531  if ( w[j] < 0. ) w[j] = 0.001;
532  }
533  */
534 
535 
536  // Fill the data members
537  std::copy( w.begin(), w.end(), std::back_inserter(strips_adc));
538  std::copy( wRaw.begin(), wRaw.end(), std::back_inserter(strips_adcRaw));
539 
540  if ( data[i].strip() < 1 ){
541  LogTrace("CSCRecHit") << "[CSCHitFromStripOnly::findHitOnStripPosition] problem in indexing of strip, strip= "
542  << data[i].strip();
543  }
544  sum_w += w[1];
545  sum += w[1] * data[i].strip();
546  }
547 
548  if ( sum_w > 0.) strippos = sum / sum_w;
549 
550  return strippos;
551 }
552 
553 bool CSCHitFromStripOnly::isNearDeadStrip(const CSCDetId& id, int centralStrip){
554 
555  //@@ Tim says: not sure I understand this properly... but just moved code to CSCRecoConditions
556  // where it can handle the conversion from strip to channel etc.
557  return recoConditions_->nearBadStrip( id, centralStrip );
558 
559 }
560 
561 bool CSCHitFromStripOnly::isDeadStrip(const CSCDetId& id, int centralStrip){
562  return recoConditions_->badStrip( id, centralStrip );
563 
564 }
565 
566 // Define space for static
int adc(sample_type sample)
get the ADC sample (12 bits)
int nStrips() const
const CSCLayer * layer_
CSCPedestalChoice * calcped_
T getParameter(std::string const &) const
void findMaxima(const CSCDetId &id)
Find local maxima.
int i
Definition: DBlmapReader.cc:9
std::vector< int > theConsecutiveStrips
std::vector< CSCStripHit > runStrip(const CSCDetId &id, const CSCLayer *layer, const CSCStripDigiCollection::Range &rstripd)
std::vector< int > theStrips
bool isDeadStrip(const CSCDetId &id, int centralStrip)
Is the strip &#39;bad&#39;?
#define min(a, b)
Definition: mlp_lapack.h:161
bool nearBadStrip(const CSCDetId &id, int geomStrip) const
Is a neighbour bad?
std::vector< int > theClosestMaximum
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
float findHitOnStripPosition(const std::vector< CSCStripHitData > &data, const int &centerStrip)
Find position of hit in strip cluster in terms of strip #.
CSCHitFromStripOnly(const edm::ParameterSet &ps)
static const int theClusterSize
PulseHeightMap thePulseHeightMap
const CSCChamberSpecs * specs() const
Definition: CSCChamber.h:42
const CSCRecoConditions * recoConditions_
int j
Definition: DBlmapReader.cc:9
virtual float pedestal(const std::vector< float > &sca, const CSCRecoConditions *cond=0, const CSCDetId id=0, int ichan=0)=0
bool gangedStrips() const
bool badStrip(const CSCDetId &id, int geomStrip) const
Is the strip bad?
unsigned int offset(bool)
float makeCluster(int centerStrip)
Make clusters using local maxima.
#define LogTrace(id)
bool isNearDeadStrip(const CSCDetId &id, int centralStrip)
Is either neighbour &#39;bad&#39;?
int k[5][pyjets_maxn]
int ring() const
Definition: CSCDetId.h:77
static const double tmax[3]
std::vector< DigiType >::const_iterator const_iterator
std::vector< float > strips_adcRaw
std::vector< int > theMaxima
void stripWeights(const CSCDetId &id, short int nstrips, float *weights) const
bool isPeakOK(int iStrip, float heightCluster)
#define begin
Definition: vmac.h:31
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::vector< float > strips_adc
std::pair< const_iterator, const_iterator > Range
T w() const
void fillPulseHeights(const CSCStripDigiCollection::Range &rstripd)
Store SCA pulseheight information from strips in digis of one layer.
CSCStripHitData makeStripData(int centerStrip, int offset)
const CSCChamber * chamber() const
Definition: CSCLayer.h:52