CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
ConversionProducer Class Reference

#include <ConversionProducer.h>

Inheritance diagram for ConversionProducer:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 ConversionProducer (const edm::ParameterSet &)
 
 ~ConversionProducer ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Types

typedef math::XYZPointF Point
 
typedef std::vector< PointPointCollection
 

Private Member Functions

void buildCollection (edm::Event &iEvent, const edm::EventSetup &iSetup, const std::multimap< float, edm::Ptr< reco::ConversionTrack > > &allTracks, const std::multimap< double, reco::CaloClusterPtr > &superClusterPtrs, const std::multimap< double, reco::CaloClusterPtr > &basicClusterPtrs, const reco::Vertex &the_pvtx, reco::ConversionCollection &outputConvPhotonCollection)
 
void buildSuperAndBasicClusterGeoMap (const edm::Event &, std::multimap< double, reco::CaloClusterPtr > &basicClusterPtrs, std::multimap< double, reco::CaloClusterPtr > &superClusterPtrs)
 
bool checkPhi (const edm::RefToBase< reco::Track > &tk_l, const edm::RefToBase< reco::Track > &tk_r, const TrackerGeometry *trackerGeom, const MagneticField *magField, const reco::Vertex &the_vertex)
 
bool checkTrackPair (const std::pair< edm::RefToBase< reco::Track >, reco::CaloClusterPtr > &ll, const std::pair< edm::RefToBase< reco::Track >, reco::CaloClusterPtr > &rr)
 
bool checkVertex (const reco::TransientTrack &ttk_l, const reco::TransientTrack &ttk_r, const MagneticField *magField, reco::Vertex &the_vertex)
 
double etaTransformation (float EtaParticle, float Zvertex)
 
bool getMatchedBC (const std::multimap< double, reco::CaloClusterPtr > &bcMap, const math::XYZPointF &trackImpactPosition, reco::CaloClusterPtr &closestBC)
 
bool getTrackImpactPosition (const reco::Track *tk_ref, const TrackerGeometry *trackerGeom, const MagneticField *magField, math::XYZPointF &ew)
 
bool matchingSC (const std::multimap< double, reco::CaloClusterPtr > &scMap, reco::Conversion &conv, reco::CaloClusterPtrVector &mSC)
 
bool preselectTrackPair (const reco::TransientTrack &ttk_l, const reco::TransientTrack &ttk_r, double &appDist)
 
virtual void produce (edm::Event &, const edm::EventSetup &)
 
math::XYZPointF toFConverterP (const math::XYZPoint &val)
 
math::XYZVectorF toFConverterV (const math::XYZVector &val)
 
bool trackD0Cut (const edm::RefToBase< reco::Track > &ref)
 
bool trackD0Cut (const edm::RefToBase< reco::Track > &ref, const reco::Vertex &the_pvtx)
 
bool trackQualityFilter (const edm::RefToBase< reco::Track > &ref, bool isLeft)
 

Private Attributes

std::string algoName_
 
bool allowD0_
 
bool allowDeltaCot_
 
bool allowDeltaPhi_
 
bool allowMinApproach_
 
bool allowOppCharge_
 
bool allowSingleLeg_
 
bool allowTrackBC_
 
bool allowVertex_
 
edm::EDGetTokenT< edm::View
< reco::CaloCluster > > 
bcBarrelCollection_
 
edm::EDGetTokenT< edm::View
< reco::CaloCluster > > 
bcEndcapCollection_
 
bool bypassPreselEcal_
 
bool bypassPreselEcalEcal_
 
bool bypassPreselGsf_
 
std::string ConvertedPhotonCollection_
 
double d0Cut_
 
double deltaCotTheta_
 
double deltaEta_
 
double deltaPhi_
 
double dEtacutForSCmatching_
 
double dEtaTkBC_
 
double dPhicutForSCmatching_
 
double dPhiTkBC_
 
double dzCut_
 
double energyBC_
 
double energyTotalBC_
 
double halfWayEta_
 
double halfWayPhi_
 
double maxChi2Left_
 
double maxChi2Right_
 
unsigned int maxNumOfTrackInPU_
 
double maxTrackRho_
 
double maxTrackZ_
 
double minApproachHigh_
 
double minApproachLow_
 
double minHitsLeft_
 
double minHitsRight_
 
double minSCEt_
 
double r_cut
 
bool rightBC_
 
edm::EDGetTokenT< edm::View
< reco::CaloCluster > > 
scBarrelProducer_
 
edm::EDGetTokenT< edm::View
< reco::CaloCluster > > 
scEndcapProducer_
 
edm::EDGetTokenT< edm::View
< reco::ConversionTrack > > 
src_
 
const TransientTrackBuilderthettbuilder_
 
ConversionVertexFindertheVertexFinder_
 
bool usePvtx_
 
edm::EDGetTokenT
< reco::VertexCollection
vertexProducer_
 
double vtxChi2_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

$Id:

Authors
H. Liu, UC of Riverside US, N. Marinelli Univ of Notre Dame

Description: Produces converted photon objects using default track collections

Implementation: <Notes on="" implementation>="">

Definition at line 66 of file ConversionProducer.h.

Member Typedef Documentation

Definition at line 86 of file ConversionProducer.h.

typedef std::vector<Point> ConversionProducer::PointCollection
private

Definition at line 87 of file ConversionProducer.h.

Constructor & Destructor Documentation

ConversionProducer::ConversionProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 73 of file ConversionProducer.cc.

References algoName_, allowD0_, allowDeltaCot_, allowDeltaPhi_, allowMinApproach_, allowOppCharge_, allowSingleLeg_, allowTrackBC_, allowVertex_, bcBarrelCollection_, bcEndcapCollection_, bypassPreselEcal_, bypassPreselEcalEcal_, bypassPreselGsf_, ConvertedPhotonCollection_, d0Cut_, deltaCotTheta_, deltaEta_, deltaPhi_, dEtacutForSCmatching_, dEtaTkBC_, dPhicutForSCmatching_, dPhiTkBC_, dzCut_, energyBC_, energyTotalBC_, edm::ParameterSet::getParameter(), halfWayEta_, maxChi2Left_, maxChi2Right_, maxNumOfTrackInPU_, maxTrackRho_, maxTrackZ_, minApproachHigh_, minApproachLow_, minHitsLeft_, minHitsRight_, minSCEt_, r_cut, rightBC_, scBarrelProducer_, scEndcapProducer_, src_, AlCaHLTBitMon_QueryRunRegistry::string, thettbuilder_, theVertexFinder_, usePvtx_, vertexProducer_, and vtxChi2_.

