CMS 3D CMS Logo

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

#include <DataFormats/EgammaCandidates/interface/Conversion.h>

Public Types

enum  ConversionAlgorithm {
  undefined =0, ecalSeeded =1, trackerOnly =2, mixed =3,
  pflow =4, algoSize =5
}
 
enum  ConversionQuality {
  generalTracksOnly =0, arbitratedEcalSeeded =1, arbitratedMerged =2, arbitratedMergedEcalGeneral =3,
  highPurity =8, highEfficiency =9, ecalMatched1Track =10, ecalMatched2Track =11
}
 

Public Member Functions

ConversionAlgorithm algo () const
 
std::string algoName () const
 
const std::vector
< reco::CaloClusterPtr > & 
bcMatchingWithTracks () const
 
reco::CaloClusterPtrVector caloCluster () const
 Pointer to CaloCluster (foe Egamma Conversions it points to a SuperCluster) More...
 
Conversionclone () const
 returns a clone of the candidate More...
 
 Conversion ()
 
 Conversion (const reco::CaloClusterPtrVector &clu, const std::vector< edm::RefToBase< reco::Track > > &tr, const std::vector< math::XYZPointF > &trackPositionAtEcal, const reco::Vertex &convVtx, const std::vector< reco::CaloClusterPtr > &matchingBC, const float DCA, const std::vector< math::XYZPointF > &innPoint, const std::vector< math::XYZVectorF > &trackPin, const std::vector< math::XYZVectorF > &trackPout, const std::vector< uint8_t > &nHitsBeforeVtx, const std::vector< Measurement1DFloat > &dlClosestHitToVtx, uint8_t nSharedHits, const float mva, ConversionAlgorithm=undefined)
 
 Conversion (const reco::CaloClusterPtrVector &clu, const std::vector< reco::TrackRef > &tr, const std::vector< math::XYZPointF > &trackPositionAtEcal, const reco::Vertex &convVtx, const std::vector< reco::CaloClusterPtr > &matchingBC, const float DCA, const std::vector< math::XYZPointF > &innPoint, const std::vector< math::XYZVectorF > &trackPin, const std::vector< math::XYZVectorF > &trackPout, const float mva, ConversionAlgorithm=undefined)
 
 Conversion (const reco::CaloClusterPtrVector &clu, const std::vector< reco::TrackRef > &tr, const reco::Vertex &convVtx, ConversionAlgorithm=undefined)
 
 Conversion (const reco::CaloClusterPtrVector &clu, const std::vector< edm::RefToBase< reco::Track > > &tr, const reco::Vertex &convVtx, ConversionAlgorithm=undefined)
 
const reco::VertexconversionVertex () const
 returns the reco conversion vertex More...
 
double dEtaTracksAtEcal () const
 
double distOfMinimumApproach () const
 
const std::vector
< Measurement1DFloat > & 
dlClosestHitToVtx () const
 Vector of signed decay length with uncertainty from nearest hit on track to the conversion vtx positions. More...
 
double dPhiTracksAtEcal () const
 
double dPhiTracksAtVtx () const
 
