CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
SiStripHitEfficiencyWorker::EffTkMap Struct Reference

Public Member Functions

 EffTkMap ()
 
 EffTkMap (std::unique_ptr< TkHistoMap > &&total, std::unique_ptr< TkHistoMap > &&found)
 
void fill (uint32_t id, bool found, float weight=1.)
 

Public Attributes

std::unique_ptr< TkHistoMaphFound
 
std::unique_ptr< TkHistoMaphTotal
 

Detailed Description

Definition at line 146 of file SiStripHitEfficiencyWorker.cc.

Constructor & Destructor Documentation

◆ EffTkMap() [1/2]

SiStripHitEfficiencyWorker::EffTkMap::EffTkMap ( )
inline

Definition at line 147 of file SiStripHitEfficiencyWorker.cc.

147 : hTotal(nullptr), hFound(nullptr) {}

◆ EffTkMap() [2/2]

SiStripHitEfficiencyWorker::EffTkMap::EffTkMap ( std::unique_ptr< TkHistoMap > &&  total,
std::unique_ptr< TkHistoMap > &&  found 
)
inline

Member Function Documentation

◆ fill()

void SiStripHitEfficiencyWorker::EffTkMap::fill ( uint32_t  id,
bool  found,
float  weight = 1. 
)
inline

Definition at line 151 of file SiStripHitEfficiencyWorker.cc.

References newFWLiteAna::found, hFound, and hTotal.

Referenced by SiStripHitEfficiencyWorker::fillForTraj().

151  {
152  hTotal->fill(id, weight);
153  if (found) {
154  hFound->fill(id, weight);
155  }
156  }
Definition: weight.py:1

Member Data Documentation

◆ hFound

std::unique_ptr<TkHistoMap> SiStripHitEfficiencyWorker::EffTkMap::hFound

Definition at line 158 of file SiStripHitEfficiencyWorker.cc.

Referenced by fill().

◆ hTotal

std::unique_ptr<TkHistoMap> SiStripHitEfficiencyWorker::EffTkMap::hTotal

Definition at line 158 of file SiStripHitEfficiencyWorker.cc.

Referenced by fill().