73  :
75 
76 {
77  algoName_ = iConfig.getParameter<std::string>( "AlgorithmName" );
78 
79  src_ =
80  consumes<edm::View<reco::ConversionTrack> >(iConfig.getParameter<edm::InputTag>("src"));
81 
82  maxNumOfTrackInPU_ = iConfig.getParameter<int>("maxNumOfTrackInPU");
83  maxTrackRho_ = iConfig.getParameter<double>("maxTrackRho");
84  maxTrackZ_ = iConfig.getParameter<double>("maxTrackZ");
85 
86  allowTrackBC_ = iConfig.getParameter<bool>("AllowTrackBC");
87  allowD0_ = iConfig.getParameter<bool>("AllowD0");
88  allowDeltaPhi_ = iConfig.getParameter<bool>("AllowDeltaPhi");
89  allowDeltaCot_ = iConfig.getParameter<bool>("AllowDeltaCot");
90  allowMinApproach_ = iConfig.getParameter<bool>("AllowMinApproach");
91  allowOppCharge_ = iConfig.getParameter<bool>("AllowOppCharge");
92 
93  allowVertex_ = iConfig.getParameter<bool>("AllowVertex");
94 
95  bypassPreselGsf_ = iConfig.getParameter<bool>("bypassPreselGsf");
96  bypassPreselEcal_ = iConfig.getParameter<bool>("bypassPreselEcal");
97  bypassPreselEcalEcal_ = iConfig.getParameter<bool>("bypassPreselEcalEcal");
98 
99  deltaEta_ = iConfig.getParameter<double>("deltaEta");
100 
101  halfWayEta_ = iConfig.getParameter<double>("HalfwayEta");//open angle to search track matches with BC
102 
103  d0Cut_ = iConfig.getParameter<double>("d0");
104 
105  usePvtx_ = iConfig.getParameter<bool>("UsePvtx");//if use primary vertices
106 
107  vertexProducer_ =
108  consumes<reco::VertexCollection>(iConfig.getParameter<edm::InputTag>("primaryVertexProducer"));
109 
110 
111  //Track-cluster matching eta and phi cuts
112  dEtaTkBC_ = iConfig.getParameter<double>("dEtaTrackBC");//TODO research on cut endcap/barrel
113  dPhiTkBC_ = iConfig.getParameter<double>("dPhiTrackBC");
114 
116  consumes<edm::View<reco::CaloCluster> >(iConfig.getParameter<edm::InputTag>("bcBarrelCollection"));
118  consumes<edm::View<reco::CaloCluster> >(iConfig.getParameter<edm::InputTag>("bcEndcapCollection"));
119 
121  consumes<edm::View<reco::CaloCluster> >(iConfig.getParameter<edm::InputTag>("scBarrelProducer"));
123  consumes<edm::View<reco::CaloCluster> >(iConfig.getParameter<edm::InputTag>("scEndcapProducer"));
124 
125  energyBC_ = iConfig.getParameter<double>("EnergyBC");//BC energy threshold
126  energyTotalBC_ = iConfig.getParameter<double>("EnergyTotalBC");//BC energy threshold
127  minSCEt_ = iConfig.getParameter<double>("minSCEt");//super cluster energy threshold
128  dEtacutForSCmatching_ = iConfig.getParameter<double>("dEtacutForSCmatching");// dEta between conversion momentum direction and SC position
129  dPhicutForSCmatching_ = iConfig.getParameter<double>("dPhicutForSCmatching");// dPhi between conversion momentum direction and SC position
130 
131 
132 
133 
134  //Track cuts on left right track: at least one leg reaches ECAL
135  //Left track: must exist, must reach Ecal and match BC, so loose cut on Chi2 and tight on hits
136  //Right track: not necessary to exist (if allowSingleLeg_), not necessary to reach ECAL or match BC, so tight cut on Chi2 and loose on hits
137  maxChi2Left_ = iConfig.getParameter<double>("MaxChi2Left");
138  maxChi2Right_ = iConfig.getParameter<double>("MaxChi2Right");
139  minHitsLeft_ = iConfig.getParameter<int>("MinHitsLeft");
140  minHitsRight_ = iConfig.getParameter<int>("MinHitsRight");
141 
142  //Track Open angle cut on delta cot(theta) and delta phi
143  deltaCotTheta_ = iConfig.getParameter<double>("DeltaCotTheta");
144  deltaPhi_ = iConfig.getParameter<double>("DeltaPhi");
145  minApproachLow_ = iConfig.getParameter<double>("MinApproachLow");
146  minApproachHigh_ = iConfig.getParameter<double>("MinApproachHigh");
147 
148 
149  // if allow single track collection, by default False
150  allowSingleLeg_ = iConfig.getParameter<bool>("AllowSingleLeg");
151  rightBC_ = iConfig.getParameter<bool>("AllowRightBC");
152 
153  //track inner position dz cut, need RECO
154  dzCut_ = iConfig.getParameter<double>("dz");
155  //track analytical cross cut
156  r_cut = iConfig.getParameter<double>("rCut");
157  vtxChi2_ = iConfig.getParameter<double>("vtxChi2");
158 
159 
160  theVertexFinder_ = new ConversionVertexFinder ( iConfig );
161 
162  thettbuilder_ = 0;
163 
164  //output
165  ConvertedPhotonCollection_ = iConfig.getParameter<std::string>("convertedPhotonCollection");
166 
167  produces< reco::ConversionCollection >(ConvertedPhotonCollection_);
168 
169 }
T getParameter(std::string const &) const
unsigned int maxNumOfTrackInPU_
ConversionVertexFinder * theVertexFinder_
edm::EDGetTokenT< reco::VertexCollection > vertexProducer_
const TransientTrackBuilder * thettbuilder_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scEndcapProducer_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcBarrelCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcEndcapCollection_
std::string ConvertedPhotonCollection_
edm::EDGetTokenT< edm::View< reco::ConversionTrack > > src_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scBarrelProducer_
ConversionProducer::~ConversionProducer ( )

Definition at line 172 of file ConversionProducer.cc.

References theVertexFinder_.

173 {
174 
175  // do anything here that needs to be done at desctruction time
176  // (e.g. close files, deallocate resources etc.)
177  delete theVertexFinder_;
178 }
ConversionVertexFinder * theVertexFinder_

Member Function Documentation

void ConversionProducer::buildCollection ( edm::Event iEvent,
const edm::EventSetup iSetup,
const std::multimap< float, edm::Ptr< reco::ConversionTrack > > &  allTracks,
const std::multimap< double, reco::CaloClusterPtr > &  superClusterPtrs,
const std::multimap< double, reco::CaloClusterPtr > &  basicClusterPtrs,
const reco::Vertex the_pvtx,
reco::ConversionCollection outputConvPhotonCollection 
)
private

match the track pair with a SC. If at least one track matches, store the SC

Definition at line 313 of file ConversionProducer.cc.

References ecalcalib_dqm_sourceclient-live_cfg::algo, reco::TrackBase::algo(), reco::Conversion::algoByName(), algoName_, allowOppCharge_, allowTrackBC_, muonTagProbeFilters_cff::allTracks, reco::Conversion::arbitratedEcalSeeded, reco::Conversion::arbitratedMerged, reco::Conversion::arbitratedMergedEcalGeneral, TransientTrackBuilder::build(), bypassPreselEcal_, bypassPreselEcalEcal_, bypassPreselGsf_, edm::RefToBase< T >::castTo(), reco::TrackBase::charge(), checkPhi(), checkVertex(), reco::Vertex::chi2(), ChiSquaredProbability(), deltaEta_, energyTotalBC_, reco::Track::extra(), reco::Conversion::generalTracksOnly, edm::EventSetup::get(), edm::RefToBase< T >::get(), getMatchedBC(), getTrackImpactPosition(), ZmumuStandaloneSelection_cff::goodVertex, reco::TrackBase::gsf, reco::Conversion::highPurity, reco::Track::innerMomentum(), reco::Track::innerPosition(), reco::TrackBase::inOutEcalSeededConv, edm::Ref< C, T, F >::isNonnull(), reco::Vertex::isValid(), matchingSC(), reco::Vertex::ndof(), ConversionHitChecker::nHitsBeforeVtx(), ConversionHitChecker::nSharedHits(), reco::Track::outerMomentum(), reco::TrackBase::outInEcalSeededConv, preselectTrackPair(), edm::ESHandle< class >::product(), findQualityFiles::rr, reco::Conversion::setMatchingSuperCluster(), reco::Conversion::setQuality(), thettbuilder_, toFConverterP(), toFConverterV(), trackD0Cut(), trackQualityFilter(), and vtxChi2_.

Referenced by produce().

