CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoEgamma/EgammaElectronAlgos/src/ElectronSeedGenerator.cc File Reference

#include "RecoEgamma/EgammaElectronAlgos/interface/ElectronSeedGenerator.h"
#include "RecoEgamma/EgammaElectronAlgos/interface/ElectronUtilities.h"
#include "RecoTracker/MeasurementDet/interface/MeasurementTracker.h"
#include "RecoTracker/Record/interface/TrackerRecoGeometryRecord.h"
#include "RecoTracker/TkSeedGenerator/interface/FastHelix.h"
#include "RecoTracker/Record/interface/CkfComponentsRecord.h"
#include "RecoTracker/Record/interface/NavigationSchoolRecord.h"
#include "DataFormats/EgammaReco/interface/SuperCluster.h"
#include "DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2D.h"
#include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "TrackingTools/KalmanUpdators/interface/KFUpdator.h"
#include "TrackingTools/Records/interface/TrackingComponentsRecord.h"
#include "TrackingTools/MaterialEffects/interface/PropagatorWithMaterial.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <vector>
#include <utility>

Go to the source code of this file.

Functions

void display_seed (const std::string &title1, const std::string &title2, const reco::ElectronSeed &seed, edm::ESHandle< TrackerGeometry > trackerGeometry)
bool equivalent (const TrajectorySeed &s1, const TrajectorySeed &s2)

Function Documentation

void display_seed ( const std::string &  title1,
const std::string &  title2,
const reco::ElectronSeed seed,
edm::ESHandle< TrackerGeometry trackerGeometry 
)
bool equivalent ( const TrajectorySeed s1,
const TrajectorySeed s2 
)

Definition at line 205 of file ElectronSeedGenerator.cc.

References funct::false, TrajectorySeed::nHits(), diffTwoXMLs::r1, diffTwoXMLs::r2, TrajectorySeed::recHits(), and funct::true.

Referenced by ElectronSeedGenerator::addSeed().

 {
  if (s1.nHits()!=s2.nHits()) return false ;

  unsigned int nHits ;
  TrajectorySeed::range r1 = s1.recHits(), r2 = s2.recHits() ;
  TrajectorySeed::const_iterator i1, i2 ;
  for ( i1=r1.first, i2=r2.first, nHits=0 ; i1!=r1.second ; ++i1, ++i2, ++nHits )
   {
    if ( !i1->isValid() || !i2->isValid() ) return false ;
    if ( i1->geographicalId()!=i2->geographicalId() ) return false ;
    if ( ! ( i1->localPosition()==i2->localPosition() ) ) return false ;
   }

  return true ;
 }