CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ConvertedPhotonProducer Class Reference
Inheritance diagram for ConvertedPhotonProducer:
edm::stream::EDProducer<>

Public Member Functions

void beginRun (edm::Run const &, const edm::EventSetup &es) final
 
 ConvertedPhotonProducer (const edm::ParameterSet &ps)
 
void produce (edm::Event &evt, const edm::EventSetup &es) override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Member Functions

void buildCollections (edm::EventSetup const &es, const edm::Handle< edm::View< reco::CaloCluster >> &scHandle, const edm::Handle< edm::View< reco::CaloCluster >> &bcHandle, ElectronHcalHelper const &hcalHelper, const edm::Handle< reco::TrackCollection > &trkHandle, std::map< std::vector< reco::TransientTrack >, reco::CaloClusterPtr, CompareTwoTracksVectors > &allPairs, reco::ConversionCollection &outputConvPhotonCollection)
 
float calculateMinApproachDistance (const reco::TrackRef &track1, const reco::TrackRef &track2)
 
void cleanCollections (const edm::Handle< edm::View< reco::CaloCluster >> &scHandle, const edm::OrphanHandle< reco::ConversionCollection > &conversionHandle, reco::ConversionCollection &outputCollection)
 
void getCircleCenter (const reco::TrackRef &tk, double r, double &x0, double &y0)
 
std::vector< reco::ConversionRefsolveAmbiguity (const edm::OrphanHandle< reco::ConversionCollection > &conversionHandle, reco::CaloClusterPtr const &sc)
 
math::XYZPointF toFConverterP (const math::XYZPoint &val)
 
math::XYZVectorF toFConverterV (const math::XYZVector &val)
 

Private Attributes

std::string algoName_
 
edm::EDGetTokenT< edm::View
< reco::CaloCluster > > 
bcBarrelCollection_
 
edm::EDGetTokenT< edm::View
< reco::CaloCluster > > 
bcEndcapCollection_
 
edm::ESGetToken< CaloGeometry,
CaloGeometryRecord
caloGeomToken_
 
edm::EDPutTokenT
< reco::ConversionCollection
cleanedConvertedPhotonCollectionPutToken_
 
edm::EDGetTokenT
< reco::TrackCollection
conversionIOTrackProducer_
 
edm::EDGetTokenT
< reco::TrackCollection
conversionOITrackProducer_
 
edm::EDPutTokenT
< reco::ConversionCollection
convertedPhotonCollectionPutToken_
 
double deltaCotCut_
 
double dRForConversionRecovery_
 
edm::EDGetTokenT
< reco::TrackCollection
generalTrackProducer_
 
edm::EDGetTokenT
< HBHERecHitCollection
hbheRecHits_
 
std::unique_ptr
< ElectronHcalHelper
hcalHelper_
 
double hOverEConeSize_
 
edm::EDGetTokenT
< reco::TrackCaloClusterPtrAssociation
inOutTrackSCAssociationCollection_
 
ConversionLikelihoodCalculator likelihoodCalc_
 
std::string likelihoodWeights_
 
MagneticField const * magneticField_
 
double maxHOverE_
 
int maxNumOfCandidates_
 
edm::ESGetToken< MagneticField,
IdealMagneticFieldRecord
mFToken_
 
double minApproachDisCut_
 
double minSCEt_
 
edm::EDGetTokenT
< reco::TrackCaloClusterPtrAssociation
outInTrackSCAssociationCollection_
 
bool recoverOneTrackCase_
 
bool risolveAmbiguity_
 
edm::EDGetTokenT< edm::View
< reco::CaloCluster > > 
scHybridBarrelProducer_
 
edm::EDGetTokenT< edm::View
< reco::CaloCluster > > 
scIslandEndcapProducer_
 
ConversionTrackPairFinder trackPairFinder_
 
TransientTrackBuilder const * transientTrackBuilder_
 
edm::ESGetToken
< TransientTrackBuilder,
TransientTrackRecord
transientTrackToken_
 