318  {
319 
320 
321  edm::ESHandle<TrackerGeometry> trackerGeomHandle;
322  edm::ESHandle<MagneticField> magFieldHandle;
323  iSetup.get<TrackerDigiGeometryRecord>().get( trackerGeomHandle );
324  iSetup.get<IdealMagneticFieldRecord>().get( magFieldHandle );
325 
326  const TrackerGeometry* trackerGeom = trackerGeomHandle.product();
327  const MagneticField* magField = magFieldHandle.product();
328 
329 // std::vector<math::XYZPointF> trackImpactPosition;
330 // trackImpactPosition.reserve(allTracks.size());//track impact position at ECAL
331 // std::vector<bool> trackValidECAL;//Does this track reach ECAL basic cluster (reach ECAL && match with BC)
332 // trackValidECAL.assign(allTracks.size(), false);
333 //
334 // std::vector<reco::CaloClusterPtr> trackMatchedBC;
335 // reco::CaloClusterPtr empty_bc;
336 // trackMatchedBC.assign(allTracks.size(), empty_bc);//TODO find a better way to avoid copy constructor
337 //
338 // std::vector<int> bcHandleId;//the associated BC handle id, -1 invalid, 0 barrel 1 endcap
339 // bcHandleId.assign(allTracks.size(), -1);
340 
341  // not used std::multimap<double, int> trackInnerEta;//Track innermost state Eta map to TrackRef index, to be used in track pair sorting
342 
343  std::map<edm::Ptr<reco::ConversionTrack>, math::XYZPointF> trackImpactPosition;
344  std::map<edm::Ptr<reco::ConversionTrack>, reco::CaloClusterPtr> trackMatchedBC;
345 
346  ConversionHitChecker hitChecker;
347 
348 
349  //2 propagate all tracks into ECAL, record its eta and phi
350 
351  for (std::multimap<float, edm::Ptr<reco::ConversionTrack> >::const_iterator tk_ref = allTracks.begin(); tk_ref != allTracks.end(); ++tk_ref ){
352  const reco::Track* tk = tk_ref->second->trackRef().get() ;
353 
354 
355  //check impact position then match with BC
356  math::XYZPointF ew;
357  if ( getTrackImpactPosition(tk, trackerGeom, magField, ew) ){
358  trackImpactPosition[tk_ref->second] = ew;
359 
360  reco::CaloClusterPtr closest_bc;//the closest matching BC to track
361 
362  if ( getMatchedBC(basicClusterPtrs, ew, closest_bc) ){
363  trackMatchedBC[tk_ref->second] = closest_bc;
364  }
365  }
366  }
367 
368 
369 
370  //3. pair up tracks:
371  //TODO it is k-Closest pair of point problem
372  //std::cout << " allTracks.size() " << allTracks.size() << std::endl;
373  for(std::multimap<float, edm::Ptr<reco::ConversionTrack> >::const_iterator ll = allTracks.begin(); ll != allTracks.end(); ++ll ) {
374  bool track1HighPurity=true;
375  //std::cout << " Loop on allTracks " << std::endl;
376  const edm::RefToBase<reco::Track> & left = ll->second->trackRef();
377 
378 
379  //TODO: This is a workaround, should be fixed with a proper function in the TTBuilder
380  //(Note that the TrackRef and GsfTrackRef versions of the constructor are needed
381  // to properly get refit tracks in the output vertex)
382  reco::TransientTrack ttk_l;
383  if (dynamic_cast<const reco::GsfTrack*>(left.get())) {
384  ttk_l = thettbuilder_->build(left.castTo<reco::GsfTrackRef>());
385  }
386  else {
387  ttk_l = thettbuilder_->build(left.castTo<reco::TrackRef>());
388  }
389 
391  // if ((allowTrackBC_ && !trackValidECAL[ll-allTracks.begin()]) )//this Left leg should have valid BC
392  // continue;
393 
394 
395  if (the_pvtx.isValid()){
396  if (!(trackD0Cut(left, the_pvtx))) track1HighPurity=false;
397  } else {
398  if (!(trackD0Cut(left))) track1HighPurity=false;
399  }
400 
401  std::vector<int> right_candidates;//store all right legs passed the cut (theta/approach and ref pair)
402  std::vector<double> right_candidate_theta, right_candidate_approach;
403  std::vector<std::pair<bool, reco::Vertex> > vertex_candidates;
404 
405  //inner loop only over tracks between eta and eta + deltaEta of the first track
406  float etasearch = ll->first + deltaEta_;
407  std::multimap<float, edm::Ptr<reco::ConversionTrack> >::const_iterator rr = ll;
408  ++rr;
409  for (; rr != allTracks.lower_bound(etasearch); ++rr ) {
410  bool track2HighPurity = true;
411  bool highPurityPair = true;
412 
413  const edm::RefToBase<reco::Track> & right = rr->second->trackRef();
414 
415 
416  //TODO: This is a workaround, should be fixed with a proper function in the TTBuilder
417  reco::TransientTrack ttk_r;
418  if (dynamic_cast<const reco::GsfTrack*>(right.get())) {
419  ttk_r = thettbuilder_->build(right.castTo<reco::GsfTrackRef>());
420  }
421  else {
422  ttk_r = thettbuilder_->build(right.castTo<reco::TrackRef>());
423  }
424  //std::cout << " This track is " << right->algoName() << std::endl;
425 
426 
427  //all vertexing preselection should go here
428 
429  //check for opposite charge
430  if ( allowOppCharge_ && (left->charge()*right->charge() > 0) )
431  continue; //same sign, reject pair
432 
434  //if ( (allowTrackBC_ && !trackValidECAL[rr-allTracks.begin()] && rightBC_) )// if right track matches ECAL
435  // continue;
436 
437 
438  double approachDist = -999.;
439  //apply preselection to track pair, overriding preselection for gsf+X or ecalseeded+X pairs if so configured
440  bool preselected = preselectTrackPair(ttk_l,ttk_r, approachDist);
441  preselected = preselected || (bypassPreselGsf_ && (left->algo()==reco::TrackBase::gsf || right->algo()==reco::TrackBase::gsf));
444 
445  if (!preselected) {
446  continue;
447  }
448 
449  //do the actual vertex fit
450  reco::Vertex theConversionVertex;//by default it is invalid
451  bool goodVertex = checkVertex(ttk_l, ttk_r, magField, theConversionVertex);
452 
453  //bail as early as possible in case the fit didn't return a good vertex
454  if (!goodVertex) {
455  continue;
456  }
457 
458 
459 
460  //track pair pass the quality cut
461  if ( !( (trackQualityFilter(left, true) && trackQualityFilter(right, false))
462  || (trackQualityFilter(left, false) && trackQualityFilter(right, true)) ) ) {
463  highPurityPair=false;
464  }
465 
466  if (the_pvtx.isValid()){
467  if (!(trackD0Cut(right, the_pvtx))) track2HighPurity=false;
468  } else {
469  if (!(trackD0Cut(right))) track2HighPurity=false;
470  }
471 
472 
473  //if all cuts passed, go ahead to make conversion candidates
474  std::vector<edm::RefToBase<reco::Track> > trackPairRef;
475  trackPairRef.push_back(left);//left track
476  trackPairRef.push_back(right);//right track
477 
478  std::vector<math::XYZVectorF> trackPin;
479  std::vector<math::XYZVectorF> trackPout;
480  std::vector<math::XYZPointF> trackInnPos;
481  std::vector<uint8_t> nHitsBeforeVtx;
482  std::vector<Measurement1DFloat> dlClosestHitToVtx;
483 
484  if (left->extra().isNonnull() && right->extra().isNonnull()){//only available on TrackExtra
485  trackInnPos.push_back( toFConverterP(left->innerPosition()));
486  trackInnPos.push_back( toFConverterP(right->innerPosition()));
487  trackPin.push_back(toFConverterV(left->innerMomentum()));
488  trackPin.push_back(toFConverterV(right->innerMomentum()));
489  trackPout.push_back(toFConverterV(left->outerMomentum()));
490  trackPout.push_back(toFConverterV(right->outerMomentum()));
491  }
492 
493  if (ll->second->trajRef().isNonnull() && rr->second->trajRef().isNonnull()) {
494  std::pair<uint8_t,Measurement1DFloat> leftWrongHits = hitChecker.nHitsBeforeVtx(*ll->second->trajRef().get(),theConversionVertex);
495  std::pair<uint8_t,Measurement1DFloat> rightWrongHits = hitChecker.nHitsBeforeVtx(*rr->second->trajRef().get(),theConversionVertex);
496  nHitsBeforeVtx.push_back(leftWrongHits.first);
497  nHitsBeforeVtx.push_back(rightWrongHits.first);
498  dlClosestHitToVtx.push_back(leftWrongHits.second);
499  dlClosestHitToVtx.push_back(rightWrongHits.second);
500  }
501 
502  uint8_t nSharedHits = hitChecker.nSharedHits(*left.get(),*right.get());
503 
504 
505  //if using kinematic fit, check with chi2 post cut
506  if (theConversionVertex.isValid()){
507  const float chi2Prob = ChiSquaredProbability(theConversionVertex.chi2(), theConversionVertex.ndof());
508  if (chi2Prob<vtxChi2_) highPurityPair=false;
509  }
510 
511  //std::cout << " highPurityPair after vertex cut " << highPurityPair << std::endl;
512  std::vector<math::XYZPointF> trkPositionAtEcal;
513  std::vector<reco::CaloClusterPtr> matchingBC;
514 
515  if (allowTrackBC_){//TODO find out the BC ptrs if not doing matching, otherwise, leave it empty
516  //const int lbc_handle = bcHandleId[ll-allTracks.begin()],
517  // rbc_handle = bcHandleId[rr-allTracks.begin()];
518 
519  std::map<edm::Ptr<reco::ConversionTrack>, math::XYZPointF>::const_iterator trackImpactPositionLeft = trackImpactPosition.find(ll->second);
520  std::map<edm::Ptr<reco::ConversionTrack>, math::XYZPointF>::const_iterator trackImpactPositionRight = trackImpactPosition.find(rr->second);
521  std::map<edm::Ptr<reco::ConversionTrack>, reco::CaloClusterPtr>::const_iterator trackMatchedBCLeft = trackMatchedBC.find(ll->second);
522  std::map<edm::Ptr<reco::ConversionTrack>, reco::CaloClusterPtr>::const_iterator trackMatchedBCRight = trackMatchedBC.find(rr->second);
523 
524  if (trackImpactPositionLeft!=trackImpactPosition.end()) {
525  trkPositionAtEcal.push_back(trackImpactPositionLeft->second);//left track
526  }
527  else {
528  trkPositionAtEcal.push_back(math::XYZPointF());//left track
529  }
530  if (trackImpactPositionRight!=trackImpactPosition.end()) {//second track ECAL position may be invalid
531  trkPositionAtEcal.push_back(trackImpactPositionRight->second);
532  }
533 
534  double total_e_bc = 0.;
535  if (trackMatchedBCLeft!=trackMatchedBC.end()) {
536  matchingBC.push_back(trackMatchedBCLeft->second);//left track
537  total_e_bc += trackMatchedBCLeft->second->energy();
538  }
539  else {
540  matchingBC.push_back( reco::CaloClusterPtr() );//left track
541  }
542  if (trackMatchedBCRight!=trackMatchedBC.end()) {//second track ECAL position may be invalid
543  matchingBC.push_back(trackMatchedBCRight->second);
544  total_e_bc += trackMatchedBCRight->second->energy();
545  }
546 
547  if (total_e_bc<energyTotalBC_) {
548  highPurityPair = false;
549  }
550 
551 
552  }
553  //signature cuts, then check if vertex, then post-selection cuts
554  highPurityPair = highPurityPair && track1HighPurity && track2HighPurity && goodVertex && checkPhi(left, right, trackerGeom, magField, theConversionVertex) ;
555 
556 
558  /*
559  for ( std::vector<edm::RefToBase<reco::Track> >::iterator iTk=trackPairRef.begin(); iTk!=trackPairRef.end(); iTk++) {
560  math::XYZPointF impPos;
561  if ( getTrackImpactPosition(*iTk, trackerGeom, magField, impPos) ) {
562 
563  }
564 
565  }
566  */
567 
568  const float minAppDist = approachDist;
570  float dummy=0;
572  reco::Conversion newCandidate(scPtrVec, trackPairRef, trkPositionAtEcal, theConversionVertex, matchingBC, minAppDist, trackInnPos, trackPin, trackPout, nHitsBeforeVtx, dlClosestHitToVtx, nSharedHits, dummy, algo );
573  // Fill in scPtrVec with the macthing SC
574  if ( matchingSC ( superClusterPtrs, newCandidate, scPtrVec) )
575  newCandidate.setMatchingSuperCluster( scPtrVec);
576 
577  //std::cout << " ConversionProducer scPtrVec.size " << scPtrVec.size() << std::endl;
578 
579  newCandidate.setQuality(reco::Conversion::highPurity, highPurityPair);
580  bool generalTracksOnly = ll->second->isTrackerOnly() && rr->second->isTrackerOnly() && !dynamic_cast<const reco::GsfTrack*>(ll->second->trackRef().get()) && !dynamic_cast<const reco::GsfTrack*>(rr->second->trackRef().get());
581  bool arbitratedEcalSeeded = ll->second->isArbitratedEcalSeeded() && rr->second->isArbitratedEcalSeeded();
582  bool arbitratedMerged = ll->second->isArbitratedMerged() && rr->second->isArbitratedMerged();
583  bool arbitratedMergedEcalGeneral = ll->second->isArbitratedMergedEcalGeneral() && rr->second->isArbitratedMergedEcalGeneral();
584 
585  newCandidate.setQuality(reco::Conversion::generalTracksOnly, generalTracksOnly);
586  newCandidate.setQuality(reco::Conversion::arbitratedEcalSeeded, arbitratedEcalSeeded);
587  newCandidate.setQuality(reco::Conversion::arbitratedMerged, arbitratedMerged);
588  newCandidate.setQuality(reco::Conversion::arbitratedMergedEcalGeneral, arbitratedMergedEcalGeneral);
589 
590  outputConvPhotonCollection.push_back(newCandidate);
591 
592  }
593 
594  }
595 
596 
597 
598 
599 
600 
601 }
value_type const * get() const
Definition: RefToBase.h:225
void setQuality(const TrackQuality)
Definition: TrackBase.h:486
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:252
bool getTrackImpactPosition(const reco::Track *tk_ref, const TrackerGeometry *trackerGeom, const MagneticField *magField, math::XYZPointF &ew)
const TrackExtraRef & extra() const
reference to &quot;extra&quot; object
Definition: Track.h:189
std::pair< uint8_t, Measurement1DFloat > nHitsBeforeVtx(const Trajectory &traj, const reco::Vertex &vtx, double sigmaTolerance=3.0) const
const TransientTrackBuilder * thettbuilder_
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:60
reco::TransientTrack build(const reco::Track *p) const
static ConversionAlgorithm algoByName(const std::string &name)
Definition: Conversion.cc:163
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
bool matchingSC(const std::multimap< double, reco::CaloClusterPtr > &scMap, reco::Conversion &conv, reco::CaloClusterPtrVector &mSC)
const math::XYZPoint & innerPosition() const
position of the innermost hit
Definition: Track.h:55
TrackAlgorithm algo() const
Definition: TrackBase.h:460
math::XYZVectorF toFConverterV(const math::XYZVector &val)
double chi2() const
chi-squares
Definition: Vertex.h:95
float ChiSquaredProbability(double chiSquared, double nrDOF)
uint8_t nSharedHits(const reco::Track &trk1, const reco::Track &trk2) const
bool getMatchedBC(const std::multimap< double, reco::CaloClusterPtr > &bcMap, const math::XYZPointF &trackImpactPosition, reco::CaloClusterPtr &closestBC)
double ndof() const
Definition: Vertex.h:102
bool trackQualityFilter(const edm::RefToBase< reco::Track > &ref, bool isLeft)
const math::XYZVector & outerMomentum() const
momentum vector at the outermost hit position
Definition: Track.h:70
bool trackD0Cut(const edm::RefToBase< reco::Track > &ref)
REF castTo() const
Definition: RefToBase.h:278
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:86
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
Definition: Track.h:60
int charge() const
track electric charge
Definition: TrackBase.h:530
math::XYZPointF toFConverterP(const math::XYZPoint &val)
bool preselectTrackPair(const reco::TransientTrack &ttk_l, const reco::TransientTrack &ttk_r, double &appDist)
bool checkPhi(const edm::RefToBase< reco::Track > &tk_l, const edm::RefToBase< reco::Track > &tk_r, const TrackerGeometry *trackerGeom, const MagneticField *magField, const reco::Vertex &the_vertex)
bool checkVertex(const reco::TransientTrack &ttk_l, const reco::TransientTrack &ttk_r, const MagneticField *magField, reco::Vertex &the_vertex)
void ConversionProducer::buildSuperAndBasicClusterGeoMap ( const edm::Event iEvent,
std::multimap< double, reco::CaloClusterPtr > &  basicClusterPtrs,
std::multimap< double, reco::CaloClusterPtr > &  superClusterPtrs 
)
private

