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 35 of file ShallowClustersProducer.h.

Constructor & Destructor Documentation

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

Definition at line 197 of file ShallowClustersProducer.cc.

References plotBeamSpotDB::first, plotBeamSpotDB::last, hpstanc_transforms::max, SiStripClusterInfo::maxCharge(), SiStripClusterInfo::maxIndex(), SiStripClusterInfo::stripCharges(), and SiStripClusterInfo::width().

Referenced by ShallowClustersProducer::produce().

197  {
198  max = info.maxCharge();
199  left = info.maxIndex() > uint16_t(0) ? info.stripCharges()[info.maxIndex()-1] : 0 ;
200  Lleft = info.maxIndex() > uint16_t(1) ? info.stripCharges()[info.maxIndex()-2] : 0 ;
201  right= unsigned(info.maxIndex()+1) < info.stripCharges().size() ? info.stripCharges()[info.maxIndex()+1] : 0 ;
202  Rright= unsigned(info.maxIndex()+2) < info.stripCharges().size() ? info.stripCharges()[info.maxIndex()+2] : 0 ;
203  first = info.stripCharges()[0];
204  last = info.stripCharges()[info.width()-1];
205 }
uint8_t maxCharge() const
uint16_t maxIndex() const
auto stripCharges() const -> decltype(cluster() ->amplitudes())
uint16_t width() const
ShallowClustersProducer::NearDigis::NearDigis ( const SiStripClusterInfo info,
const edm::DetSetVector< SiStripProcessedRawDigi > &  rawProcessedDigis 
)

Definition at line 208 of file ShallowClustersProducer.cc.

References ecalMGPA::adc(), SiStripClusterInfo::detId(), edm::DetSetVector< T >::end(), edm::DetSetVector< T >::find(), plotBeamSpotDB::first, SiStripClusterInfo::firstStrip(), plotBeamSpotDB::last, hpstanc_transforms::max, SiStripClusterInfo::maxStrip(), ShallowClustersProducer::moduleVars::moduleVars(), edm::DetSetVector< T >::size(), and SiStripClusterInfo::width().

208  {
209  edm::DetSetVector<SiStripProcessedRawDigi>::const_iterator digiframe = rawProcessedDigis.find(info.detId());
210  if( digiframe != rawProcessedDigis.end()) {
211  max = digiframe->data.at(info.maxStrip()).adc() ;
212  left = info.maxStrip() > uint16_t(0) ? digiframe->data.at(info.maxStrip()-1).adc() : 0 ;
213  Lleft = info.maxStrip() > uint16_t(1) ? digiframe->data.at(info.maxStrip()-2).adc() : 0 ;
214  right = unsigned(info.maxStrip()+1) < digiframe->data.size() ? digiframe->data.at(info.maxStrip()+1).adc() : 0 ;
215  Rright = unsigned(info.maxStrip()+2) < digiframe->data.size() ? digiframe->data.at(info.maxStrip()+2).adc() : 0 ;
216  first = digiframe->data.at(info.firstStrip()).adc();
217  last = digiframe->data.at(info.firstStrip()+info.width() - 1).adc();
218  } else {
219  *this = NearDigis(info);
220  }
221 }
int adc(sample_type sample)
get the ADC sample (12 bits)
uint16_t firstStrip() const
iterator find(det_id_type id)
Definition: DetSetVector.h:290
uint16_t width() const
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:361
size_type size() const
Return the number of contained DetSets.
Definition: DetSetVector.h:283
uint16_t maxStrip() const
uint32_t detId() const
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:104

Member Function Documentation

float ShallowClustersProducer::NearDigis::eta ( ) const
inline
float ShallowClustersProducer::NearDigis::etaasymm ( ) const
inline
float ShallowClustersProducer::NearDigis::etaX ( ) const
inline
float ShallowClustersProducer::NearDigis::outsideasymm ( ) const
inline

Member Data Documentation

float ShallowClustersProducer::NearDigis::first

Definition at line 38 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

float ShallowClustersProducer::NearDigis::last

Definition at line 38 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

float ShallowClustersProducer::NearDigis::left
float ShallowClustersProducer::NearDigis::Lleft

Definition at line 38 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

float ShallowClustersProducer::NearDigis::max

Definition at line 38 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().

float ShallowClustersProducer::NearDigis::right
float ShallowClustersProducer::NearDigis::Rright

Definition at line 38 of file ShallowClustersProducer.h.

Referenced by ShallowClustersProducer::produce().