CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HitMaskHelper Class Reference

#include <HitMaskHelper.h>

Public Member Functions

 HitMaskHelper (const std::vector< bool > *hitMasks)
 
bool mask (const FastTrackerRecHit *hit) const
 

Private Member Functions

 HitMaskHelper ()
 

Private Attributes

const std::vector< bool > * hitMasks_
 

Detailed Description

Definition at line 7 of file HitMaskHelper.h.

Constructor & Destructor Documentation

HitMaskHelper::HitMaskHelper ( const std::vector< bool > *  hitMasks)
inline

Definition at line 11 of file HitMaskHelper.h.

11 : hitMasks_(hitMasks) { ; }
const std::vector< bool > * hitMasks_
Definition: HitMaskHelper.h:25
HitMaskHelper::HitMaskHelper ( )
private

Member Function Documentation

bool HitMaskHelper::mask ( const FastTrackerRecHit hit) const
inline

Definition at line 13 of file HitMaskHelper.h.

References hitMasks_, i, FastTrackerRecHit::id(), and FastTrackerRecHit::nIds().

13  {
14  for(unsigned int i = 0;i<hit->nIds();i++){
15  if(!(*hitMasks_)[hit->id(i)]){
16  return false;
17  }
18  }
19  return true;
20  }
int i
Definition: DBlmapReader.cc:9
virtual size_t nIds() const
const std::vector< bool > * hitMasks_
Definition: HitMaskHelper.h:25
virtual int32_t id(size_t i=0) const

Member Data Documentation

const std::vector<bool>* HitMaskHelper::hitMasks_
private

Definition at line 25 of file HitMaskHelper.h.

Referenced by mask().