Definition at line 249 of file ConversionProducer.cc.

References bcBarrelCollection_, bcEndcapCollection_, energyBC_, edm::Event::getByToken(), cuy::ii, edm::HandleBase::isValid(), findQualityFiles::jj, minSCEt_, scBarrelProducer_, and scEndcapProducer_.

Referenced by produce().

251  {
252 
253  // Get the Super Cluster collection in the Barrel
255  iEvent.getByToken(scBarrelProducer_,scBarrelHandle);
256  if (!scBarrelHandle.isValid()) {
257  edm::LogError("ConvertedPhotonProducer")
258  << "Error! Can't get the barrel superclusters!";
259  }
260 
261  // Get the Super Cluster collection in the Endcap
263  iEvent.getByToken(scEndcapProducer_,scEndcapHandle);
264  if (!scEndcapHandle.isValid()) {
265  edm::LogError("ConvertedPhotonProducer")
266  << "Error! Can't get the endcap superclusters!";
267  }
268 
269 
271  edm::Handle<edm::View<reco::CaloCluster> > bcEndcapHandle;//TODO check cluster type if BasicCluster or PFCluster
272 
273  iEvent.getByToken( bcBarrelCollection_, bcBarrelHandle);
274  if (!bcBarrelHandle.isValid()) {
275  edm::LogError("ConvertedPhotonProducer")
276  << "Error! Can't get the barrel basic clusters!";
277  }
278 
279  iEvent.getByToken( bcEndcapCollection_, bcEndcapHandle);
280  if (! bcEndcapHandle.isValid()) {
281  edm::LogError("ConvertedPhotonProducer")
282  << "Error! Can't get the endcap basic clusters!";
283  }
284 
285  edm::Handle<edm::View<reco::CaloCluster> > bcHandle = bcBarrelHandle;
286  edm::Handle<edm::View<reco::CaloCluster> > scHandle = scBarrelHandle;
287 
288  if ( bcHandle.isValid() ) {
289  for (unsigned jj = 0; jj < 2; ++jj ){
290  for (unsigned ii = 0; ii < bcHandle->size(); ++ii ) {
291  if (bcHandle->ptrAt(ii)->energy()>energyBC_)
292  basicClusterPtrs.insert(std::make_pair(bcHandle->ptrAt(ii)->position().eta(), bcHandle->ptrAt(ii)));
293  }
294  bcHandle = bcEndcapHandle;
295  }
296  }
297 
298 
299  if ( scHandle.isValid() ) {
300  for (unsigned jj = 0; jj < 2; ++jj ){
301  for (unsigned ii = 0; ii < scHandle->size(); ++ii ) {
302  if (scHandle->ptrAt(ii)->energy()>minSCEt_)
303  superClusterPtrs.insert(std::make_pair(scHandle->ptrAt(ii)->position().eta(), scHandle->ptrAt(ii)));
304  }
305  scHandle = scEndcapHandle;
306  }
307  }
308 
309 
310 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:457
int ii
Definition: cuy.py:588
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scEndcapProducer_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcBarrelCollection_
bool isValid() const
Definition: HandleBase.h:75
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcEndcapCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scBarrelProducer_
bool ConversionProducer::checkPhi ( const edm::RefToBase< reco::Track > &  tk_l,
const edm::RefToBase< reco::Track > &  tk_r,
const TrackerGeometry trackerGeom,
const MagneticField magField,
const reco::Vertex the_vertex 
)
private

Definition at line 746 of file ConversionProducer.cc.

References allowDeltaPhi_, anyDirection, reco::deltaPhi(), deltaPhi_, dPhi(), reco::Track::extra(), TrajectoryStateOnSurface::globalDirection(), reco::Track::innerMomentum(), trajectoryStateTransform::innerStateOnSurface(), edm::Ref< C, T, F >::isNonnull(), reco::Vertex::isValid(), TrajectoryStateOnSurface::isValid(), PV3DBase< T, PVType, FrameType >::phi(), reco::Vertex::position(), Propagator::propagate(), and makeMuonMisalignmentScenario::rot.

Referenced by buildCollection().

748  {
749  if (!allowDeltaPhi_)
750  return true;
751  //if track has innermost momentum, check with innermost phi
752  //if track also has valid vertex, propagate to vertex then calculate phi there
753  //if track has no innermost momentum, just return true, because track->phi() makes no sense
754  if (tk_l->extra().isNonnull() && tk_r->extra().isNonnull()){
755  double iphi1 = tk_l->innerMomentum().phi(), iphi2 = tk_r->innerMomentum().phi();
756  if (vtx.isValid()){
757  PropagatorWithMaterial propag( anyDirection, 0.000511, magField );
758 
759  double recoPhoR = vtx.position().Rho();
762  new SimpleCylinderBounds( recoPhoR-0.001, recoPhoR+0.001,
763  -fabs(vtx.position().z()), fabs(vtx.position().z()))));
765  new BoundDisk( Surface::PositionType( 0, 0, vtx.position().z()), rot,
766  new SimpleDiskBounds( 0, recoPhoR, -0.001, 0.001)));
767 
768  const TrajectoryStateOnSurface myTSOS1 = trajectoryStateTransform::innerStateOnSurface(*tk_l, *trackerGeom, magField);
769  const TrajectoryStateOnSurface myTSOS2 = trajectoryStateTransform::innerStateOnSurface(*tk_r, *trackerGeom, magField);
770  TrajectoryStateOnSurface stateAtVtx1, stateAtVtx2;
771  stateAtVtx1 = propag.propagate(myTSOS1, *theBarrel_);
772  if (!stateAtVtx1.isValid() ) {
773  stateAtVtx1 = propag.propagate(myTSOS1, *theDisk_);
774  }
775  if (stateAtVtx1.isValid()){
776  iphi1 = stateAtVtx1.globalDirection().phi();
777  }
778  stateAtVtx2 = propag.propagate(myTSOS2, *theBarrel_);
779  if (!stateAtVtx2.isValid() ) {
780  stateAtVtx2 = propag.propagate(myTSOS2, *theDisk_);
781  }
782  if (stateAtVtx2.isValid()){
783  iphi2 = stateAtVtx2.globalDirection().phi();
784  }
785  }
786  const double dPhi = reco::deltaPhi(iphi1, iphi2);
787  return (fabs(dPhi) < deltaPhi_);
788  } else {
789  return true;
790  }
791 }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:252
const TrackExtraRef & extra() const
reference to &quot;extra&quot; object
Definition: Track.h:189
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
Cylinder BoundCylinder
Definition: BoundCylinder.h:17
double dPhi(double phi1, double phi2)
Definition: JetUtil.h:30
double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:12
Disk BoundDisk
Definition: BoundDisk.h:62
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
Definition: Track.h:60
GlobalVector globalDirection() const
TrajectoryStateOnSurface innerStateOnSurface(const reco::Track &tk, const TrackingGeometry &geom, const MagneticField *field, bool withErr=true)
bool ConversionProducer::checkTrackPair ( const std::pair< edm::RefToBase< reco::Track >, reco::CaloClusterPtr > &  ll,
const std::pair< edm::RefToBase< reco::Track >, reco::CaloClusterPtr > &  rr 
)
private