double dxy (const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
 
double dz (const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
 
const std::vector
< math::XYZPointF > & 
ecalImpactPosition () const
 
double EoverP () const
 
double EoverPrefittedTracks () const
 
bool isConverted () const
 Bool flagging objects having track size >0. More...
 
double lxy (const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
 
double lz (const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
 
double MVAout () const
 get the value of the TMVA output More...
 
const std::vector< uint8_t > & nHitsBeforeVtx () const
 Vector of the number of hits before the vertex along each track trajector. More...
 
uint8_t nSharedHits () const
 number of shared hits btw the two track More...
 
unsigned int nTracks () const
 Number of tracks= 0,1,2. More...
 
std::vector< float > const oneLegMVA ()
 get the MVS output from PF for one leg conversions More...
 
double pairCotThetaSeparation () const
 Delta cot(Theta) where Theta is the angle in the (y,z) plane between the two tracks. Original tracks are used. More...
 
double pairInvariantMass () const
 if nTracks=2 returns the pair invariant mass. Original tracks are used here More...
 
math::XYZVectorF pairMomentum () const
 Conversion tracks momentum from the tracks inner momentum. More...
 
bool quality (ConversionQuality q) const
 
math::XYZTLorentzVectorF refittedPair4Momentum () const
 Conversion track pair 4-momentum from the tracks refitted with vertex constraint. More...
 
math::XYZVectorF refittedPairMomentum () const
 Conversion tracks momentum from the tracks refitted with vertex constraint. More...
 
void setConversionAlgorithm (const ConversionAlgorithm a, bool set=true)
 Conversion Track algorithm/provenance. More...
 
void setMatchingSuperCluster (const reco::CaloClusterPtrVector &sc)
 
void setMVAout (const float &mva)
 set the value of the TMVA output More...
 
void setOneLegMVA (const std::vector< float > &mva)
 set the MVS output from PF for one leg conversions More...
 
void setQuality (ConversionQuality q, bool b)
 
std::vector< edm::RefToBase
< reco::Track > > const & 
tracks () const
 vector of track to base references More...
 
const std::vector
< math::XYZPointF > & 
tracksInnerPosition () const
 Vector containing the position of the innermost hit of each track. More...
 
const std::vector
< math::XYZVectorF > & 
tracksPin () const
 Vector of track momentum measured at the innermost hit. More...
 
const std::vector
< math::XYZVectorF > & 
tracksPout () const
 Vector of track momentum measured at the outermost hit. More...
 
std::vector< double > tracksSigned_d0 () const
 signed transverse impact parameter for each track More...
 
double zOfPrimaryVertexFromTracks (const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
 

Static Public Member Functions

static ConversionAlgorithm algoByName (const std::string &name)
 
static std::string algoName (ConversionAlgorithm)
 

Static Public Attributes

static const std::string algoNames [] = { "undefined","ecalSeeded","trackerOnly","mixed","pflow"}
 

Private Attributes

uint8_t algorithm_
 conversion algorithm/provenance More...
 
reco::CaloClusterPtrVector caloCluster_
 vector pointer to a/multiple seed CaloCluster(s) More...
 
std::vector< Measurement1DFloatdlClosestHitToVtx_
 signed decay length and uncertainty from nearest hit on track to conversion vertex More...
 
std::vector< uint8_t > nHitsBeforeVtx_
 number of hits before the vertex on each trackerOnly More...
 
uint8_t nSharedHits_
 number of shared hits between tracks More...
 
uint16_t qualityMask_
 
reco::Vertex theConversionVertex_
 Fitted Kalman conversion vertex. More...
 
std::vector< reco::CaloClusterPtrtheMatchingBCs_
 Clusters mathing the tracks (these are not the seeds) More...
 
float theMinDistOfApproach_
 Distance of min approach of the two tracks. More...
 
float theMVAout_
 TMVA output. More...
 
std::vector< float > theOneLegMVA_
 vectors of TMVA outputs from pflow for one leg conversions More...
 
std::vector< math::XYZPointFthePositionAtEcal_
 position at the ECAl surface of the track extrapolation More...
 
std::vector< math::XYZPointFtheTrackInnerPosition_
 P_in of tracks. More...
 
std::vector< math::XYZVectorFtheTrackPin_
 P_in of tracks. More...
 
std::vector< math::XYZVectorFtheTrackPout_
 P_out of tracks. More...
 
std::vector< edm::RefToBase
< reco::Track > > 
trackToBaseRefs_
 vector Track RefToBase More...
 

Detailed Description

Author
N.Marinelli University of Notre Dame, US

Definition at line 24 of file Conversion.h.

Member Enumeration Documentation

Enumerator
undefined 
ecalSeeded 
trackerOnly 
mixed 
pflow 
algoSize 

Definition at line 27 of file Conversion.h.

Enumerator
generalTracksOnly 
arbitratedEcalSeeded 
arbitratedMerged 
arbitratedMergedEcalGeneral 
highPurity 
highEfficiency 
ecalMatched1Track 
ecalMatched2Track 

Definition at line 34 of file Conversion.h.

Constructor & Destructor Documentation

Conversion::Conversion ( )

Definition at line 142 of file Conversion.cc.

References algorithm_, nSharedHits_, qualityMask_, theMinDistOfApproach_, theMVAout_, thePositionAtEcal_, theTrackInnerPosition_, theTrackPin_, and theTrackPout_.

Referenced by clone().

142  {
143 
144  algorithm_=0;
145  qualityMask_=0;
146  theMinDistOfApproach_ = 9999.;
147  nSharedHits_ = 0;
148  theMVAout_ = 9999.;
149  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
150  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
151  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
152  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
153  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
154  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
155  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
156  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
157 
158 }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:203
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:216
uint16_t qualityMask_
Definition: Conversion.h:214
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:199
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:218
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:201
float theMVAout_
TMVA output.
Definition: Conversion.h:213
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:211
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:193
Conversion::Conversion ( const reco::CaloClusterPtrVector clu,
const std::vector< edm::RefToBase< reco::Track > > &  tr,
const std::vector< math::XYZPointF > &  trackPositionAtEcal,
const reco::Vertex convVtx,
const std::vector< reco::CaloClusterPtr > &  matchingBC,
const float  DCA,
const std::vector< math::XYZPointF > &  innPoint,
const std::vector< math::XYZVectorF > &  trackPin,
const std::vector< math::XYZVectorF > &  trackPout,
const std::vector< uint8_t > &  nHitsBeforeVtx,
const std::vector< Measurement1DFloat > &  dlClosestHitToVtx,
uint8_t  nSharedHits,
const float  mva,
ConversionAlgorithm  algo = undefined 
)

Definition at line 45 of file Conversion.cc.

58  :
59 
60 
62  thePositionAtEcal_(trackPositionAtEcal),
63  theConversionVertex_(convVtx),
64  theMatchingBCs_(matchingBC),
65  theTrackInnerPosition_(innPoint),
66  theTrackPin_(trackPin),
67  theTrackPout_(trackPout),
71  theMVAout_(mva),
72  qualityMask_(0),
75  {
76 
77  }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:203
ConversionAlgorithm algo() const
Definition: Conversion.h:223
const std::vector< Measurement1DFloat > & dlClosestHitToVtx() const
Vector of signed decay length with uncertainty from nearest hit on track to the conversion vtx positi...
Definition: Conversion.h:163
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:189
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:216
uint16_t qualityMask_
Definition: Conversion.h:214
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:199
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:218
uint8_t nSharedHits() const
number of shared hits btw the two track
Definition: Conversion.h:165
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:201
float theMVAout_
TMVA output.
Definition: Conversion.h:213
std::vector< reco::CaloClusterPtr > theMatchingBCs_
Clusters mathing the tracks (these are not the seeds)
Definition: Conversion.h:197
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:211
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:193
std::vector< edm::RefToBase< reco::Track > > trackToBaseRefs_
vector Track RefToBase
Definition: Conversion.h:191
const std::vector< uint8_t > & nHitsBeforeVtx() const
Vector of the number of hits before the vertex along each track trajector.
Definition: Conversion.h:161
std::vector< Measurement1DFloat > dlClosestHitToVtx_
signed decay length and uncertainty from nearest hit on track to conversion vertex ...
Definition: Conversion.h:207
reco::Vertex theConversionVertex_
Fitted Kalman conversion vertex.
Definition: Conversion.h:195
std::vector< uint8_t > nHitsBeforeVtx_
number of hits before the vertex on each trackerOnly
Definition: Conversion.h:205
Conversion::Conversion ( const reco::CaloClusterPtrVector clu,
const std::vector< reco::TrackRef > &  tr,
const std::vector< math::XYZPointF > &  trackPositionAtEcal,
const reco::Vertex convVtx,
const std::vector< reco::CaloClusterPtr > &  matchingBC,
const float  DCA,
const std::vector< math::XYZPointF > &  innPoint,
const std::vector< math::XYZVectorF > &  trackPin,
const std::vector< math::XYZVectorF > &  trackPout,
const float  mva,
ConversionAlgorithm  algo = undefined 
)

Definition at line 9 of file Conversion.cc.

References trackToBaseRefs_.

19  :
20 
21 
22  caloCluster_(sc),
24  thePositionAtEcal_(trackPositionAtEcal),
25  theConversionVertex_(convVtx),
26  theMatchingBCs_(matchingBC),
27  theTrackInnerPosition_(innPoint),
28  theTrackPin_(trackPin),
29  theTrackPout_(trackPout),
31  theMVAout_(mva),
32  qualityMask_(0),
33  nSharedHits_(0),
35  {
36  trackToBaseRefs_.reserve(tr.size());
37  for( auto const& track: tr) {
38  trackToBaseRefs_.emplace_back(track);
39  }
40  }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:203
ConversionAlgorithm algo() const
Definition: Conversion.h:223
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:189
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:216
uint16_t qualityMask_
Definition: Conversion.h:214
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:199
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:218
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:201
float theMVAout_
TMVA output.
Definition: Conversion.h:213
std::vector< reco::CaloClusterPtr > theMatchingBCs_
Clusters mathing the tracks (these are not the seeds)
Definition: Conversion.h:197
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:211
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:193
std::vector< edm::RefToBase< reco::Track > > trackToBaseRefs_
vector Track RefToBase
Definition: Conversion.h:191
reco::Vertex theConversionVertex_
Fitted Kalman conversion vertex.
Definition: Conversion.h:195
Conversion::Conversion ( const reco::CaloClusterPtrVector clu,
const std::vector< reco::TrackRef > &  tr,
const reco::Vertex convVtx,
ConversionAlgorithm  algo = undefined 
)

Definition at line 82 of file Conversion.cc.

References theMinDistOfApproach_, theMVAout_, thePositionAtEcal_, theTrackInnerPosition_, theTrackPin_, theTrackPout_, and trackToBaseRefs_.

85  :
86  caloCluster_(sc),
88  theConversionVertex_(convVtx),
89  qualityMask_(0),
90  nSharedHits_(0),
92  {
93  trackToBaseRefs_.reserve(tr.size());
94  for( auto const& track: tr) {
95  trackToBaseRefs_.emplace_back(track);
96  }
97 
98 
99  theMinDistOfApproach_ = 9999.;
100  theMVAout_ = 9999.;
101  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
102  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
103  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
104  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
105  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
106  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
107  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
108  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
109 
110 
111  }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:203
ConversionAlgorithm algo() const
Definition: Conversion.h:223
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:189
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:216
uint16_t qualityMask_
Definition: Conversion.h:214
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:199
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:218
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:201
float theMVAout_
TMVA output.
Definition: Conversion.h:213
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:211
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:193
std::vector< edm::RefToBase< reco::Track > > trackToBaseRefs_
vector Track RefToBase
Definition: Conversion.h:191
reco::Vertex theConversionVertex_
Fitted Kalman conversion vertex.
Definition: Conversion.h:195
Conversion::Conversion ( const reco::CaloClusterPtrVector clu,
const std::vector< edm::RefToBase< reco::Track > > &  tr,
const reco::Vertex convVtx,
ConversionAlgorithm  algo = undefined 
)

Definition at line 114 of file Conversion.cc.

References theMinDistOfApproach_, theMVAout_, thePositionAtEcal_, theTrackInnerPosition_, theTrackPin_, and theTrackPout_.

117  :
118  caloCluster_(sc), trackToBaseRefs_(tr),
119  theConversionVertex_(convVtx),
120  qualityMask_(0),
121  nSharedHits_(0),
123  {
124 
125 
126  theMinDistOfApproach_ = 9999.;
127  theMVAout_ = 9999.;
128  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
129  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
130  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
131  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
132  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
133  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
134  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
135  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
136 
137 
138  }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:203
ConversionAlgorithm algo() const
Definition: Conversion.h:223
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:189
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:216
uint16_t qualityMask_
Definition: Conversion.h:214
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:199
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:218
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:201
float theMVAout_
TMVA output.
Definition: Conversion.h:213
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:211
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:193
std::vector< edm::RefToBase< reco::Track > > trackToBaseRefs_
vector Track RefToBase
Definition: Conversion.h:191
reco::Vertex theConversionVertex_
Fitted Kalman conversion vertex.
Definition: Conversion.h:195

Member Function Documentation

Conversion::ConversionAlgorithm reco::Conversion::algo ( ) const
inline

Definition at line 223 of file Conversion.h.

References algorithm_.

Referenced by OniaPhotonConversionProducer::PackFlags().

223  {
225  }
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:218
Conversion::ConversionAlgorithm Conversion::algoByName ( const std::string &  name)
static

Definition at line 163 of file Conversion.cc.

References algoNames, algoSize, spr::find(), cmsHarvester::index, findQualityFiles::size, and undefined.

Referenced by ConversionProducer::buildCollection(), and ConvertedPhotonProducer::buildCollections().

163  {
166  if(index == size) return undefined;
167 
168  return ConversionAlgorithm(index);
169 }
static const std::string algoNames[]
Definition: Conversion.h:43
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
tuple size
Write out results.
std::string reco::Conversion::algoName ( ) const
inline

Definition at line 228 of file Conversion.h.

References algorithm_, ecalSeeded, mixed, pflow, trackerOnly, and undefined.

228  {
229 
230  switch(algorithm_)
231  {
232  case undefined: return "undefined";
233  case ecalSeeded: return "ecalSeeded";
234  case trackerOnly: return "trackerOnly";
235  case mixed: return "mixed";
236  case pflow: return "pflow";
237 
238  }
239  return "undefined";
240  }
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:218
std::string reco::Conversion::algoName ( ConversionAlgorithm  a)
inlinestatic

Definition at line 242 of file Conversion.h.

References algoNames, and algoSize.

242  {
243  if(int(a) < int(algoSize) && int(a)>0) return algoNames[int(a)];
244  return "undefined";
245  }
static const std::string algoNames[]
Definition: Conversion.h:43
double a
Definition: hdecay.h:121
const std::vector<reco::CaloClusterPtr>& reco::Conversion::bcMatchingWithTracks ( ) const
inline

Definition at line 151 of file Conversion.h.

References theMatchingBCs_.

Referenced by dEtaTracksAtEcal(), and dPhiTracksAtEcal().

151 { return theMatchingBCs_;}
std::vector< reco::CaloClusterPtr > theMatchingBCs_
Clusters mathing the tracks (these are not the seeds)
Definition: Conversion.h:197
reco::CaloClusterPtrVector reco::Conversion::caloCluster ( ) const
inline

Pointer to CaloCluster (foe Egamma Conversions it points to a SuperCluster)

Definition at line 93 of file Conversion.h.

References caloCluster_.

Referenced by EoverP(), and EoverPrefittedTracks().

93 {return caloCluster_ ;}
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:189
Conversion * Conversion::clone ( void  ) const

returns a clone of the candidate

Definition at line 171 of file Conversion.cc.

References Conversion().

Referenced by ConvertedPhotonProducer::cleanCollections().

171  {
172  return new Conversion( * this );
173 }
const reco::Vertex& reco::Conversion::conversionVertex ( ) const
inline
double Conversion::dEtaTracksAtEcal ( ) const

Definition at line 351 of file Conversion.cc.

References bcMatchingWithTracks(), ecalImpactPosition(), nTracks(), and query::result.

351  {
352  double result=-99.;
353 
354 
355  if ( nTracks()==2 && bcMatchingWithTracks()[0].isNonnull() && bcMatchingWithTracks()[1].isNonnull() ) {
356 
357  result =ecalImpactPosition()[0].eta() - ecalImpactPosition()[1].eta();
358 
359  }
360 
361 
362 
363  return result;
364 
365 
366 }
tuple result
Definition: query.py:137
const std::vector< reco::CaloClusterPtr > & bcMatchingWithTracks() const
Definition: Conversion.h:151
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
const std::vector< math::XYZPointF > & ecalImpactPosition() const
Definition: Conversion.h:149
double reco::Conversion::distOfMinimumApproach ( ) const
inline

Definition at line 125 of file Conversion.h.

References theMinDistOfApproach_.

Referenced by TkConvValidator::analyze(), OniaPhotonConversionProducer::HighpuritySubset(), and FWConvTrackHitsDetailView::setTextInfo().

125 {return theMinDistOfApproach_;}
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:211
const std::vector<Measurement1DFloat>& reco::Conversion::dlClosestHitToVtx ( ) const
inline

Vector of signed decay length with uncertainty from nearest hit on track to the conversion vtx positions.

Definition at line 163 of file Conversion.h.

References dlClosestHitToVtx_.

Referenced by TkConvValidator::analyze().

163 { return dlClosestHitToVtx_; }
std::vector< Measurement1DFloat > dlClosestHitToVtx_
signed decay length and uncertainty from nearest hit on track to conversion vertex ...
Definition: Conversion.h:207
double Conversion::dPhiTracksAtEcal ( ) const

Definition at line 326 of file Conversion.cc.

References bcMatchingWithTracks(), ecalImpactPosition(), nTracks(), pi, and query::result.

326  {
327  double result =-99.;
328 
329  if ( nTracks()==2 && bcMatchingWithTracks()[0].isNonnull() && bcMatchingWithTracks()[1].isNonnull() ) {
330 
331  float recoPhi1 = ecalImpactPosition()[0].phi();
332  if( recoPhi1 > pi) { recoPhi1 = recoPhi1 - twopi;}
333  if( recoPhi1 < -pi) { recoPhi1 = recoPhi1 + twopi;}
334 
335  float recoPhi2 = ecalImpactPosition()[1].phi();
336  if( recoPhi2 > pi) { recoPhi2 = recoPhi2 - twopi;}
337  if( recoPhi2 < -pi) { recoPhi2 = recoPhi2 + twopi;}
338 
339  result = recoPhi1 -recoPhi2;
340 
341  if( result > pi) { result = result - twopi;}
342  if( result < -pi) { result = result + twopi;}
343 
344  }
345 
346  return result;
347 
348 
349 }
const Double_t pi
tuple result
Definition: query.py:137
const std::vector< reco::CaloClusterPtr > & bcMatchingWithTracks() const
Definition: Conversion.h:151
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
const std::vector< math::XYZPointF > & ecalImpactPosition() const
Definition: Conversion.h:149
double Conversion::dPhiTracksAtVtx ( ) const

Definition at line 313 of file Conversion.cc.

References nTracks(), pi, query::result, and tracksPin().

Referenced by TkConvValidator::analyze(), and FWConvTrackHitsDetailView::setTextInfo().

313  {
314  double result=-99;
315  if ( nTracks()==2 ) {
316  result = tracksPin()[0].phi() - tracksPin()[1].phi();
317  if( result > pi) { result = result - twopi;}
318  if( result < -pi) { result = result + twopi;}
319  }
320 
321  return result;
322 
323 
324 }
const Double_t pi
tuple result
Definition: query.py:137
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
const std::vector< math::XYZVectorF > & tracksPin() const
Vector of track momentum measured at the innermost hit.
Definition: Conversion.h:159
double Conversion::dxy ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const

Definition at line 368 of file Conversion.cc.

References conversionVertex(), reco::Vertex::isValid(), refittedPairMomentum(), reco::Vertex::x(), and reco::Vertex::y().

368  {
369 
370  const reco::Vertex &vtx = conversionVertex();
371  if (!vtx.isValid()) return -9999.;
372 
374 
375  double dxy = (-(vtx.x() - myBeamSpot.x())*mom.y() + (vtx.y() - myBeamSpot.y())*mom.x())/mom.rho();
376  return dxy;
377 
378 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:97
double y() const
y coordinate
Definition: Vertex.h:110
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:60
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:248
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
double x() const
x coordinate
Definition: Vertex.h:108
double dxy(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:368
double Conversion::dz ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const

Definition at line 380 of file Conversion.cc.

References conversionVertex(), reco::Vertex::isValid(), refittedPairMomentum(), reco::Vertex::x(), reco::Vertex::y(), and reco::Vertex::z().

Referenced by zOfPrimaryVertexFromTracks().

380  {
381 
382  const reco::Vertex &vtx = conversionVertex();
383  if (!vtx.isValid()) return -9999.;
384 
386 
387  double dz = (vtx.z()-myBeamSpot.z()) - ((vtx.x()-myBeamSpot.x())*mom.x()+(vtx.y()-myBeamSpot.y())*mom.y())/mom.rho() * mom.z()/mom.rho();
388  return dz;
389 
390 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:97
double y() const
y coordinate
Definition: Vertex.h:110
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:60
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:248
double z() const
y coordinate
Definition: Vertex.h:112
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
double x() const
x coordinate
Definition: Vertex.h:108
double dz(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:380
const std::vector<math::XYZPointF>& reco::Conversion::ecalImpactPosition ( ) const
inline

The following are variables provided per each track positions of the track extrapolation at the ECAL front face

Definition at line 149 of file Conversion.h.

References thePositionAtEcal_.

Referenced by dEtaTracksAtEcal(), and dPhiTracksAtEcal().

149 {return thePositionAtEcal_;}
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:193
double Conversion::EoverP ( ) const

Super Cluster energy divided by track pair momentum if Standard seeding method. If a pointer to two (or more clusters) is stored in the conversion, this method returns the energy sum of clusters divided by the track pair momentum Track innermost momentum is used here

Definition at line 259 of file Conversion.cc.

References caloCluster(), i, nTracks(), pairMomentum(), edm::PtrVectorBase::size(), findQualityFiles::size, and mathSSE::sqrt().

Referenced by ConversionLikelihoodCalculator::calculateLikelihood().

259  {
260 
261 
262  double ep=-99.;
263 
264  if ( nTracks() > 0 ) {
265  unsigned int size= this->caloCluster().size();
266  float etot=0.;
267  for ( unsigned int i=0; i<size; i++) {
268  etot+= caloCluster()[i]->energy();
269  }
270  if (this->pairMomentum().Mag2() !=0) ep= etot/sqrt(this->pairMomentum().Mag2());
271  }
272 
273 
274 
275  return ep;
276 
277 }
int i
Definition: DBlmapReader.cc:9
size_type size() const
Size of the RefVector.
Definition: PtrVectorBase.h:78
T sqrt(T t)
Definition: SSEVec.h:48
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
math::XYZVectorF pairMomentum() const
Conversion tracks momentum from the tracks inner momentum.
Definition: Conversion.cc:223
reco::CaloClusterPtrVector caloCluster() const
Pointer to CaloCluster (foe Egamma Conversions it points to a SuperCluster)
Definition: Conversion.h:93
tuple size
Write out results.
double Conversion::EoverPrefittedTracks ( ) const

Super Cluster energy divided by track pair momentum if Standard seeing method. If a pointer to two (or more clusters) is stored in the conversion, this method returns the energy sum of clusters divided by the track pair momentum Track momentum refitted with vertex constraint is used

Definition at line 281 of file Conversion.cc.

References caloCluster(), i, nTracks(), refittedPairMomentum(), edm::PtrVectorBase::size(), findQualityFiles::size, and mathSSE::sqrt().

281  {
282 
283 
284  double ep=-99.;
285 
286  if ( nTracks() > 0 ) {
287  unsigned int size= this->caloCluster().size();
288  float etot=0.;
289  for ( unsigned int i=0; i<size; i++) {
290  etot+= caloCluster()[i]->energy();
291  }
292  if (this->refittedPairMomentum().Mag2() !=0) ep= etot/sqrt(this->refittedPairMomentum().Mag2());
293  }
294 
295 
296 
297  return ep;
298 
299 }
int i
Definition: DBlmapReader.cc:9
size_type size() const
Size of the RefVector.
Definition: PtrVectorBase.h:78
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:248
T sqrt(T t)
Definition: SSEVec.h:48
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
reco::CaloClusterPtrVector caloCluster() const
Pointer to CaloCluster (foe Egamma Conversions it points to a SuperCluster)
Definition: Conversion.h:93
tuple size
Write out results.
bool Conversion::isConverted ( ) const

Bool flagging objects having track size >0.

Definition at line 182 of file Conversion.cc.

References nTracks().

182  {
183 
184  if ( this->nTracks() == 2 )
185  return true;
186  else
187  return false;
188 }
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
double Conversion::lxy ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const

Definition at line 392 of file Conversion.cc.

References conversionVertex(), reco::Vertex::isValid(), refittedPairMomentum(), reco::Vertex::x(), and reco::Vertex::y().

392  {
393 
394  const reco::Vertex &vtx = conversionVertex();
395  if (!vtx.isValid()) return -9999.;
396 
398 
399  double dbsx = vtx.x() - myBeamSpot.x();
400  double dbsy = vtx.y() - myBeamSpot.y();
401  double lxy = (mom.x()*dbsx + mom.y()*dbsy)/mom.rho();
402  return lxy;
403 
404 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:97
double y() const
y coordinate
Definition: Vertex.h:110
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:60
double lxy(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:392
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:248
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
double x() const
x coordinate
Definition: Vertex.h:108
double Conversion::lz ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const

Definition at line 406 of file Conversion.cc.

References funct::abs(), conversionVertex(), reco::Vertex::isValid(), refittedPairMomentum(), and reco::Vertex::z().

406  {
407 
408  const reco::Vertex &vtx = conversionVertex();
409  if (!vtx.isValid()) return -9999.;
410 
412 
413  double lz = (vtx.z() - myBeamSpot.z())*mom.z()/std::abs(mom.z());
414  return lz;
415 
416 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:97
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:60
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:248
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double z() const
y coordinate
Definition: Vertex.h:112
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
double lz(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:406
double reco::Conversion::MVAout ( ) const
inline

get the value of the TMVA output

Definition at line 103 of file Conversion.h.

References theMVAout_.

103 { return theMVAout_;}
float theMVAout_
TMVA output.
Definition: Conversion.h:213
const std::vector<uint8_t>& reco::Conversion::nHitsBeforeVtx ( ) const
inline

Vector of the number of hits before the vertex along each track trajector.

Definition at line 161 of file Conversion.h.

References nHitsBeforeVtx_.

Referenced by TkConvValidator::analyze(), and ConversionTools::isGoodConversion().

161 { return nHitsBeforeVtx_; }
std::vector< uint8_t > nHitsBeforeVtx_
number of hits before the vertex on each trackerOnly
Definition: Conversion.h:205
uint8_t reco::Conversion::nSharedHits ( ) const
inline

number of shared hits btw the two track

Definition at line 165 of file Conversion.h.

References nSharedHits_.

Referenced by TkConvValidator::analyze().

165 { return nSharedHits_; }
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:216
unsigned int reco::Conversion::nTracks ( ) const
inline

Number of tracks= 0,1,2.

Definition at line 101 of file Conversion.h.

References tracks().

Referenced by FWConvTrackHitsDetailView::build(), ConversionLikelihoodCalculator::calculateLikelihood(), dEtaTracksAtEcal(), dPhiTracksAtEcal(), dPhiTracksAtVtx(), EoverP(), EoverPrefittedTracks(), isConverted(), pairCotThetaSeparation(), pairInvariantMass(), pairMomentum(), and FWConversionProxyBuilder::requestCommon().

101 {return tracks().size(); }
std::vector< edm::RefToBase< reco::Track > > const & tracks() const
vector of track to base references
Definition: Conversion.cc:176
std::vector<float> const reco::Conversion::oneLegMVA ( )
inline

get the MVS output from PF for one leg conversions

Definition at line 105 of file Conversion.h.

References theOneLegMVA_.

105 {return theOneLegMVA_;}
std::vector< float > theOneLegMVA_
vectors of TMVA outputs from pflow for one leg conversions
Definition: Conversion.h:209
double Conversion::pairCotThetaSeparation ( ) const

Delta cot(Theta) where Theta is the angle in the (y,z) plane between the two tracks. Original tracks are used.

Definition at line 209 of file Conversion.cc.

References nTracks(), funct::tan(), and tracksPin().

Referenced by TkConvValidator::analyze(), ConversionLikelihoodCalculator::calculateLikelihood(), and FWConvTrackHitsDetailView::setTextInfo().

209  {
210  double dCotTheta=-99.;
211 
212  if ( nTracks()==2 ) {
213  double theta1=this->tracksPin()[0].Theta();
214  double theta2=this->tracksPin()[1].Theta();
215  dCotTheta = 1./tan(theta1) - 1./tan(theta2) ;
216  }
217 
218  return dCotTheta;
219 
220 }
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
const std::vector< math::XYZVectorF > & tracksPin() const
Vector of track momentum measured at the innermost hit.
Definition: Conversion.h:159
double Conversion::pairInvariantMass ( ) const

if nTracks=2 returns the pair invariant mass. Original tracks are used here

Definition at line 190 of file Conversion.cc.

References alignCSCRings::e, nTracks(), mathSSE::sqrt(), and tracksPin().

Referenced by TkConvValidator::analyze().

190  {
191  double invMass=-99.;
192  const float mElec= 0.000511;
193  if ( nTracks()==2 ) {
194  double px= tracksPin()[0].x() + tracksPin()[1].x();
195  double py= tracksPin()[0].y() + tracksPin()[1].y();
196  double pz= tracksPin()[0].z() + tracksPin()[1].z();
197  double mom1= tracksPin()[0].Mag2();
198  double mom2= tracksPin()[1].Mag2();
199  double e = sqrt( mom1+ mElec*mElec ) + sqrt( mom2 + mElec*mElec );
200  invMass= ( e*e - px*px -py*py - pz*pz);
201  if ( invMass>0) invMass = sqrt(invMass);
202  else
203  invMass = -1;
204  }
205 
206  return invMass;
207 }
T sqrt(T t)
Definition: SSEVec.h:48
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
const std::vector< math::XYZVectorF > & tracksPin() const
Vector of track momentum measured at the innermost hit.
Definition: Conversion.h:159
math::XYZVectorF Conversion::pairMomentum ( ) const

Conversion tracks momentum from the tracks inner momentum.

Definition at line 223 of file Conversion.cc.

References nTracks(), and tracksPin().

Referenced by FWConvTrackHitsDetailView::build(), EoverP(), FWConversionProxyBuilder::requestCommon(), and FWConvTrackHitsDetailView::setTextInfo().

223  {
224 
225  if ( nTracks()==2 ) {
226  return this->tracksPin()[0] + this->tracksPin()[1];
227  }
228  return math::XYZVectorF(0.,0.,0.);
229 
230 
231 
232 }
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:101
const std::vector< math::XYZVectorF > & tracksPin() const
Vector of track momentum measured at the innermost hit.
Definition: Conversion.h:159
bool reco::Conversion::quality ( ConversionQuality  q) const
inline

Definition at line 181 of file Conversion.h.

References lumiQueryAPI::q, and qualityMask_.

Referenced by TkConvValidator::analyze(), and OniaPhotonConversionProducer::PackFlags().

181 { return (qualityMask_ & (1<<q))>>q; }
uint16_t qualityMask_
Definition: Conversion.h:214
math::XYZTLorentzVectorF Conversion::refittedPair4Momentum ( ) const

Conversion track pair 4-momentum from the tracks refitted with vertex constraint.

Definition at line 235 of file Conversion.cc.

References conversionVertex(), p4, and reco::Vertex::p4().

Referenced by OniaPhotonConversionProducer::CheckPi0(), PF_PU_AssoMapAlgos::FindConversionVertex(), OniaPhotonConversionProducer::makePhotonCandidate(), and refittedPairMomentum().

235  {
236 
238  if ( this->conversionVertex().isValid() )
239  p4 = this->conversionVertex().p4( 0.000511, 0.5);
240 
241  return p4;
242 
243 
244 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:97
double p4[4]
Definition: TauolaWrapper.h:92
math::XYZTLorentzVectorD p4(float mass=0.13957018, float minWeight=0.5) const
Returns the four momentum of the sum of the tracks, assuming the given mass for the decay products...
Definition: Vertex.cc:113
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > XYZTLorentzVectorF
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:22
math::XYZVectorF Conversion::refittedPairMomentum ( ) const

Conversion tracks momentum from the tracks refitted with vertex constraint.

Definition at line 248 of file Conversion.cc.

References conversionVertex(), and refittedPair4Momentum().

Referenced by TkConvValidator::analyze(), dxy(), dz(), EoverPrefittedTracks(), ConversionTools::isGoodConversion(), lxy(), lz(), ConversionTools::matchesConversion(), and ConversionProducer::matchingSC().

248  {
249 
250  if ( this->conversionVertex().isValid() ) {
251  return this->refittedPair4Momentum().Vect();
252  }
253  return math::XYZVectorF(0.,0.,0.);
254 
255 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:97
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
math::XYZTLorentzVectorF refittedPair4Momentum() const
Conversion track pair 4-momentum from the tracks refitted with vertex constraint. ...
Definition: Conversion.cc:235
void reco::Conversion::setConversionAlgorithm ( const ConversionAlgorithm  a,
bool  set = true 
)
inline

Conversion Track algorithm/provenance.

Definition at line 175 of file Conversion.h.

References a, algorithm_, and undefined.

175 { if (set) algorithm_=a; else algorithm_=undefined;}
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:218
double a
Definition: hdecay.h:121
void reco::Conversion::setMatchingSuperCluster ( const reco::CaloClusterPtrVector sc)
inline

Definition at line 173 of file Conversion.h.

References caloCluster_.

Referenced by ConversionProducer::buildCollection().

173 { caloCluster_= sc;}
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:189
void reco::Conversion::setMVAout ( const float &  mva)
inline

set the value of the TMVA output

Definition at line 169 of file Conversion.h.

References theMVAout_.

Referenced by ConvertedPhotonProducer::buildCollections().

169 { theMVAout_=mva;}
float theMVAout_
TMVA output.
Definition: Conversion.h:213
void reco::Conversion::setOneLegMVA ( const std::vector< float > &  mva)
inline

set the MVS output from PF for one leg conversions

Definition at line 171 of file Conversion.h.

References theOneLegMVA_.

Referenced by PFPhotonTranslator::createOneLegConversions(), and PFEGammaProducer::createSingleLegConversions().

171 { theOneLegMVA_=mva;}
std::vector< float > theOneLegMVA_
vectors of TMVA outputs from pflow for one leg conversions
Definition: Conversion.h:209
void reco::Conversion::setQuality ( ConversionQuality  q,
bool  b 
)
inline

Definition at line 247 of file Conversion.h.

References lumiQueryAPI::q, and qualityMask_.

Referenced by ConversionProducer::buildCollection().

247  {
248  if (b)//regular OR if setting value to true
249  qualityMask_ |= (1<<q) ;
250  else // doing "half-XOR" if unsetting value
251  qualityMask_ &= (~(1<<q));
252 
253  }
uint16_t qualityMask_
Definition: Conversion.h:214
double b
Definition: hdecay.h:120
std::vector< edm::RefToBase< reco::Track > > const & Conversion::tracks ( void  ) const
const std::vector<math::XYZPointF>& reco::Conversion::tracksInnerPosition ( ) const
inline

Vector containing the position of the innermost hit of each track.

Definition at line 155 of file Conversion.h.

References theTrackInnerPosition_.

155 {return theTrackInnerPosition_;}
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:199
const std::vector<math::XYZVectorF>& reco::Conversion::tracksPin ( ) const
inline

Vector of track momentum measured at the innermost hit.

Definition at line 159 of file Conversion.h.

References theTrackPin_.

Referenced by ConversionLikelihoodCalculator::calculateLikelihood(), dPhiTracksAtVtx(), pairCotThetaSeparation(), pairInvariantMass(), and pairMomentum().

159 {return theTrackPin_;}
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:201
const std::vector<math::XYZVectorF>& reco::Conversion::tracksPout ( ) const
inline

Vector of track momentum measured at the outermost hit.

Definition at line 157 of file Conversion.h.

References theTrackPout_.

157 {return theTrackPout_;}
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:203
std::vector< double > Conversion::tracksSigned_d0 ( ) const

signed transverse impact parameter for each track

Definition at line 303 of file Conversion.cc.

References query::result, findQualityFiles::size, and tracks().

303  {
304  std::vector<double> result;
305  result.reserve(tracks().size());
306 
307  for (auto const& track: tracks()) {
308  result.emplace_back(track->d0()* track->charge()) ;
309  }
310  return result;
311 }
tuple result
Definition: query.py:137
tuple size
Write out results.
std::vector< edm::RefToBase< reco::Track > > const & tracks() const
vector of track to base references
Definition: Conversion.cc:176
double reco::Conversion::zOfPrimaryVertexFromTracks ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const
inline

Definition at line 145 of file Conversion.h.

References dz().

Referenced by TkConvValidator::analyze(), OniaPhotonConversionProducer::HighpuritySubset(), ConversionProducer::matchingSC(), and FWConversionProxyBuilder::requestCommon().

145 { return dz(myBeamSpot) + myBeamSpot.z(); }
double dz(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:380

Member Data Documentation

std::string const Conversion::algoNames = { "undefined","ecalSeeded","trackerOnly","mixed","pflow"}
static

Definition at line 43 of file Conversion.h.

Referenced by algoByName(), and algoName().

uint8_t reco::Conversion::algorithm_
private

conversion algorithm/provenance

Definition at line 218 of file Conversion.h.

Referenced by algo(), algoName(), Conversion(), and setConversionAlgorithm().

reco::CaloClusterPtrVector reco::Conversion::caloCluster_
private

vector pointer to a/multiple seed CaloCluster(s)

Definition at line 189 of file Conversion.h.

Referenced by caloCluster(), and setMatchingSuperCluster().

std::vector<Measurement1DFloat> reco::Conversion::dlClosestHitToVtx_
private

signed decay length and uncertainty from nearest hit on track to conversion vertex

Definition at line 207 of file Conversion.h.

Referenced by dlClosestHitToVtx().

std::vector<uint8_t> reco::Conversion::nHitsBeforeVtx_
private

number of hits before the vertex on each trackerOnly

Definition at line 205 of file Conversion.h.

Referenced by nHitsBeforeVtx().

uint8_t reco::Conversion::nSharedHits_
private

number of shared hits between tracks

Definition at line 216 of file Conversion.h.

Referenced by Conversion(), and nSharedHits().

uint16_t reco::Conversion::qualityMask_
private

Definition at line 214 of file Conversion.h.

Referenced by Conversion(), quality(), and setQuality().

reco::Vertex reco::Conversion::theConversionVertex_
private

Fitted Kalman conversion vertex.

Definition at line 195 of file Conversion.h.

Referenced by conversionVertex().

std::vector<reco::CaloClusterPtr> reco::Conversion::theMatchingBCs_
private

Clusters mathing the tracks (these are not the seeds)

Definition at line 197 of file Conversion.h.

Referenced by bcMatchingWithTracks().

float reco::Conversion::theMinDistOfApproach_
private

Distance of min approach of the two tracks.

Definition at line 211 of file Conversion.h.

Referenced by Conversion(), and distOfMinimumApproach().

float reco::Conversion::theMVAout_
private

TMVA output.

Definition at line 213 of file Conversion.h.

Referenced by Conversion(), MVAout(), and setMVAout().

std::vector<float> reco::Conversion::theOneLegMVA_
private

vectors of TMVA outputs from pflow for one leg conversions

Definition at line 209 of file Conversion.h.

Referenced by oneLegMVA(), and setOneLegMVA().

std::vector<math::XYZPointF> reco::Conversion::thePositionAtEcal_
private

position at the ECAl surface of the track extrapolation

Definition at line 193 of file Conversion.h.

Referenced by Conversion(), and ecalImpactPosition().

std::vector<math::XYZPointF> reco::Conversion::theTrackInnerPosition_
private

P_in of tracks.

Definition at line 199 of file Conversion.h.

Referenced by Conversion(), and tracksInnerPosition().

std::vector<math::XYZVectorF> reco::Conversion::theTrackPin_
private

P_in of tracks.

Definition at line 201 of file Conversion.h.

Referenced by Conversion(), and tracksPin().

std::vector<math::XYZVectorF> reco::Conversion::theTrackPout_
private

P_out of tracks.

Definition at line 203 of file Conversion.h.

Referenced by Conversion(), and tracksPout().

std::vector<edm::RefToBase<reco::Track> > reco::Conversion::trackToBaseRefs_
private

vector Track RefToBase

Definition at line 191 of file Conversion.h.

Referenced by Conversion(), and tracks().