2 #ifndef FASTSIMULATION_TRACKING_FASTTRACKINGHELPER_H 3 #define FASTSIMULATION_TRACKING_FASTTRACKINGHELPER_H 11 for(
auto &
recHit : recHits){
13 throw cms::Exception(
"fastTrackingHelpers::setRecHitCombinationIndex: one of hits in OwnVector is non-fastsim");
23 if(
object.recHits().
first ==
object.recHits().
second){
24 throw cms::Exception(
"fastTrackingHelpers::getRecHitCombinationIndex") <<
" given object has 0 hits" << std::endl;
29 throw cms::Exception(
"fastTrackingHelpers::setRecHitCombinationIndex") <<
" one of hits in OwnVector is non-fastsim" << std::endl;
39 for(
unsigned int i = 0;
i<hit->
nIds();
i++)
41 if(!(hitMasks)[hit->
id(
i)])
55 return 0.5 * (xx+yy-
delta);
void setRecHitCombinationIndex(edm::OwnVector< T > &recHits, int32_t icomb)
virtual size_t nIds() const
U second(std::pair< T, U > const &p)
bool isFast(TrackingRecHit const &hit)
bool hitIsMasked(const FastTrackerRecHit *hit, const std::vector< bool > &hitMasks)
int32_t getRecHitCombinationIndex(const T &object)
double hitLocalError(const TrackingRecHit *hit)
virtual int32_t id(size_t i=0) const
virtual LocalError localPositionError() const =0