Definition at line 853 of file ConversionProducer.cc.

References allowTrackBC_, energyTotalBC_, edm::Ptr< T >::isNonnull(), rightBC_, and findQualityFiles::rr.

854  {
855 
856  const reco::CaloClusterPtr& bc_l = ll.second;//can be null, so check isNonnull()
857  const reco::CaloClusterPtr& bc_r = rr.second;
858 
859  //The cuts should be ordered by considering if takes time and if cuts off many fakes
860  if (allowTrackBC_){
861  //check energy of BC
862  double total_e_bc = 0;
863  if (bc_l.isNonnull()) total_e_bc += bc_l->energy();
864  if (rightBC_)
865  if (bc_r.isNonnull())
866  total_e_bc += bc_r->energy();
867 
868  if (total_e_bc < energyTotalBC_) return false;
869  }
870 
871  return true;
872 }
bool isNonnull() const
Checks for non-null.
Definition: Ptr.h:169
bool ConversionProducer::checkVertex ( const reco::TransientTrack ttk_l,
const reco::TransientTrack ttk_r,
const MagneticField magField,
reco::Vertex the_vertex 
)
private

Definition at line 877 of file ConversionProducer.cc.

References newFWLiteAna::found, ConversionVertexFinder::run(), and theVertexFinder_.

Referenced by buildCollection().

879  {
880  bool found = false;
881 
882  std::vector<reco::TransientTrack> pair;
883  pair.push_back(ttk_l);
884  pair.push_back(ttk_r);
885 
886  found = theVertexFinder_->run(pair, the_vertex);
887 
888 
889 
890  return found;
891 }
ConversionVertexFinder * theVertexFinder_
TransientVertex run(const std::vector< reco::TransientTrack > &pair)
double ConversionProducer::etaTransformation ( float  EtaParticle,
float  Zvertex 
)
private

Definition at line 895 of file ConversionProducer.cc.

References ETA, etaBarrelEndcap, create_public_lumi_plots::log, PI, R_ECAL, funct::tan(), and Z_Endcap.

Referenced by matchingSC().

895  {
896 
897  //---Definitions
898  const float PI = 3.1415927;
899 
900  //---Definitions for ECAL
901  const float R_ECAL = 136.5;
902  const float Z_Endcap = 328.0;
903  const float etaBarrelEndcap = 1.479;
904 
905  //---ETA correction
906 
907  float Theta = 0.0 ;
908  float ZEcal = R_ECAL*sinh(EtaParticle)+Zvertex;
909 
910  if(ZEcal != 0.0) Theta = atan(R_ECAL/ZEcal);
911  if(Theta<0.0) Theta = Theta+PI ;
912  double ETA = - log(tan(0.5*Theta));
913 
914  if( fabs(ETA) > etaBarrelEndcap )
915  {
916  float Zend = Z_Endcap ;
917  if(EtaParticle<0.0 ) Zend = -Zend ;
918  float Zlen = Zend - Zvertex ;
919  float RR = Zlen/sinh(EtaParticle);
920  Theta = atan(RR/Zend);
921  if(Theta<0.0) Theta = Theta+PI ;
922  ETA = - log(tan(0.5*Theta));
923  }
924  //---Return the result
925  return ETA;
926  //---end
927 }
#define PI
#define ETA
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
static const float etaBarrelEndcap
static const float Z_Endcap
static const float R_ECAL
bool ConversionProducer::getMatchedBC ( const std::multimap< double, reco::CaloClusterPtr > &  bcMap,
const math::XYZPointF trackImpactPosition,
reco::CaloClusterPtr closestBC 
)
private

