CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
ShallowClustersProducer::NearDigis Struct Reference

Public Member Functions

float eta () const
 
float etaasymm () const
 
float etaX () const
 
 NearDigis (const SiStripClusterInfo &)
 
 NearDigis (const SiStripClusterInfo &, const edm::DetSetVector< SiStripProcessedRawDigi > &)
 
float outsideasymm () const
 

Public Attributes

float first
 
float last
 
float left
 
float Lleft
 
float max
 
float right
 
float Rright
 

Detailed Description

Definition at line 33 of file ShallowClustersProducer.cc.

Constructor & Destructor Documentation

◆ NearDigis() [1/2]

ShallowClustersProducer::NearDigis::NearDigis ( const SiStripClusterInfo info)

Definition at line 236 of file ShallowClustersProducer.cc.

References first, info(), last, left, Lleft, max, right, and Rright.

236  {
237  max = info.maxCharge();
238  left = info.maxIndex() > uint16_t(0) ? info.stripCharges()[info.maxIndex() - 1] : 0;
239  Lleft = info.maxIndex() > uint16_t(1) ? info.stripCharges()[info.maxIndex() - 2] : 0;
240  right = unsigned(info.maxIndex() + 1) < info.stripCharges().size() ? info.stripCharges()[info.maxIndex() + 1] : 0;
241  Rright = unsigned(info.maxIndex() + 2) < info.stripCharges().size() ? info.stripCharges()[info.maxIndex() + 2] : 0;
242  first = info.stripCharges()[0];
243  last = info.stripCharges()[info.width() - 1];
244 }
static const TGPicture * info(bool iBackgroundIsBlack)

◆ NearDigis() [2/2]

ShallowClustersProducer::NearDigis::NearDigis ( const SiStripClusterInfo info,
const edm::DetSetVector< SiStripProcessedRawDigi > &  rawProcessedDigis 
)

Definition at line 246 of file ShallowClustersProducer.cc.

References gpuClustering::adc, edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), dqmdumpme::first, info(), dqmdumpme::last, WZElectronSkims53X_cff::max, and edm::DetSetVector< T >::size().

247  {
248  edm::DetSetVector<SiStripProcessedRawDigi>::const_iterator digiframe = rawProcessedDigis.find(info.detId());
249  if (digiframe != rawProcessedDigis.end()) {
250  max = digiframe->data.at(info.maxStrip()).adc();
251  left = info.maxStrip() > uint16_t(0) ? digiframe->data.at(info.maxStrip() - 1).adc() : 0;
252  Lleft = info.maxStrip() > uint16_t(1) ? digiframe->data.at(info.maxStrip() - 2).adc() : 0;
253  right = unsigned(info.maxStrip() + 1) < digiframe->data.size() ? digiframe->data.at(info.maxStrip() + 1).adc() : 0;
254  Rright = unsigned(info.maxStrip() + 2) < digiframe->data.size() ? digiframe->data.at(info.maxStrip() + 2).adc() : 0;
255  first = digiframe->data.at(info.firstStrip()).adc();
256  last = digiframe->data.at(info.firstStrip() + info.width() - 1).adc();
257  } else {
258  *this = NearDigis(info);
259  }
260 }
static const TGPicture * info(bool iBackgroundIsBlack)
iterator find(det_id_type id)
Definition: DetSetVector.h:255
size_type size() const
Return the number of contained DetSets.
Definition: DetSetVector.h:250
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:316
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
uint16_t *__restrict__ uint16_t const *__restrict__ adc

Member Function Documentation

◆ eta()

float ShallowClustersProducer::NearDigis::eta ( ) const
inline

◆ etaasymm()

float ShallowClustersProducer::NearDigis::etaasymm ( ) const
inline

◆ etaX()

float ShallowClustersProducer::NearDigis::etaX ( ) const
inline

◆ outsideasymm()

float ShallowClustersProducer::NearDigis::outsideasymm ( ) const
inline

Member Data Documentation

◆ first

float ShallowClustersProducer::NearDigis::first

◆ last

float ShallowClustersProducer::NearDigis::last

◆ left

float ShallowClustersProducer::NearDigis::left

◆ Lleft

float ShallowClustersProducer::NearDigis::Lleft

Definition at line 36 of file ShallowClustersProducer.cc.

Referenced by NearDigis(), and ShallowClustersProducer::produce().

◆ max

float ShallowClustersProducer::NearDigis::max

◆ right

float ShallowClustersProducer::NearDigis::right

◆ Rright

float ShallowClustersProducer::NearDigis::Rright

Definition at line 36 of file ShallowClustersProducer.cc.

Referenced by NearDigis(), and ShallowClustersProducer::produce().