ConversionVertexFinder vertexFinder_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Author
Nancy Marinelli, U. of Notre Dame, US

Definition at line 44 of file ConvertedPhotonProducer.cc.

Constructor & Destructor Documentation

ConvertedPhotonProducer::ConvertedPhotonProducer ( const edm::ParameterSet ps)

Definition at line 122 of file ConvertedPhotonProducer.cc.

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

123  : conversionOITrackProducer_{consumes(config.getParameter<std::string>("conversionOITrackProducer"))},
124  conversionIOTrackProducer_{consumes(config.getParameter<std::string>("conversionIOTrackProducer"))},
125  outInTrackSCAssociationCollection_{consumes({config.getParameter<std::string>("conversionOITrackProducer"),
126  config.getParameter<std::string>("outInTrackSCAssociation")})},
edm::EDGetTokenT< reco::TrackCaloClusterPtrAssociation > outInTrackSCAssociationCollection_
edm::EDGetTokenT< reco::TrackCollection > conversionIOTrackProducer_
edm::EDGetTokenT< reco::TrackCollection > conversionOITrackProducer_
tuple config
parse the configuration file

Member Function Documentation

void ConvertedPhotonProducer::beginRun ( edm::Run const &  ,
const edm::EventSetup es 
)
final
void ConvertedPhotonProducer::buildCollections ( edm::EventSetup const &  es,
const edm::Handle< edm::View< reco::CaloCluster >> &  scHandle,
const edm::Handle< edm::View< reco::CaloCluster >> &  bcHandle,
ElectronHcalHelper const &  hcalHelper,
const edm::Handle< reco::TrackCollection > &  trkHandle,
std::map< std::vector< reco::TransientTrack >, reco::CaloClusterPtr, CompareTwoTracksVectors > &  allPairs,
reco::ConversionCollection outputConvPhotonCollection 
)
private
float ConvertedPhotonProducer::calculateMinApproachDistance ( const reco::TrackRef track1,
const reco::TrackRef track2 
)
private
void ConvertedPhotonProducer::cleanCollections ( const edm::Handle< edm::View< reco::CaloCluster >> &  scHandle,
const edm::OrphanHandle< reco::ConversionCollection > &  conversionHandle,
reco::ConversionCollection outputCollection 
)
private
void ConvertedPhotonProducer::getCircleCenter ( const reco::TrackRef tk,
double  r,
double &  x0,
double &  y0 
)
private
void ConvertedPhotonProducer::produce ( edm::Event evt,
const edm::EventSetup es 
)
override
std::vector<reco::ConversionRef> ConvertedPhotonProducer::solveAmbiguity ( const edm::OrphanHandle< reco::ConversionCollection > &  conversionHandle,
reco::CaloClusterPtr const &  sc 
)
private
math::XYZPointF ConvertedPhotonProducer::toFConverterP ( const math::XYZPoint val)
inlineprivate

Definition at line 114 of file ConvertedPhotonProducer.cc.

114 { return math::XYZPointF(val.x(), val.y(), val.z()); }
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
math::XYZVectorF ConvertedPhotonProducer::toFConverterV ( const math::XYZVector val)
inlineprivate

Definition at line 116 of file ConvertedPhotonProducer.cc.

116 { return math::XYZVectorF(val.x(), val.y(), val.z()); }
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:16

Member Data Documentation

std::string ConvertedPhotonProducer::algoName_
private

Definition at line 97 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<edm::View<reco::CaloCluster> > ConvertedPhotonProducer::bcBarrelCollection_
private

Definition at line 82 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<edm::View<reco::CaloCluster> > ConvertedPhotonProducer::bcEndcapCollection_
private

Definition at line 83 of file ConvertedPhotonProducer.cc.

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> ConvertedPhotonProducer::caloGeomToken_
private

Definition at line 91 of file ConvertedPhotonProducer.cc.

edm::EDPutTokenT<reco::ConversionCollection> ConvertedPhotonProducer::cleanedConvertedPhotonCollectionPutToken_
private

