CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

 DEFINE_EDM_PLUGIN (BlockElementImporterFactory, SuperClusterImporter,"SuperClusterImporter")
 
double ptFast (const double energy, const math::XYZPoint &position, const math::XYZPoint &origin)
 

Function Documentation

DEFINE_EDM_PLUGIN ( BlockElementImporterFactory  ,
SuperClusterImporter  ,
"SuperClusterImporter"   
)
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 }
static int position[TOTALCHAMBERS][3]
Definition: ReadPGInfo.cc:509
T sqrt(T t)
Definition: SSEVec.h:48