Definition at line 710 of file ConversionProducer.cc.

References kinem::delta_eta(), kinem::delta_phi(), reco::deltaPhi(), dEtaTkBC_, dPhiTkBC_, halfWayEta_, and HLT_25ns14e33_v1_cff::min_eta.

Referenced by buildCollection().

712  {
713  const double track_eta = trackImpactPosition.eta();
714  const double track_phi = trackImpactPosition.phi();
715 
716  double min_eta = 999., min_phi = 999.;
717  reco::CaloClusterPtr closest_bc;
718  for (std::multimap<double, reco::CaloClusterPtr>::const_iterator bc = bcMap.lower_bound(track_eta - halfWayEta_);
719  bc != bcMap.upper_bound(track_eta + halfWayEta_); ++bc){//use eta map to select possible BC collection then loop in
720  const reco::CaloClusterPtr& ebc = bc->second;
721  const double delta_eta = track_eta-(ebc->position().eta());
722  const double delta_phi = reco::deltaPhi(track_phi, (ebc->position().phi()));
723  if (fabs(delta_eta)<dEtaTkBC_ && fabs(delta_phi)<dPhiTkBC_){
724  if (fabs(min_eta)>fabs(delta_eta) && fabs(min_phi)>fabs(delta_phi)){//take the closest to track BC
725  min_eta = delta_eta;
726  min_phi = delta_phi;
727  closest_bc = bc->second;
728  //TODO check if min_eta>delta_eta but min_phi<delta_phi
729  }
730  }
731  }
732 
733  if (min_eta < 999.){
734  closestBC = closest_bc;
735  return true;
736  } else
737  return false;
738 }
double delta_eta(double eta1, double eta2)
Definition: AnglesUtil.h:98
double delta_phi(double ph11, double phi2)
Definition: AnglesUtil.h:91
double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:12
bool ConversionProducer::getTrackImpactPosition ( const reco::Track tk_ref,
const TrackerGeometry trackerGeom,
const MagneticField magField,
math::XYZPointF ew 
)
private

Definition at line 633 of file ConversionProducer.cc.

References alongMomentum, barrelHalfLength(), barrelRadius(), endcapRadius(), endcapZ(), geometryDiff::epsilon, PV3DBase< T, PVType, FrameType >::eta(), f, TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), trajectoryStateTransform::outerStateOnSurface(), Propagator::propagate(), makeMuonMisalignmentScenario::rot, and PV3DBase< T, PVType, FrameType >::z().

Referenced by buildCollection().

635  {
636 
637  PropagatorWithMaterial propag( alongMomentum, 0.000511, magField );
638 
640  new BoundCylinder(129.f, GlobalPoint(0.,0.,0.), TkRotation<float>(),
641  new SimpleCylinderBounds( 129, 129, -320.5, 320.5 ) ) );
642  const float epsilon = 0.001;
643  Surface::RotationType rot; // unit rotation matrix
644  const float barrelRadius = 129.f;
645  const float barrelHalfLength = 270.9f;
646  const float endcapRadius = 171.1f;
647  const float endcapZ = 320.5f;
648  ReferenceCountingPointer<BoundCylinder> theBarrel_(new BoundCylinder(barrelRadius, Surface::PositionType(0,0,0), rot,
649  new SimpleCylinderBounds( barrelRadius-epsilon, barrelRadius+epsilon,
650 -barrelHalfLength, barrelHalfLength)));
651  ReferenceCountingPointer<BoundDisk> theNegativeEtaEndcap_(
652  new BoundDisk( Surface::PositionType( 0, 0, -endcapZ), rot,
653  new SimpleDiskBounds( 0, endcapRadius, -epsilon, epsilon)));
654  ReferenceCountingPointer<BoundDisk> thePositiveEtaEndcap_(
655  new BoundDisk( Surface::PositionType( 0, 0, endcapZ), rot,
656  new SimpleDiskBounds( 0, endcapRadius, -epsilon, epsilon)));
657 
658  //const TrajectoryStateOnSurface myTSOS = trajectoryStateTransform::innerStateOnSurface(*(*ref), *trackerGeom, magField);
659  const TrajectoryStateOnSurface myTSOS = trajectoryStateTransform::outerStateOnSurface(*tk_ref, *trackerGeom, magField);
660  TrajectoryStateOnSurface stateAtECAL;
661  stateAtECAL = propag.propagate(myTSOS, *theBarrel_);
662  if (!stateAtECAL.isValid() || ( stateAtECAL.isValid() && fabs(stateAtECAL.globalPosition().eta() ) >1.479f ) ) {
663  //endcap propagator
664  if (myTSOS.globalPosition().z() > 0.) {
665  stateAtECAL = propag.propagate(myTSOS, *thePositiveEtaEndcap_);
666  } else {
667  stateAtECAL = propag.propagate(myTSOS, *theNegativeEtaEndcap_);
668  }
669  }
670  if (stateAtECAL.isValid()){
671  ew = stateAtECAL.globalPosition();
672  return true;
673  }
674  else
675  return false;
676 }
static float barrelHalfLength()
TrajectoryStateOnSurface outerStateOnSurface(const reco::Track &tk, const TrackingGeometry &geom, const MagneticField *field, bool withErr=true)
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
Cylinder BoundCylinder
Definition: BoundCylinder.h:17
GlobalPoint globalPosition() const
static float endcapRadius()
T z() const
Definition: PV3DBase.h:64
double f[11][100]
static float endcapZ()
Disk BoundDisk
Definition: BoundDisk.h:62
T eta() const
Definition: PV3DBase.h:76
static float barrelRadius()
bool ConversionProducer::matchingSC ( const std::multimap< double, reco::CaloClusterPtr > &  scMap,
reco::Conversion conv,
reco::CaloClusterPtrVector mSC 
)
private

Definition at line 681 of file ConversionProducer.cc.

References kinem::delta_eta(), kinem::delta_phi(), reco::deltaPhi(), dEtacutForSCmatching_, dPhicutForSCmatching_, etaTransformation(), match(), edm::PtrVector< T >::push_back(), reco::Conversion::refittedPairMomentum(), and reco::Conversion::zOfPrimaryVertexFromTracks().

Referenced by buildCollection().

684  {
685 
686  // double dRMin=999.;
687  double detaMin=999.;
688  double dphiMin=999.;
690  for (std::multimap<double, reco::CaloClusterPtr>::const_iterator scItr = scMap.begin(); scItr != scMap.end(); scItr++) {
691  const reco::CaloClusterPtr& sc = scItr->second;
692  const double delta_phi = reco::deltaPhi( aConv.refittedPairMomentum().phi(), sc->phi());
693  double sceta = sc->eta();
694  double conveta = etaTransformation(aConv.refittedPairMomentum().eta(), aConv.zOfPrimaryVertexFromTracks() );
695  const double delta_eta = fabs(conveta - sceta);
696  if ( fabs(delta_eta) < fabs(detaMin) && fabs(delta_phi) < fabs(dphiMin) ) {
697  detaMin= fabs(delta_eta);
698  dphiMin= fabs(delta_phi);
699  match=sc;
700  }
701  }
702 
703  if ( fabs(detaMin) < dEtacutForSCmatching_ && fabs(dphiMin) < dPhicutForSCmatching_ ) {
704  mSC.push_back(match);
705  return true;
706  } else
707  return false;
708 }
double delta_eta(double eta1, double eta2)
Definition: AnglesUtil.h:98
void push_back(Ptr< T > const &iPtr)
Definition: PtrVector.h:141
double delta_phi(double ph11, double phi2)
Definition: AnglesUtil.h:91
double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:12
double etaTransformation(float EtaParticle, float Zvertex)
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
bool ConversionProducer::preselectTrackPair ( const reco::TransientTrack ttk_l,
const reco::TransientTrack ttk_r,
double &  appDist 
)
private

Definition at line 793 of file ConversionProducer.cc.

