CMS 3D CMS Logo

Classes | Functions
SuperClusterImporter.cc File Reference
#include "RecoParticleFlow/PFProducer/interface/BlockElementImporterBase.h"
#include "RecoParticleFlow/PFProducer/interface/PhotonSelectorAlgo.h"
#include "DataFormats/ParticleFlowReco/interface/PFClusterFwd.h"
#include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
#include "DataFormats/ParticleFlowReco/interface/PFBlockElementSuperCluster.h"
#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
#include "DataFormats/EgammaReco/interface/SuperCluster.h"
#include "RecoParticleFlow/PFProducer/interface/PFBlockElementSCEqual.h"
#include "RecoEgamma/EgammaIsolationAlgos/interface/EgammaHadTower.h"
#include <unordered_map>

Go to the source code of this file.

Classes

class  SuperClusterImporter
 

Functions

double ptFast (const double energy, const math::XYZPoint &position, const math::XYZPoint &origin)
 
static const BlockElementImporterFactory::PMaker< SuperClusterImporters_maker__LINE__ ("SuperClusterImporter")
 

Function Documentation

double ptFast ( const double  energy,
const math::XYZPoint position,
const math::XYZPoint origin 
)
inline

Definition at line 14 of file SuperClusterImporter.cc.

References mathSSE::sqrt(), and findQualityFiles::v.

Referenced by PFECALSuperClusterAlgo::buildSuperCluster(), GEDPhotonProducer::fillPhotonCollection(), SuperClusterImporter::importToBlock(), and OutInConversionSeedFinder::makeSeeds().

16  {
17  const auto v = position - origin;
18  return energy*std::sqrt(v.perp2()/v.mag2());
19 }
T sqrt(T t)
Definition: SSEVec.h:18
static int position[264][3]
Definition: ReadPGInfo.cc:509
static const BlockElementImporterFactory ::PMaker< SuperClusterImporter > s_maker__LINE__ ( "SuperClusterImporter"  )
static