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