References funct::abs(), allowDeltaCot_, allowMinApproach_, TangentApproachInRPhi::calculate(), ClosestApproachInRPhi::calculate(), TangentApproachInRPhi::crossingPoint(), ClosestApproachInRPhi::crossingPoint(), deltaCotTheta_, dzCut_, reco::Track::innerMomentum(), reco::TransientTrack::innermostMeasurementState(), maxTrackRho_, maxTrackZ_, minApproachHigh_, PV3DBase< T, PVType, FrameType >::perp(), TangentApproachInRPhi::perpdist(), r_cut, rho, TangentApproachInRPhi::status(), ClosestApproachInRPhi::status(), funct::tan(), reco::TransientTrack::track(), TangentApproachInRPhi::trajectoryParameters(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by buildCollection().

794  {
795 
796 
797  double dCotTheta = 1./tan(ttk_l.track().innerMomentum().theta()) - 1./tan(ttk_r.track().innerMomentum().theta());
798  if (allowDeltaCot_ && (std::abs(dCotTheta) > deltaCotTheta_)) {
799  return false;
800  }
801 
802  //non-conversion hypothesis, reject prompt track pairs
803  ClosestApproachInRPhi closest;
805  if (!closest.status()) {
806  return false;
807  }
808 
809  if (closest.crossingPoint().perp() < r_cut) {
810  return false;
811  }
812 
813 
814  //compute tangent point btw tracks (conversion hypothesis)
815  TangentApproachInRPhi tangent;
817  if (!tangent.status()) {
818  return false;
819  }
820 
821  GlobalPoint tangentPoint = tangent.crossingPoint();
822  double rho = tangentPoint.perp();
823 
824  //reject candidates well outside of tracker bounds
825  if (rho > maxTrackRho_) {
826  return false;
827  }
828 
829  if (std::abs(tangentPoint.z()) > maxTrackZ_) {
830  return false;
831  }
832 
833  std::pair<GlobalTrajectoryParameters,GlobalTrajectoryParameters> trajs = tangent.trajectoryParameters();
834 
835  //very large separation in z, no hope
836  if (std::abs(trajs.first.position().z() - trajs.second.position().z()) > dzCut_) {
837  return false;
838  }
839 
840 
841  float minApproach = tangent.perpdist();
842  appDist = minApproach;
843 
844  if (allowMinApproach_ && (minApproach < minApproachLow_ || minApproach > minApproachHigh_) ) {
845  return false;
846  }
847 
848  return true;
849 
850 
851 }
T perp() const
Definition: PV3DBase.h:72
std::pair< GlobalTrajectoryParameters, GlobalTrajectoryParameters > trajectoryParameters() const
TrajectoryStateOnSurface innermostMeasurementState() const
virtual GlobalPoint crossingPoint() const
virtual GlobalPoint crossingPoint() const
T z() const
Definition: PV3DBase.h:64
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
virtual bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb)
const Track & track() const
virtual bool status() const
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
Definition: Track.h:60
virtual bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb)
virtual bool status() const
void ConversionProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::stream::EDProducerBase.

Definition at line 183 of file ConversionProducer.cc.

References buildCollection(), buildSuperAndBasicClusterGeoMap(), ConvertedPhotonCollection_, edm::EventSetup::get(), edm::Event::getByToken(), i, maxNumOfTrackInPU_, edm::PtrVector< T >::push_back(), edm::Event::put(), src_, thettbuilder_, usePvtx_, GoodVertex_cfg::vertexCollection, and vertexProducer_.

184 {
185  using namespace edm;
186 
187  reco::ConversionCollection outputConvPhotonCollection;
188  std::auto_ptr<reco::ConversionCollection> outputConvPhotonCollection_p(new reco::ConversionCollection);
189 
190  //std::cout << " ConversionProducer::produce " << std::endl;
191  //Read multiple track input collections
192 
193  edm::Handle<edm::View<reco::ConversionTrack> > trackCollectionHandle;
194  iEvent.getByToken(src_,trackCollectionHandle);
195 
196  //build map of ConversionTracks ordered in eta
197  std::multimap<float, edm::Ptr<reco::ConversionTrack> > convTrackMap;
199  for (size_t i = 0; i < trackCollectionHandle->size(); ++i)
200  trackPtrVector.push_back(trackCollectionHandle->ptrAt(i));
201 
202  for (edm::PtrVector<reco::ConversionTrack>::const_iterator tk_ref = trackPtrVector.begin(); tk_ref != trackPtrVector.end(); ++tk_ref ){
203  convTrackMap.insert(std::make_pair((*tk_ref)->track()->eta(),*tk_ref));
204  }
205 
208  if (usePvtx_){
209  iEvent.getByToken(vertexProducer_, vertexHandle);
210  if (!vertexHandle.isValid()) {
211  edm::LogError("ConversionProducer")
212  << "Error! Can't get the product primary Vertex Collection "<< "\n";
213  usePvtx_ = false;
214  }
215  if (usePvtx_)
216  vertexCollection = *(vertexHandle.product());
217  }
218 
219  edm::ESHandle<TransientTrackBuilder> hTransientTrackBuilder;
220  iSetup.get<TransientTrackRecord>().get("TransientTrackBuilder",hTransientTrackBuilder);
221  thettbuilder_ = hTransientTrackBuilder.product();
222 
223  reco::Vertex the_pvtx;
224  //because the priamry vertex is sorted by quality, the first one is the best
225  if (!vertexCollection.empty())
226  the_pvtx = *(vertexCollection.begin());
227 
228  if (trackCollectionHandle->size()> maxNumOfTrackInPU_){
229  iEvent.put( outputConvPhotonCollection_p, ConvertedPhotonCollection_);
230  return;
231  }
232 
233 
234  // build Super and Basic cluster geometry map to search in eta bounds for clusters
235  std::multimap<double, reco::CaloClusterPtr> basicClusterPtrs;
236  std::multimap<double, reco::CaloClusterPtr> superClusterPtrs;
237 
238 
239  buildSuperAndBasicClusterGeoMap(iEvent,basicClusterPtrs,superClusterPtrs);
240 
241  buildCollection( iEvent, iSetup, convTrackMap, superClusterPtrs, basicClusterPtrs, the_pvtx, outputConvPhotonCollection);//allow empty basicClusterPtrs
242 
243  outputConvPhotonCollection_p->assign(outputConvPhotonCollection.begin(), outputConvPhotonCollection.end());
244  iEvent.put( outputConvPhotonCollection_p, ConvertedPhotonCollection_);
245 
246 }
unsigned int maxNumOfTrackInPU_
int i
Definition: DBlmapReader.cc:9
edm::EDGetTokenT< reco::VertexCollection > vertexProducer_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:457
void push_back(Ptr< T > const &iPtr)
Definition: PtrVector.h:141
const TransientTrackBuilder * thettbuilder_
void buildCollection(edm::Event &iEvent, const edm::EventSetup &iSetup, const std::multimap< float, edm::Ptr< reco::ConversionTrack > > &allTracks, const std::multimap< double, reco::CaloClusterPtr > &superClusterPtrs, const std::multimap< double, reco::CaloClusterPtr > &basicClusterPtrs, const reco::Vertex &the_pvtx, reco::ConversionCollection &outputConvPhotonCollection)
void buildSuperAndBasicClusterGeoMap(const edm::Event &, std::multimap< double, reco::CaloClusterPtr > &basicClusterPtrs, std::multimap< double, reco::CaloClusterPtr > &superClusterPtrs)
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
tuple vertexCollection
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:115
const T & get() const
Definition: EventSetup.h:55
std::string ConvertedPhotonCollection_
edm::EDGetTokenT< edm::View< reco::ConversionTrack > > src_
math::XYZPointF ConversionProducer::toFConverterP ( const math::XYZPoint val)
inlineprivate

Definition at line 187 of file ConversionProducer.h.

Referenced by buildCollection().

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

Definition at line 191 of file ConversionProducer.h.

Referenced by buildCollection().

191  {
192  return math::XYZVectorF(val.x(),val.y(),val.z());
193  }
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
bool ConversionProducer::trackD0Cut ( const edm::RefToBase< reco::Track > &  ref)
inlineprivate

Definition at line 622 of file ConversionProducer.cc.

References allowD0_, reco::TrackBase::charge(), reco::TrackBase::d0(), d0Cut_, and reco::TrackBase::d0Error().

Referenced by buildCollection().

622  {
623  //NOTE if not allow d0 cut, always true
624  return ((!allowD0_) || !(ref->d0()*ref->charge()/ref->d0Error()<d0Cut_));
625 }
double d0Error() const
error on d0
Definition: TrackBase.h:765
double d0() const
dxy parameter in perigee convention (d0 = -dxy)
Definition: TrackBase.h:560
int charge() const
track electric charge
Definition: TrackBase.h:530
bool ConversionProducer::trackD0Cut ( const edm::RefToBase< reco::Track > &  ref,
const reco::Vertex the_pvtx 
)
inlineprivate

Definition at line 627 of file ConversionProducer.cc.

References allowD0_, reco::TrackBase::charge(), d0Cut_, reco::TrackBase::dxy(), reco::TrackBase::dxyError(), and reco::Vertex::position().