Definition at line 80 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<reco::TrackCollection> ConvertedPhotonProducer::conversionIOTrackProducer_
private

Definition at line 71 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<reco::TrackCollection> ConvertedPhotonProducer::conversionOITrackProducer_
private

Definition at line 70 of file ConvertedPhotonProducer.cc.

edm::EDPutTokenT<reco::ConversionCollection> ConvertedPhotonProducer::convertedPhotonCollectionPutToken_
private

Definition at line 79 of file ConvertedPhotonProducer.cc.

double ConvertedPhotonProducer::deltaCotCut_
private

Definition at line 104 of file ConvertedPhotonProducer.cc.

double ConvertedPhotonProducer::dRForConversionRecovery_
private

Definition at line 103 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<reco::TrackCollection> ConvertedPhotonProducer::generalTrackProducer_
private

Definition at line 76 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<HBHERecHitCollection> ConvertedPhotonProducer::hbheRecHits_
private

Definition at line 86 of file ConvertedPhotonProducer.cc.

std::unique_ptr<ElectronHcalHelper> ConvertedPhotonProducer::hcalHelper_
private

Definition at line 109 of file ConvertedPhotonProducer.cc.

double ConvertedPhotonProducer::hOverEConeSize_
private

Definition at line 99 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<reco::TrackCaloClusterPtrAssociation> ConvertedPhotonProducer::inOutTrackSCAssociationCollection_
private

Definition at line 74 of file ConvertedPhotonProducer.cc.

ConversionLikelihoodCalculator ConvertedPhotonProducer::likelihoodCalc_
private

Definition at line 111 of file ConvertedPhotonProducer.cc.

std::string ConvertedPhotonProducer::likelihoodWeights_
private

Definition at line 112 of file ConvertedPhotonProducer.cc.

MagneticField const* ConvertedPhotonProducer::magneticField_
private

Definition at line 88 of file ConvertedPhotonProducer.cc.

double ConvertedPhotonProducer::maxHOverE_
private

Definition at line 100 of file ConvertedPhotonProducer.cc.

int ConvertedPhotonProducer::maxNumOfCandidates_
private

Definition at line 106 of file ConvertedPhotonProducer.cc.

edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> ConvertedPhotonProducer::mFToken_
private

Definition at line 92 of file ConvertedPhotonProducer.cc.

double ConvertedPhotonProducer::minApproachDisCut_
private

Definition at line 105 of file ConvertedPhotonProducer.cc.

double ConvertedPhotonProducer::minSCEt_
private

Definition at line 101 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<reco::TrackCaloClusterPtrAssociation> ConvertedPhotonProducer::outInTrackSCAssociationCollection_
private

Definition at line 73 of file ConvertedPhotonProducer.cc.

bool ConvertedPhotonProducer::recoverOneTrackCase_
private

Definition at line 102 of file ConvertedPhotonProducer.cc.

bool ConvertedPhotonProducer::risolveAmbiguity_
private

Definition at line 107 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<edm::View<reco::CaloCluster> > ConvertedPhotonProducer::scHybridBarrelProducer_
private

Definition at line 84 of file ConvertedPhotonProducer.cc.

edm::EDGetTokenT<edm::View<reco::CaloCluster> > ConvertedPhotonProducer::scIslandEndcapProducer_
private

Definition at line 85 of file ConvertedPhotonProducer.cc.

ConversionTrackPairFinder ConvertedPhotonProducer::trackPairFinder_
private

Definition at line 95 of file ConvertedPhotonProducer.cc.

TransientTrackBuilder const* ConvertedPhotonProducer::transientTrackBuilder_
private

Definition at line 89 of file ConvertedPhotonProducer.cc.

edm::ESGetToken<TransientTrackBuilder, TransientTrackRecord> ConvertedPhotonProducer::transientTrackToken_
private

Definition at line 93 of file ConvertedPhotonProducer.cc.

ConversionVertexFinder ConvertedPhotonProducer::vertexFinder_
private

Definition at line 96 of file ConvertedPhotonProducer.cc.