CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
MeasurementTrackerImpl Class Referencefinal

#include <MeasurementTrackerImpl.h>

Inheritance diagram for MeasurementTrackerImpl:
MeasurementTracker MeasurementDetSystem

Public Types

typedef std::unordered_map
< unsigned int, MeasurementDet * > 
DetContainer
 
enum  QualityFlags {
  BadModules =1, BadAPVFibers =2, BadStrips =4, MaskBad128StripBlocks =8,
  BadROCs =2
}
 
- Public Types inherited from MeasurementTracker
enum  QualityFlags {
  BadModules =1, BadAPVFibers =2, BadStrips =4, MaskBad128StripBlocks =8,
  BadROCs =2
}
 

Public Member Functions

const DetContainerallDets () const
 For debug only. More...
 
const MeasurementDetfindDet (const DetId &id) const
 
const GeometricSearchTrackergeometricSearchTracker () const
 
const TrackingGeometrygeomTracker () const
 
const std::vector
< TkGluedMeasurementDet > & 
gluedDets () const
 
MeasurementDetWithData idToDet (const DetId &id, const MeasurementTrackerEvent &data) const
 MeasurementDetSystem interface (won't be overloaded anymore) More...
 
const MeasurementDetidToDetBare (const DetId &id, const MeasurementTrackerEvent &data) const
 
 MeasurementTrackerImpl (const edm::ParameterSet &conf, const PixelClusterParameterEstimator *pixelCPE, const StripClusterParameterEstimator *stripCPE, const SiStripRecHitMatcher *hitMatcher, const TrackerGeometry *trackerGeom, const GeometricSearchTracker *geometricSearchTracker, const SiStripQuality *stripQuality, int stripQualityFlags, int stripQualityDebugFlags, const SiPixelQuality *pixelQuality, const SiPixelFedCabling *pixelCabling, int pixelQualityFlags, int pixelQualityDebugFlags)
 
virtual const
PxMeasurementConditionSet
pixelDetConditions () const
 
const std::vector
< TkPixelMeasurementDet > & 
pixelDets () const
 
virtual const
StMeasurementConditionSet
stripDetConditions () const
 Provide templates to be filled in. More...
 
const std::vector
< TkStripMeasurementDet > & 
stripDets () const
 
virtual ~MeasurementTrackerImpl ()
 
- Public Member Functions inherited from MeasurementTracker
const GeometricSearchTrackergeometricSearchTracker () const
 
const TrackingGeometrygeomTracker () const
 
 MeasurementTracker (TrackerGeometry const *trackerGeom, GeometricSearchTracker const *geometricSearchTracker)
 
virtual ~MeasurementTracker ()
 

Protected Member Functions

void addGluedDet (const GluedGeomDet *gd)
 
void addPixelDet (const GeomDet *gd)
 
void addPixelDets (const TrackingGeometry::DetContainer &dets)
 
void addStripDet (const GeomDet *gd)
 
void addStripDets (const TrackingGeometry::DetContainer &dets)
 
void initGluedDet (TkGluedMeasurementDet &det)
 
void initialize ()
 
void initializePixelStatus (const SiPixelQuality *stripQuality, const SiPixelFedCabling *pixelCabling, int qualityFlags, int qualityDebugFlags)
 
void initializeStripStatus (const SiStripQuality *stripQuality, int qualityFlags, int qualityDebugFlags)
 
void initPxMeasurementConditionSet (std::vector< TkPixelMeasurementDet > &pixelDets)
 
void initStMeasurementConditionSet (std::vector< TkStripMeasurementDet > &stripDets)
 

Protected Attributes

const std::string name_
 
const edm::ParameterSetpset_
 
DetContainer theDetMap
 
std::vector
< TkGluedMeasurementDet
theGluedDets
 
const SiPixelFedCablingthePixelCabling
 
std::vector
< TkPixelMeasurementDet
thePixelDets
 
PxMeasurementConditionSet thePxDetConditions
 
StMeasurementConditionSet theStDetConditions
 
std::vector
< TkStripMeasurementDet
theStripDets
 
- Protected Attributes inherited from MeasurementTracker
const GeometricSearchTrackertheGeometricSearchTracker
 
const TrackerGeometrytheTrackerGeom
 

Detailed Description

Definition at line 41 of file MeasurementTrackerImpl.h.

Member Typedef Documentation

typedef std::unordered_map<unsigned int,MeasurementDet*> MeasurementTrackerImpl::DetContainer

Definition at line 93 of file MeasurementTrackerImpl.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

MeasurementTrackerImpl::MeasurementTrackerImpl ( const edm::ParameterSet conf,
const PixelClusterParameterEstimator pixelCPE,
const StripClusterParameterEstimator stripCPE,
const SiStripRecHitMatcher hitMatcher,
const TrackerGeometry trackerGeom,
const GeometricSearchTracker geometricSearchTracker,
const SiStripQuality stripQuality,
int  stripQualityFlags,
int  stripQualityDebugFlags,
const SiPixelQuality pixelQuality,
const SiPixelFedCabling pixelCabling,
int  pixelQualityFlags,
int  pixelQualityDebugFlags 
)

Definition at line 77 of file MeasurementTrackerImpl.cc.

References initialize(), initializePixelStatus(), and initializeStripStatus().

89  :
90  MeasurementTracker(trackerGeom,geometricSearchTracker),
91  pset_(conf),
92  name_(conf.getParameter<std::string>("ComponentName")),
93  theStDetConditions(hitMatcher,stripCPE),
94  thePxDetConditions(pixelCPE)
95 {
96  this->initialize();
97  this->initializeStripStatus(stripQuality, stripQualityFlags, stripQualityDebugFlags);
98  this->initializePixelStatus(pixelQuality, pixelCabling, pixelQualityFlags, pixelQualityDebugFlags);
99 }
T getParameter(std::string const &) const
StMeasurementConditionSet theStDetConditions
void initializeStripStatus(const SiStripQuality *stripQuality, int qualityFlags, int qualityDebugFlags)
void initializePixelStatus(const SiPixelQuality *stripQuality, const SiPixelFedCabling *pixelCabling, int qualityFlags, int qualityDebugFlags)
const edm::ParameterSet & pset_
MeasurementTracker(TrackerGeometry const *trackerGeom, GeometricSearchTracker const *geometricSearchTracker)
PxMeasurementConditionSet thePxDetConditions
MeasurementTrackerImpl::~MeasurementTrackerImpl ( )
virtual

Definition at line 101 of file MeasurementTrackerImpl.cc.

102 {
103 }

Member Function Documentation

void MeasurementTrackerImpl::addGluedDet ( const GluedGeomDet gd)
protected

Definition at line 231 of file MeasurementTrackerImpl.cc.

References StMeasurementConditionSet::matcher(), StMeasurementConditionSet::stripCPE(), theGluedDets, and theStDetConditions.

Referenced by addStripDets().

232 {
234 }
StMeasurementConditionSet theStDetConditions
const SiStripRecHitMatcher * matcher() const
const StripClusterParameterEstimator * stripCPE() const
std::vector< TkGluedMeasurementDet > theGluedDets
void MeasurementTrackerImpl::addPixelDet ( const GeomDet gd)
protected

Definition at line 221 of file MeasurementTrackerImpl.cc.

References thePixelDets, thePxDetConditions, and cms::Exception::what().

Referenced by addPixelDets().

222 {
223  try {
225  }
226  catch(MeasurementDetException& err){
227  edm::LogError("MeasurementDet") << "Oops, got a MeasurementDetException: " << err.what() ;
228  }
229 }
virtual char const * what() const
Definition: Exception.cc:141
std::vector< TkPixelMeasurementDet > thePixelDets
PxMeasurementConditionSet thePxDetConditions
void MeasurementTrackerImpl::addPixelDets ( const TrackingGeometry::DetContainer dets)
protected

Definition at line 178 of file MeasurementTrackerImpl.cc.

References addPixelDet().

Referenced by initialize().

179 {
180  for (TrackerGeometry::DetContainer::const_iterator gd=dets.begin();
181  gd != dets.end(); gd++) {
182  addPixelDet(*gd);
183  }
184 }
void addPixelDet(const GeomDet *gd)
void MeasurementTrackerImpl::addStripDet ( const GeomDet gd)
protected

Definition at line 211 of file MeasurementTrackerImpl.cc.

References theStDetConditions, theStripDets, and cms::Exception::what().

Referenced by addStripDets().

212 {
213  try {
215  }
216  catch(MeasurementDetException& err){
217  edm::LogError("MeasurementDet") << "Oops, got a MeasurementDetException: " << err.what() ;
218  }
219 }
virtual char const * what() const
Definition: Exception.cc:141
std::vector< TkStripMeasurementDet > theStripDets
StMeasurementConditionSet theStDetConditions
void MeasurementTrackerImpl::addStripDets ( const TrackingGeometry::DetContainer dets)
protected

Definition at line 186 of file MeasurementTrackerImpl.cc.

References addGluedDet(), and addStripDet().

Referenced by initialize().

187 {
188  for (TrackerGeometry::DetContainer::const_iterator gd=dets.begin();
189  gd != dets.end(); gd++) {
190 
191  auto gdu = (*gd);
192 
193  // StripSubdetector stripId( (**gd).geographicalId());
194  // bool isDetUnit( gdu != 0);
195  // cout << "StripSubdetector glued? " << stripId.glued()
196  // << " is DetUnit? " << isDetUnit << endl;
197 
198  if (gdu->isLeaf()) {
199  addStripDet(*gd);
200  }
201  else {
202  const GluedGeomDet* gluedDet = dynamic_cast<const GluedGeomDet*>(*gd);
203  if (gluedDet == 0) {
204  throw MeasurementDetException("MeasurementTracker ERROR: GeomDet neither DetUnit nor GluedDet");
205  }
206  addGluedDet(gluedDet);
207  }
208  }
209 }
void addStripDet(const GeomDet *gd)
void addGluedDet(const GluedGeomDet *gd)
const DetContainer& MeasurementTrackerImpl::allDets ( ) const
inline

For debug only.

Definition at line 96 of file MeasurementTrackerImpl.h.

96 {return theDetMap;}
const MeasurementDet* MeasurementTrackerImpl::findDet ( const DetId id) const
inline

Definition at line 81 of file MeasurementTrackerImpl.h.

Referenced by initGluedDet().

82  {
83  auto it = theDetMap.find(id);
84  if(it !=theDetMap.end()) {
85  return it->second;
86  }else{
87  //throw exception;
88  }
89 
90  return 0; //to avoid compile warning
91  }
const GeometricSearchTracker* MeasurementTrackerImpl::geometricSearchTracker ( ) const
inline

Definition at line 65 of file MeasurementTrackerImpl.h.

References MeasurementTracker::theGeometricSearchTracker.

const GeometricSearchTracker * theGeometricSearchTracker
const TrackingGeometry* MeasurementTrackerImpl::geomTracker ( ) const
inline

Definition at line 63 of file MeasurementTrackerImpl.h.

References MeasurementTracker::theTrackerGeom.

63 { return theTrackerGeom;}
const TrackerGeometry * theTrackerGeom
const std::vector<TkGluedMeasurementDet>& MeasurementTrackerImpl::gluedDets ( ) const
inline

Definition at line 99 of file MeasurementTrackerImpl.h.

99 {return theGluedDets;}
std::vector< TkGluedMeasurementDet > theGluedDets
MeasurementDetWithData MeasurementTrackerImpl::idToDet ( const DetId id,
const MeasurementTrackerEvent data 
) const
inlinevirtual

MeasurementDetSystem interface (won't be overloaded anymore)

Implements MeasurementTracker.

Definition at line 69 of file MeasurementTrackerImpl.h.

69  {
70  return MeasurementDetWithData(*idToDetBare(id, data), data);
71  }
const MeasurementDet * idToDetBare(const DetId &id, const MeasurementTrackerEvent &data) const
const MeasurementDet* MeasurementTrackerImpl::idToDetBare ( const DetId id,
const MeasurementTrackerEvent data 
) const
inline

Definition at line 74 of file MeasurementTrackerImpl.h.

74  {
75  return findDet(id);
76  }
const MeasurementDet * findDet(const DetId &id) const
void MeasurementTrackerImpl::initGluedDet ( TkGluedMeasurementDet det)
protected

Definition at line 236 of file MeasurementTrackerImpl.cc.

References findDet(), GeomDet::geographicalId(), TkGluedMeasurementDet::init(), GluedGeomDet::monoDet(), TkGluedMeasurementDet::specificGeomDet(), GluedGeomDet::stereoDet(), and theDetMap.

Referenced by initialize().

237 {
238  const GluedGeomDet& gd = det.specificGeomDet();
239  const MeasurementDet* monoDet = findDet( gd.monoDet()->geographicalId());
240  const MeasurementDet* stereoDet = findDet( gd.stereoDet()->geographicalId());
241  if (monoDet == 0 || stereoDet == 0) {
242  edm::LogError("MeasurementDet") << "MeasurementTracker ERROR: GluedDet components not found as MeasurementDets ";
243  throw MeasurementDetException("MeasurementTracker ERROR: GluedDet components not found as MeasurementDets");
244  }
245  det.init(monoDet,stereoDet);
246  theDetMap[gd.geographicalId()] = &det;
247 }
void init(const MeasurementDet *monoDet, const MeasurementDet *stereoDet)
const GeomDetUnit * monoDet() const
Definition: GluedGeomDet.h:20
const MeasurementDet * findDet(const DetId &id) const
const GluedGeomDet & specificGeomDet() const
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:77
const GeomDetUnit * stereoDet() const
Definition: GluedGeomDet.h:21
void MeasurementTrackerImpl::initialize ( void  )
protected

Definition at line 106 of file MeasurementTrackerImpl.cc.

References addPixelDets(), addStripDets(), TrackerGeometry::detsPXB(), TrackerGeometry::detsPXF(), TrackerGeometry::detsTEC(), TrackerGeometry::detsTIB(), TrackerGeometry::detsTID(), TrackerGeometry::detsTOB(), TrackerGeometry::geomDetSubDetector(), i, StMeasurementConditionSet::id(), PxMeasurementConditionSet::id(), initGluedDet(), initPxMeasurementConditionSet(), initStMeasurementConditionSet(), GeomDetEnumerators::isTrackerPixel(), theDetMap, theGluedDets, thePixelDets, thePxDetConditions, theStDetConditions, theStripDets, and MeasurementTracker::theTrackerGeom.

Referenced by MeasurementTrackerImpl().

107 {
108  if(theTrackerGeom->detsPXB().size()!=0)
109  {if(GeomDetEnumerators::isTrackerPixel(theTrackerGeom->geomDetSubDetector(theTrackerGeom->detsPXB().front()->geographicalId().subdetId())))
111  if(theTrackerGeom->detsPXF().size()!=0)
112  {if(GeomDetEnumerators::isTrackerPixel(theTrackerGeom->geomDetSubDetector(theTrackerGeom->detsPXF().front()->geographicalId().subdetId())))
114  if(theTrackerGeom->detsTIB().size()!=0)
115  {if(GeomDetEnumerators::isTrackerPixel(theTrackerGeom->geomDetSubDetector(theTrackerGeom->detsTIB().front()->geographicalId().subdetId())))
117  if(theTrackerGeom->detsTID().size()!=0)
118  {if(GeomDetEnumerators::isTrackerPixel(theTrackerGeom->geomDetSubDetector(theTrackerGeom->detsTID().front()->geographicalId().subdetId())))
120  if(theTrackerGeom->detsTOB().size()!=0)
121  {if(GeomDetEnumerators::isTrackerPixel(theTrackerGeom->geomDetSubDetector(theTrackerGeom->detsTOB().front()->geographicalId().subdetId())))
123  if(theTrackerGeom->detsTEC().size()!=0)
124  {if(GeomDetEnumerators::isTrackerPixel(theTrackerGeom->geomDetSubDetector(theTrackerGeom->detsTEC().front()->geographicalId().subdetId())))
126 
127  // fist all stripdets
128  sortTKD(theStripDets);
130  for (unsigned int i=0; i!=theStripDets.size(); ++i)
132 
133  // now the glued dets
134  sortTKD(theGluedDets);
135  for (unsigned int i=0; i!=theGluedDets.size(); ++i)
137 
138  // and then the pixels, at last
139  sortTKD(thePixelDets);
141  for (unsigned int i=0; i!=thePixelDets.size(); ++i)
143 
144 }
int i
Definition: DBlmapReader.cc:9
const GeomDetEnumerators::SubDetector geomDetSubDetector(int subdet) const
unsigned int id(int i) const
std::vector< TkStripMeasurementDet > theStripDets
StMeasurementConditionSet theStDetConditions
const TrackerGeometry * theTrackerGeom
void initGluedDet(TkGluedMeasurementDet &det)
void addPixelDets(const TrackingGeometry::DetContainer &dets)
void addStripDets(const TrackingGeometry::DetContainer &dets)
unsigned int id(int i) const
const DetContainer & detsTEC() const
std::vector< TkPixelMeasurementDet > thePixelDets
void initStMeasurementConditionSet(std::vector< TkStripMeasurementDet > &stripDets)
const DetContainer & detsPXB() const
const DetContainer & detsTIB() const
std::vector< TkGluedMeasurementDet > theGluedDets
bool isTrackerPixel(const GeomDetEnumerators::SubDetector m)
PxMeasurementConditionSet thePxDetConditions
const DetContainer & detsPXF() const
const DetContainer & detsTOB() const
void initPxMeasurementConditionSet(std::vector< TkPixelMeasurementDet > &pixelDets)
const DetContainer & detsTID() const
void MeasurementTrackerImpl::initializePixelStatus ( const SiPixelQuality stripQuality,
const SiPixelFedCabling pixelCabling,
int  qualityFlags,
int  qualityDebugFlags 
)
protected

Definition at line 326 of file MeasurementTrackerImpl.cc.

References BadModules, BadROCs, cond::rpcobgas::detid, SiPixelQuality::getBadRocPositions(), SiPixelQuality::getBadRocs(), i, SiPixelQuality::IsModuleUsable(), thePixelDets, and MeasurementTracker::theTrackerGeom.

Referenced by MeasurementTrackerImpl().

326  {
327  if ((quality != 0) && (qualityFlags != 0)) {
328  edm::LogInfo("MeasurementTracker") << "qualityFlags = " << qualityFlags;
329  unsigned int on = 0, tot = 0, badrocs = 0;
330  for (std::vector<TkPixelMeasurementDet>::iterator i=thePixelDets.begin();
331  i!=thePixelDets.end(); i++) {
332  uint32_t detid = ((*i).geomDet().geographicalId()).rawId();
333  if (qualityFlags & BadModules) {
334  bool isOn = quality->IsModuleUsable(detid);
335  (i)->setActive(isOn);
336  tot++; on += (unsigned int) isOn;
337  if (qualityDebugFlags & BadModules) {
338  edm::LogInfo("MeasurementTracker")<< "MeasurementTrackerImpl::initializePixelStatus : detid " << detid << " is " << (isOn ? "on" : "off");
339  }
340  } else {
341  (i)->setActive(true);
342  }
343  if ((qualityFlags & BadROCs) && (quality->getBadRocs(detid) != 0)) {
344  std::vector<LocalPoint> badROCs = quality->getBadRocPositions(detid, *theTrackerGeom, pixelCabling);
345  badrocs += badROCs.size();
346  (i)->setBadRocPositions(badROCs);
347  } else {
348  (i)->clearBadRocPositions();
349  }
350  }
351  if (qualityDebugFlags & BadModules) {
352  edm::LogInfo("MeasurementTracker PixelModuleStatus") <<
353  " Total modules: " << tot << ", active " << on <<", inactive " << (tot - on);
354  }
355  if (qualityDebugFlags & BadROCs) {
356  edm::LogInfo("MeasurementTracker PixelROCStatus") << " Total of bad ROCs: " << badrocs ;
357  }
358  } else {
359  for (std::vector<TkPixelMeasurementDet>::iterator i=thePixelDets.begin();
360  i!=thePixelDets.end(); i++) {
361  (i)->setActive(true); // module ON
362  }
363  }
364 }
int i
Definition: DBlmapReader.cc:9
const TrackerGeometry * theTrackerGeom
std::vector< TkPixelMeasurementDet > thePixelDets
void MeasurementTrackerImpl::initializeStripStatus ( const SiStripQuality stripQuality,
int  qualityFlags,
int  qualityDebugFlags 
)
protected

Definition at line 249 of file MeasurementTrackerImpl.cc.

References BadAPVFibers, BadModules, StMeasurementConditionSet::badStripCuts_, BadStrips, SiStripBadStrip::decode(), cond::rpcobgas::detid, SiStripQuality::getBadApvs(), SiStripQuality::getBadFibers(), StMeasurementConditionSet::getBadStripBlocks(), edm::ParameterSet::getParameter(), SiStripBadStrip::getRange(), i, StMeasurementConditionSet::id(), SiStripQuality::IsModuleUsable(), j, MaskBad128StripBlocks, StMeasurementConditionSet::nDet(), pset_, StMeasurementConditionSet::set128StripStatus(), StMeasurementConditionSet::setActive(), StMeasurementConditionSet::setMaskBad128StripBlocks(), SiStripDetId::TEC, theStDetConditions, SiStripDetId::TIB, SiStripDetId::TID, and SiStripDetId::TOB.

Referenced by MeasurementTrackerImpl().

249  {
250  edm::ParameterSet cutPset = pset_.getParameter<edm::ParameterSet>("badStripCuts");
251  if (qualityFlags & BadStrips) {
252  typedef StMeasurementConditionSet::BadStripCuts BadStripCuts;
257  }
259 
260 
261  if ((quality != 0) && (qualityFlags != 0)) {
262  edm::LogInfo("MeasurementTracker") << "qualityFlags = " << qualityFlags;
263  unsigned int on = 0, tot = 0;
264  unsigned int foff = 0, ftot = 0, aoff = 0, atot = 0;
265  for (int i=0; i!= theStDetConditions.nDet(); i++) {
266  uint32_t detid = theStDetConditions.id(i);
267  if (qualityFlags & BadModules) {
268  bool isOn = quality->IsModuleUsable(detid);
270  tot++; on += (unsigned int) isOn;
271  if (qualityDebugFlags & BadModules) {
272  edm::LogInfo("MeasurementTracker")<< "MeasurementTrackerImpl::initializeStripStatus : detid " << detid << " is " << (isOn ? "on" : "off");
273  }
274  } else {
276  }
277  // first turn all APVs and fibers ON
279  if (qualityFlags & BadAPVFibers) {
280  short badApvs = quality->getBadApvs(detid);
281  short badFibers = quality->getBadFibers(detid);
282  for (int j = 0; j < 6; j++) {
283  atot++;
284  if (badApvs & (1 << j)) {
286  aoff++;
287  }
288  }
289  for (int j = 0; j < 3; j++) {
290  ftot++;
291  if (badFibers & (1 << j)) {
294  foff++;
295  }
296  }
297  }
298  auto & badStrips = theStDetConditions.getBadStripBlocks(i);
299  badStrips.clear();
300  if (qualityFlags & BadStrips) {
301  SiStripBadStrip::Range range = quality->getRange(detid);
302  for (SiStripBadStrip::ContainerIterator bit = range.first; bit != range.second; ++bit) {
303  badStrips.push_back(quality->decode(*bit));
304  }
305  }
306  }
307  if (qualityDebugFlags & BadModules) {
308  edm::LogInfo("MeasurementTracker StripModuleStatus") <<
309  " Total modules: " << tot << ", active " << on <<", inactive " << (tot - on);
310  }
311  if (qualityDebugFlags & BadAPVFibers) {
312  edm::LogInfo("MeasurementTracker StripAPVStatus") <<
313  " Total APVs: " << atot << ", active " << (atot-aoff) <<", inactive " << (aoff);
314  edm::LogInfo("MeasurementTracker StripFiberStatus") <<
315  " Total Fibers: " << ftot << ", active " << (ftot-foff) <<", inactive " << (foff);
316  }
317  } else {
318  for (int i=0; i!=theStDetConditions.nDet(); i++) {
319  theStDetConditions.setActive(i,true); // module ON
320  theStDetConditions.set128StripStatus(i,true); // all APVs and fibers ON
321  }
322  }
323 
324 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
StMeasurementConditionSet theStDetConditions
std::vector< unsigned int >::const_iterator ContainerIterator
unsigned int id(int i) const
void setActive(int i, bool active)
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB...
std::vector< BadStripBlock > & getBadStripBlocks(int i)
int j
Definition: DBlmapReader.cc:9
const edm::ParameterSet & pset_
void setMaskBad128StripBlocks(bool maskThem)
std::pair< ContainerIterator, ContainerIterator > Range
void set128StripStatus(int i, bool good, int idx=-1)
void MeasurementTrackerImpl::initPxMeasurementConditionSet ( std::vector< TkPixelMeasurementDet > &  pixelDets)
protected

Definition at line 162 of file MeasurementTrackerImpl.cc.

References i, PxMeasurementConditionSet::id_, PxMeasurementConditionSet::init(), findQualityFiles::size, and thePxDetConditions.

Referenced by initialize().

163 {
164  // assume vector is full and ordered!
165  int size = pixelDets.size();
166  thePxDetConditions.init(size);
167 
168  for (int i=0; i!=size; ++i) {
169  auto & mdet = pixelDets[i];
170  mdet.setIndex(i);
171  thePxDetConditions.id_[i] = mdet.specificGeomDet().geographicalId().rawId();
172  }
173 }
int i
Definition: DBlmapReader.cc:9
const std::vector< TkPixelMeasurementDet > & pixelDets() const
std::vector< unsigned int > id_
PxMeasurementConditionSet thePxDetConditions
tuple size
Write out results.
void MeasurementTrackerImpl::initStMeasurementConditionSet ( std::vector< TkStripMeasurementDet > &  stripDets)
protected

Definition at line 146 of file MeasurementTrackerImpl.cc.

References i, StMeasurementConditionSet::id_, StMeasurementConditionSet::init(), findQualityFiles::size, DetId::subdetId(), StMeasurementConditionSet::subId_, theStDetConditions, and StMeasurementConditionSet::totalStrips_.

Referenced by initialize().

147 {
148  // assume vector is full and ordered!
149  int size = stripDets.size();
150  theStDetConditions.init(size);
151  for (int i=0; i!=size; ++i) {
152  auto & mdet = stripDets[i];
153  mdet.setIndex(i);
154  //intialize the detId !
155  theStDetConditions.id_[i] = mdet.specificGeomDet().geographicalId().rawId();
157  //initalize the total number of strips
158  theStDetConditions.totalStrips_[i] = mdet.specificGeomDet().specificTopology().nstrips();
159  }
160 }
int i
Definition: DBlmapReader.cc:9
StMeasurementConditionSet theStDetConditions
std::vector< unsigned char > subId_
const std::vector< TkStripMeasurementDet > & stripDets() const
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
std::vector< int > totalStrips_
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
std::vector< unsigned int > id_
tuple size
Write out results.
virtual const PxMeasurementConditionSet& MeasurementTrackerImpl::pixelDetConditions ( ) const
inlinevirtual

Implements MeasurementTracker.

Definition at line 102 of file MeasurementTrackerImpl.h.

102 { return thePxDetConditions; }
PxMeasurementConditionSet thePxDetConditions
const std::vector<TkPixelMeasurementDet>& MeasurementTrackerImpl::pixelDets ( ) const
inline

Definition at line 98 of file MeasurementTrackerImpl.h.

98 {return thePixelDets;}
std::vector< TkPixelMeasurementDet > thePixelDets
virtual const StMeasurementConditionSet& MeasurementTrackerImpl::stripDetConditions ( ) const
inlinevirtual

Provide templates to be filled in.

Implements MeasurementTracker.

Definition at line 101 of file MeasurementTrackerImpl.h.

101 { return theStDetConditions; }
StMeasurementConditionSet theStDetConditions
const std::vector<TkStripMeasurementDet>& MeasurementTrackerImpl::stripDets ( ) const
inline

Definition at line 97 of file MeasurementTrackerImpl.h.

97 {return theStripDets;}
std::vector< TkStripMeasurementDet > theStripDets

Member Data Documentation

const std::string MeasurementTrackerImpl::name_
protected

Definition at line 106 of file MeasurementTrackerImpl.h.

const edm::ParameterSet& MeasurementTrackerImpl::pset_
protected

Definition at line 105 of file MeasurementTrackerImpl.h.

Referenced by initializeStripStatus().

DetContainer MeasurementTrackerImpl::theDetMap
protected

Definition at line 111 of file MeasurementTrackerImpl.h.

Referenced by initGluedDet(), and initialize().

std::vector<TkGluedMeasurementDet> MeasurementTrackerImpl::theGluedDets
protected

Definition at line 115 of file MeasurementTrackerImpl.h.

Referenced by addGluedDet(), and initialize().

const SiPixelFedCabling* MeasurementTrackerImpl::thePixelCabling
protected

Definition at line 117 of file MeasurementTrackerImpl.h.

std::vector<TkPixelMeasurementDet> MeasurementTrackerImpl::thePixelDets
protected

Definition at line 113 of file MeasurementTrackerImpl.h.

Referenced by addPixelDet(), initialize(), and initializePixelStatus().

PxMeasurementConditionSet MeasurementTrackerImpl::thePxDetConditions
protected
StMeasurementConditionSet MeasurementTrackerImpl::theStDetConditions
protected
std::vector<TkStripMeasurementDet> MeasurementTrackerImpl::theStripDets
protected

Definition at line 114 of file MeasurementTrackerImpl.h.

Referenced by addStripDet(), and initialize().