627  {
628  //
629  return ((!allowD0_) || !(-ref->dxy(the_pvtx.position())*ref->charge()/ref->dxyError()<d0Cut_));
630 }
double dxyError() const
error on dxy
Definition: TrackBase.h:759
const Point & position() const
position
Definition: Vertex.h:106
int charge() const
track electric charge
Definition: TrackBase.h:530
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:554
bool ConversionProducer::trackQualityFilter ( const edm::RefToBase< reco::Track > &  ref,
bool  isLeft 
)
inlineprivate

Definition at line 611 of file ConversionProducer.cc.

References reco::Track::found(), maxChi2Left_, maxChi2Right_, minHitsLeft_, minHitsRight_, and reco::TrackBase::normalizedChi2().

Referenced by buildCollection().

611  {
612  bool pass = true;
613  if (isLeft){
614  pass = (ref->normalizedChi2() < maxChi2Left_ && ref->found() >= minHitsLeft_);
615  } else {
616  pass = (ref->normalizedChi2() < maxChi2Right_ && ref->found() >= minHitsRight_);
617  }
618 
619  return pass;
620 }
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
Definition: TrackBase.h:524
unsigned short found() const
Number of valid hits on track.
Definition: Track.h:194

Member Data Documentation

std::string ConversionProducer::algoName_
private

Definition at line 84 of file ConversionProducer.h.

Referenced by buildCollection(), and ConversionProducer().

bool ConversionProducer::allowD0_
private

Definition at line 97 of file ConversionProducer.h.

Referenced by ConversionProducer(), and trackD0Cut().

bool ConversionProducer::allowDeltaCot_
private

Definition at line 97 of file ConversionProducer.h.

Referenced by ConversionProducer(), and preselectTrackPair().

bool ConversionProducer::allowDeltaPhi_
private

Definition at line 97 of file ConversionProducer.h.

Referenced by checkPhi(), and ConversionProducer().

bool ConversionProducer::allowMinApproach_
private

Definition at line 97 of file ConversionProducer.h.

Referenced by ConversionProducer(), and preselectTrackPair().

bool ConversionProducer::allowOppCharge_
private

Definition at line 97 of file ConversionProducer.h.

Referenced by buildCollection(), and ConversionProducer().

bool ConversionProducer::allowSingleLeg_
private

Definition at line 131 of file ConversionProducer.h.

Referenced by ConversionProducer().

bool ConversionProducer::allowTrackBC_
private

Definition at line 97 of file ConversionProducer.h.

Referenced by buildCollection(), checkTrackPair(), and ConversionProducer().

bool ConversionProducer::allowVertex_
private

Definition at line 97 of file ConversionProducer.h.

Referenced by ConversionProducer().

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

Definition at line 93 of file ConversionProducer.h.

Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().

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

Definition at line 94 of file ConversionProducer.h.

Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().

bool ConversionProducer::bypassPreselEcal_
private

Definition at line 99 of file ConversionProducer.h.

Referenced by buildCollection(), and ConversionProducer().

bool ConversionProducer::bypassPreselEcalEcal_
private

Definition at line 99 of file ConversionProducer.h.

Referenced by buildCollection(), and ConversionProducer().

bool ConversionProducer::bypassPreselGsf_
private

Definition at line 99 of file ConversionProducer.h.

Referenced by buildCollection(), and ConversionProducer().

std::string ConversionProducer::ConvertedPhotonCollection_
private

Definition at line 95 of file ConversionProducer.h.

Referenced by ConversionProducer(), and produce().

double ConversionProducer::d0Cut_
private

Definition at line 118 of file ConversionProducer.h.

Referenced by ConversionProducer(), and trackD0Cut().

double ConversionProducer::deltaCotTheta_
private

Definition at line 125 of file ConversionProducer.h.

Referenced by ConversionProducer(), and preselectTrackPair().

double ConversionProducer::deltaEta_
private

Definition at line 107 of file ConversionProducer.h.

Referenced by buildCollection(), and ConversionProducer().

double ConversionProducer::deltaPhi_
private

Definition at line 125 of file ConversionProducer.h.

Referenced by checkPhi(), and ConversionProducer().

double ConversionProducer::dEtacutForSCmatching_
private

Definition at line 114 of file ConversionProducer.h.

Referenced by ConversionProducer(), and matchingSC().

double ConversionProducer::dEtaTkBC_
private

Definition at line 120 of file ConversionProducer.h.

Referenced by ConversionProducer(), and getMatchedBC().

double ConversionProducer::dPhicutForSCmatching_
private

Definition at line 115 of file ConversionProducer.h.

Referenced by ConversionProducer(), and matchingSC().

double ConversionProducer::dPhiTkBC_
private

Definition at line 120 of file ConversionProducer.h.

Referenced by ConversionProducer(), and getMatchedBC().

double ConversionProducer::dzCut_
private

Definition at line 119 of file ConversionProducer.h.

Referenced by ConversionProducer(), and preselectTrackPair().

double ConversionProducer::energyBC_
private

Definition at line 116 of file ConversionProducer.h.

Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().

double ConversionProducer::energyTotalBC_
private

Definition at line 117 of file ConversionProducer.h.

Referenced by buildCollection(), checkTrackPair(), and ConversionProducer().

double ConversionProducer::halfWayEta_
private

Definition at line 109 of file ConversionProducer.h.

Referenced by ConversionProducer(), and getMatchedBC().

double ConversionProducer::halfWayPhi_
private

Definition at line 109 of file ConversionProducer.h.

double ConversionProducer::maxChi2Left_
private

Definition at line 122 of file ConversionProducer.h.

Referenced by ConversionProducer(), and trackQualityFilter().

double ConversionProducer::maxChi2Right_
private

Definition at line 122 of file ConversionProducer.h.

Referenced by ConversionProducer(), and trackQualityFilter().

unsigned int ConversionProducer::maxNumOfTrackInPU_
private

Definition at line 110 of file ConversionProducer.h.

Referenced by ConversionProducer(), and produce().

double ConversionProducer::maxTrackRho_
private

Definition at line 112 of file ConversionProducer.h.

Referenced by ConversionProducer(), and preselectTrackPair().

double ConversionProducer::maxTrackZ_
private

Definition at line 111 of file ConversionProducer.h.

Referenced by ConversionProducer(), and preselectTrackPair().

double ConversionProducer::minApproachHigh_
private

Definition at line 125 of file ConversionProducer.h.

Referenced by ConversionProducer(), and preselectTrackPair().

double ConversionProducer::minApproachLow_
private

Definition at line 125 of file ConversionProducer.h.

Referenced by ConversionProducer().

double ConversionProducer::minHitsLeft_
private

Definition at line 123 of file ConversionProducer.h.

Referenced by ConversionProducer(), and trackQualityFilter().

double ConversionProducer::minHitsRight_
private

Definition at line 123 of file ConversionProducer.h.

Referenced by ConversionProducer(), and trackQualityFilter().

double ConversionProducer::minSCEt_
private

Definition at line 113 of file ConversionProducer.h.

Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().

double ConversionProducer::r_cut
private

Definition at line 128 of file ConversionProducer.h.

Referenced by ConversionProducer(), and preselectTrackPair().

bool ConversionProducer::rightBC_
private

Definition at line 132 of file ConversionProducer.h.

Referenced by checkTrackPair(), and ConversionProducer().

edm::EDGetTokenT<edm::View<reco::CaloCluster> > ConversionProducer::scBarrelProducer_
private

Definition at line 91 of file ConversionProducer.h.

Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().

edm::EDGetTokenT<edm::View<reco::CaloCluster> > ConversionProducer::scEndcapProducer_
private

Definition at line 92 of file ConversionProducer.h.

Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().

edm::EDGetTokenT<edm::View<reco::ConversionTrack> > ConversionProducer::src_
private

Definition at line 89 of file ConversionProducer.h.

Referenced by ConversionProducer(), and produce().

const TransientTrackBuilder* ConversionProducer::thettbuilder_
private

Definition at line 105 of file ConversionProducer.h.

Referenced by buildCollection(), ConversionProducer(), and produce().

ConversionVertexFinder* ConversionProducer::theVertexFinder_
private

Definition at line 103 of file ConversionProducer.h.

Referenced by checkVertex(), ConversionProducer(), and ~ConversionProducer().

bool ConversionProducer::usePvtx_
private

Definition at line 101 of file ConversionProducer.h.

Referenced by ConversionProducer(), and produce().

edm::EDGetTokenT<reco::VertexCollection> ConversionProducer::vertexProducer_
private

Definition at line 102 of file ConversionProducer.h.

Referenced by ConversionProducer(), and produce().

double ConversionProducer::vtxChi2_
private

Definition at line 129 of file ConversionProducer.h.

Referenced by buildCollection(), and ConversionProducer().