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 > > 
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
 
virtual ~Conversion ()
 destructor More...
 

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< reco::TrackReftracks_
 vector of Track references More...
 
std::vector< edm::RefToBase
< reco::Track > > 
trackToBaseRefs_
 vector Track RefToBase More...
 

Detailed Description

Author
N.Marinelli University of Notre Dame, US
Version
Id:
Conversion.h,v 1.25 2013/04/22 22:44:45 wmtan Exp

Definition at line 25 of file Conversion.h.

Member Enumeration Documentation

Enumerator
undefined 
ecalSeeded 
trackerOnly 
mixed 
pflow 
algoSize 

Definition at line 28 of file Conversion.h.

Enumerator
generalTracksOnly 
arbitratedEcalSeeded 
arbitratedMerged 
arbitratedMergedEcalGeneral 
highPurity 
highEfficiency 
ecalMatched1Track 
ecalMatched2Track 

Definition at line 35 of file Conversion.h.

Constructor & Destructor Documentation

Conversion::Conversion ( )

Definition at line 133 of file Conversion.cc.

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

Referenced by clone().

133  {
134 
135  algorithm_=0;
136  qualityMask_=0;
137  theMinDistOfApproach_ = 9999.;
138  nSharedHits_ = 0;
139  theMVAout_ = 9999.;
140  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
141  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
142  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
143  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
144  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
145  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
146  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
147  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
148 
149 }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:211
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:11
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:217
uint16_t qualityMask_
Definition: Conversion.h:224
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:207
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:223
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:209
float theMVAout_
TMVA output.
Definition: Conversion.h:219
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:205
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:199
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 41 of file Conversion.cc.

54  :
55 
56 
58  thePositionAtEcal_(trackPositionAtEcal),
59  theConversionVertex_(convVtx),
60  theMatchingBCs_(matchingBC),
62  theTrackInnerPosition_(innPoint),
63  theTrackPin_(trackPin),
64  theTrackPout_(trackPout),
68  theMVAout_(mva),
70  qualityMask_(0)
71  {
72 
73  }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:211
ConversionAlgorithm algo() const
Definition: Conversion.h:229
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:167
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:193
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:217
uint16_t qualityMask_
Definition: Conversion.h:224
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:207
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:223
uint8_t nSharedHits() const
number of shared hits btw the two track
Definition: Conversion.h:169
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:209
float theMVAout_
TMVA output.
Definition: Conversion.h:219
std::vector< reco::CaloClusterPtr > theMatchingBCs_
Clusters mathing the tracks (these are not the seeds)
Definition: Conversion.h:203
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:205
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:199
std::vector< edm::RefToBase< reco::Track > > trackToBaseRefs_
vector Track RefToBase
Definition: Conversion.h:197
const std::vector< uint8_t > & nHitsBeforeVtx() const
Vector of the number of hits before the vertex along each track trajector.
Definition: Conversion.h:165
std::vector< Measurement1DFloat > dlClosestHitToVtx_
signed decay length and uncertainty from nearest hit on track to conversion vertex ...
Definition: Conversion.h:215
reco::Vertex theConversionVertex_
Fitted Kalman conversion vertex.
Definition: Conversion.h:201
std::vector< uint8_t > nHitsBeforeVtx_
number of hits before the vertex on each trackerOnly
Definition: Conversion.h:213
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.

19  :
20 
21 
22  caloCluster_(sc), tracks_(tr),
23  thePositionAtEcal_(trackPositionAtEcal),
24  theConversionVertex_(convVtx),
25  theMatchingBCs_(matchingBC),
27  theTrackInnerPosition_(innPoint),
28  theTrackPin_(trackPin),
29  theTrackPout_(trackPout),
30  nSharedHits_(0),
31  theMVAout_(mva),
33  qualityMask_(0)
34  {
35 
36  }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:211
ConversionAlgorithm algo() const
Definition: Conversion.h:229
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:193
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:217
uint16_t qualityMask_
Definition: Conversion.h:224
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:207
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:223
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:209
float theMVAout_
TMVA output.
Definition: Conversion.h:219
std::vector< reco::CaloClusterPtr > theMatchingBCs_
Clusters mathing the tracks (these are not the seeds)
Definition: Conversion.h:203
std::vector< reco::TrackRef > tracks_
vector of Track references
Definition: Conversion.h:195
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:205
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:199
reco::Vertex theConversionVertex_
Fitted Kalman conversion vertex.
Definition: Conversion.h:201
Conversion::Conversion ( const reco::CaloClusterPtrVector  clu,
const std::vector< reco::TrackRef > &  tr,
const reco::Vertex convVtx,
ConversionAlgorithm  algo = undefined 
)

Definition at line 78 of file Conversion.cc.

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

81  :
82  caloCluster_(sc), tracks_(tr),
83  theConversionVertex_(convVtx),
84  nSharedHits_(0),
86  qualityMask_(0)
87  {
88 
89 
90  theMinDistOfApproach_ = 9999.;
91  theMVAout_ = 9999.;
92  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
93  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
94  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
95  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
96  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
97  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
98  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
99  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
100 
101 
102  }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:211
ConversionAlgorithm algo() const
Definition: Conversion.h:229
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:193
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:11
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:217
uint16_t qualityMask_
Definition: Conversion.h:224
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:207
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:223
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:209
float theMVAout_
TMVA output.
Definition: Conversion.h:219
std::vector< reco::TrackRef > tracks_
vector of Track references
Definition: Conversion.h:195
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:205
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:199
reco::Vertex theConversionVertex_
Fitted Kalman conversion vertex.
Definition: Conversion.h:201
Conversion::Conversion ( const reco::CaloClusterPtrVector  clu,
const std::vector< edm::RefToBase< reco::Track > > &  tr,
const reco::Vertex convVtx,
ConversionAlgorithm  algo = undefined 
)

Definition at line 105 of file Conversion.cc.

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

108  :
109  caloCluster_(sc), trackToBaseRefs_(tr),
110  theConversionVertex_(convVtx),
111  nSharedHits_(0),
112  algorithm_(algo),
113  qualityMask_(0)
114  {
115 
116 
117  theMinDistOfApproach_ = 9999.;
118  theMVAout_ = 9999.;
119  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
120  thePositionAtEcal_.push_back(math::XYZPointF(0.,0.,0.));
121  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
122  theTrackInnerPosition_.push_back(math::XYZPointF(0.,0.,0.));
123  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
124  theTrackPin_.push_back(math::XYZVectorF(0.,0.,0.));
125  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
126  theTrackPout_.push_back(math::XYZVectorF(0.,0.,0.));
127 
128 
129  }
std::vector< math::XYZVectorF > theTrackPout_
P_out of tracks.
Definition: Conversion.h:211
ConversionAlgorithm algo() const
Definition: Conversion.h:229
reco::CaloClusterPtrVector caloCluster_
vector pointer to a/multiple seed CaloCluster(s)
Definition: Conversion.h:193
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:11
uint8_t nSharedHits_
number of shared hits between tracks
Definition: Conversion.h:217
uint16_t qualityMask_
Definition: Conversion.h:224
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
std::vector< math::XYZPointF > theTrackInnerPosition_
P_in of tracks.
Definition: Conversion.h:207
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:223
std::vector< math::XYZVectorF > theTrackPin_
P_in of tracks.
Definition: Conversion.h:209
float theMVAout_
TMVA output.
Definition: Conversion.h:219
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:205
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:199
std::vector< edm::RefToBase< reco::Track > > trackToBaseRefs_
vector Track RefToBase
Definition: Conversion.h:197
reco::Vertex theConversionVertex_
Fitted Kalman conversion vertex.
Definition: Conversion.h:201
Conversion::~Conversion ( )
virtual

destructor

Definition at line 152 of file Conversion.cc.

152 { }

Member Function Documentation

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

Definition at line 229 of file Conversion.h.

References algorithm_.

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

Definition at line 157 of file Conversion.cc.

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

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

157  {
160  if(index == size) return undefined;
161 
162  return ConversionAlgorithm(index);
163 }
static const std::string algoNames[]
Definition: Conversion.h:44
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 234 of file Conversion.h.

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

234  {
235 
236  switch(algorithm_)
237  {
238  case undefined: return "undefined";
239  case ecalSeeded: return "ecalSeeded";
240  case trackerOnly: return "trackerOnly";
241  case mixed: return "mixed";
242  case pflow: return "pflow";
243 
244  }
245  return "undefined";
246  }
uint8_t algorithm_
conversion algorithm/provenance
Definition: Conversion.h:223
std::string reco::Conversion::algoName ( ConversionAlgorithm  a)
inlinestatic

Definition at line 248 of file Conversion.h.

References algoNames, and algoSize.

248  {
249  if(int(a) < int(algoSize) && int(a)>0) return algoNames[int(a)];
250  return "undefined";
251  }
static const std::string algoNames[]
Definition: Conversion.h:44
double a
Definition: hdecay.h:121
const std::vector<reco::CaloClusterPtr>& reco::Conversion::bcMatchingWithTracks ( ) const
inline

Definition at line 155 of file Conversion.h.

References theMatchingBCs_.

Referenced by dEtaTracksAtEcal(), and dPhiTracksAtEcal().

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

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

Definition at line 97 of file Conversion.h.

References caloCluster_.

Referenced by EoverP(), and EoverPrefittedTracks().

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

returns a clone of the candidate

Definition at line 165 of file Conversion.cc.

References Conversion().

Referenced by ConvertedPhotonProducer::cleanCollections().

165  {
166  return new Conversion( * this );
167 }
const reco::Vertex& reco::Conversion::conversionVertex ( ) const
inline
double Conversion::dEtaTracksAtEcal ( ) const

Definition at line 356 of file Conversion.cc.

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

356  {
357  double result=-99.;
358 
359 
360  if ( nTracks()==2 && bcMatchingWithTracks()[0].isNonnull() && bcMatchingWithTracks()[1].isNonnull() ) {
361 
362  result =ecalImpactPosition()[0].eta() - ecalImpactPosition()[1].eta();
363 
364  }
365 
366 
367 
368  return result;
369 
370 
371 }
tuple result
Definition: query.py:137
const std::vector< reco::CaloClusterPtr > & bcMatchingWithTracks() const
Definition: Conversion.h:155
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:105
const std::vector< math::XYZPointF > & ecalImpactPosition() const
Definition: Conversion.h:153
double reco::Conversion::distOfMinimumApproach ( ) const
inline

Definition at line 129 of file Conversion.h.

References theMinDistOfApproach_.

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

129 {return theMinDistOfApproach_;}
float theMinDistOfApproach_
Distance of min approach of the two tracks.
Definition: Conversion.h:205
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 167 of file Conversion.h.

References dlClosestHitToVtx_.

Referenced by TkConvValidator::analyze().

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

Definition at line 331 of file Conversion.cc.

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

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

Definition at line 318 of file Conversion.cc.

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

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

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

Definition at line 373 of file Conversion.cc.

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

373  {
374 
375  const reco::Vertex &vtx = conversionVertex();
376  if (!vtx.isValid()) return -9999.;
377 
379 
380  double dxy = (-(vtx.x() - myBeamSpot.x())*mom.y() + (vtx.y() - myBeamSpot.y())*mom.x())/mom.rho();
381  return dxy;
382 
383 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:101
double y() const
y coordinate
Definition: Vertex.h:97
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:61
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:252
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
double x() const
x coordinate
Definition: Vertex.h:95
double dxy(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:373
double Conversion::dz ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const

Definition at line 385 of file Conversion.cc.

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

Referenced by zOfPrimaryVertexFromTracks().

385  {
386 
387  const reco::Vertex &vtx = conversionVertex();
388  if (!vtx.isValid()) return -9999.;
389 
391 
392  double dz = (vtx.z()-myBeamSpot.z()) - ((vtx.x()-myBeamSpot.x())*mom.x()+(vtx.y()-myBeamSpot.y())*mom.y())/mom.rho() * mom.z()/mom.rho();
393  return dz;
394 
395 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:101
double y() const
y coordinate
Definition: Vertex.h:97
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:61
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:252
double z() const
y coordinate
Definition: Vertex.h:99
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
double x() const
x coordinate
Definition: Vertex.h:95
double dz(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:385
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 153 of file Conversion.h.

References thePositionAtEcal_.

Referenced by dEtaTracksAtEcal(), and dPhiTracksAtEcal().

153 {return thePositionAtEcal_;}
std::vector< math::XYZPointF > thePositionAtEcal_
position at the ECAl surface of the track extrapolation
Definition: Conversion.h:199
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 263 of file Conversion.cc.

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

Referenced by ConversionLikelihoodCalculator::calculateLikelihood().

263  {
264 
265 
266  double ep=-99.;
267 
268  if ( nTracks() > 0 ) {
269  unsigned int size= this->caloCluster().size();
270  float etot=0.;
271  for ( unsigned int i=0; i<size; i++) {
272  etot+= caloCluster()[i]->energy();
273  }
274  if (this->pairMomentum().Mag2() !=0) ep= etot/sqrt(this->pairMomentum().Mag2());
275  }
276 
277 
278 
279  return ep;
280 
281 }
int i
Definition: DBlmapReader.cc:9
size_type size() const
Size of the RefVector.
Definition: PtrVectorBase.h:73
T sqrt(T t)
Definition: SSEVec.h:48
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:105
math::XYZVectorF pairMomentum() const
Conversion tracks momentum from the tracks inner momentum.
Definition: Conversion.cc:227
reco::CaloClusterPtrVector caloCluster() const
Pointer to CaloCluster (foe Egamma Conversions it points to a SuperCluster)
Definition: Conversion.h:97
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 285 of file Conversion.cc.

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

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

Bool flagging objects having track size >0.

Definition at line 186 of file Conversion.cc.

References nTracks().

186  {
187 
188  if ( this->nTracks() == 2 )
189  return true;
190  else
191  return false;
192 }
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:105
double Conversion::lxy ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const

Definition at line 397 of file Conversion.cc.

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

397  {
398 
399  const reco::Vertex &vtx = conversionVertex();
400  if (!vtx.isValid()) return -9999.;
401 
403 
404  double dbsx = vtx.x() - myBeamSpot.x();
405  double dbsy = vtx.y() - myBeamSpot.y();
406  double lxy = (mom.x()*dbsx + mom.y()*dbsy)/mom.rho();
407  return lxy;
408 
409 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:101
double y() const
y coordinate
Definition: Vertex.h:97
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:61
double lxy(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:397
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:252
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
double x() const
x coordinate
Definition: Vertex.h:95
double Conversion::lz ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const

Definition at line 411 of file Conversion.cc.

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

411  {
412 
413  const reco::Vertex &vtx = conversionVertex();
414  if (!vtx.isValid()) return -9999.;
415 
417 
418  double lz = (vtx.z() - myBeamSpot.z())*mom.z()/std::abs(mom.z());
419  return lz;
420 
421 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:101
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:61
#define abs(x)
Definition: mlp_lapack.h:159
math::XYZVectorF refittedPairMomentum() const
Conversion tracks momentum from the tracks refitted with vertex constraint.
Definition: Conversion.cc:252
double z() const
y coordinate
Definition: Vertex.h:99
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
double lz(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
Definition: Conversion.cc:411
double reco::Conversion::MVAout ( ) const
inline

get the value of the TMVA output

Definition at line 107 of file Conversion.h.

References theMVAout_.

107 { return theMVAout_;}
float theMVAout_
TMVA output.
Definition: Conversion.h:219
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 165 of file Conversion.h.

References nHitsBeforeVtx_.

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

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

number of shared hits btw the two track

Definition at line 169 of file Conversion.h.

References nSharedHits_.

Referenced by TkConvValidator::analyze().

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

Number of tracks= 0,1,2.

Definition at line 105 of file Conversion.h.

References tracks().

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

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

get the MVS output from PF for one leg conversions

Definition at line 109 of file Conversion.h.

References theOneLegMVA_.

109 {return theOneLegMVA_;}
std::vector< float > theOneLegMVA_
vectors of TMVA outputs from pflow for one leg conversions
Definition: Conversion.h:221
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 213 of file Conversion.cc.

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

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

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

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

Definition at line 194 of file Conversion.cc.

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

Referenced by TkConvValidator::analyze().

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

Conversion tracks momentum from the tracks inner momentum.

Definition at line 227 of file Conversion.cc.

References nTracks(), and tracksPin().

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

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

Definition at line 185 of file Conversion.h.

References lumiQueryAPI::q, and qualityMask_.

Referenced by TkConvValidator::analyze().

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

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

Definition at line 239 of file Conversion.cc.

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

Referenced by PF_PU_AssoMapAlgos::FindConversionVertex(), and refittedPairMomentum().

239  {
240 
242  if ( this->conversionVertex().isValid() )
243  p4 = this->conversionVertex().p4( 0.000511, 0.5);
244 
245  return p4;
246 
247 
248 }
const reco::Vertex & conversionVertex() const
returns the reco conversion vertex
Definition: Conversion.h:101
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:23
math::XYZVectorF Conversion::refittedPairMomentum ( ) const

Conversion tracks momentum from the tracks refitted with vertex constraint.

Definition at line 252 of file Conversion.cc.

References conversionVertex(), and refittedPair4Momentum().

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

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

Conversion Track algorithm/provenance.

Definition at line 179 of file Conversion.h.

References a, algorithm_, and undefined.

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

Definition at line 177 of file Conversion.h.

References caloCluster_.

Referenced by ConversionProducer::buildCollection().

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

set the value of the TMVA output

Definition at line 173 of file Conversion.h.

References theMVAout_.

Referenced by ConvertedPhotonProducer::buildCollections().

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

set the MVS output from PF for one leg conversions

Definition at line 175 of file Conversion.h.

References theOneLegMVA_.

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

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

Definition at line 253 of file Conversion.h.

References lumiQueryAPI::q, and qualityMask_.

Referenced by ConversionProducer::buildCollection().

253  {
254  if (b)//regular OR if setting value to true
255  qualityMask_ |= (1<<q) ;
256  else // doing "half-XOR" if unsetting value
257  qualityMask_ &= (~(1<<q));
258 
259  }
uint16_t qualityMask_
Definition: Conversion.h:224
double b
Definition: hdecay.h:120
std::vector< edm::RefToBase< reco::Track > > Conversion::tracks ( void  ) const

vector of track to base references

Definition at line 170 of file Conversion.cc.

References tracks_, trackToBaseRefs_, and groupFilesInBlocks::tt.

Referenced by TkConvValidator::analyze(), FWConvTrackHitsDetailView::build(), ConversionLikelihoodCalculator::calculateLikelihood(), ConversionTools::matchesConversion(), nTracks(), FWConvTrackHitsDetailView::setTextInfo(), and tracksSigned_d0().

170  {
171  if (trackToBaseRefs_.size() ==0 ) {
172 
173  for (std::vector<reco::TrackRef>::const_iterator ref=tracks_.begin(); ref!=tracks_.end(); ref++ )
174  {
176  trackToBaseRefs_.push_back(tt);
177 
178  }
179  }
180 
181  return trackToBaseRefs_;
182 }
std::vector< reco::TrackRef > tracks_
vector of Track references
Definition: Conversion.h:195
std::vector< edm::RefToBase< reco::Track > > trackToBaseRefs_
vector Track RefToBase
Definition: Conversion.h:197
const std::vector<math::XYZPointF>& reco::Conversion::tracksInnerPosition ( ) const
inline

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

Definition at line 159 of file Conversion.h.

References theTrackInnerPosition_.

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

Vector of track momentum measured at the innermost hit.

Definition at line 163 of file Conversion.h.

References theTrackPin_.

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

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

Vector of track momentum measured at the outermost hit.

Definition at line 161 of file Conversion.h.

References theTrackPout_.

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

signed transverse impact parameter for each track

Definition at line 307 of file Conversion.cc.

References DeDxDiscriminatorTools::charge(), i, nTracks(), query::result, and tracks().

307  {
308  std::vector<double> result;
309 
310  for (unsigned int i=0; i< nTracks(); i++)
311  result.push_back(tracks()[i]->d0()* tracks()[i]->charge()) ;
312 
313  return result;
314 
315 
316 }
int i
Definition: DBlmapReader.cc:9
double charge(const std::vector< uint8_t > &Ampls)
std::vector< edm::RefToBase< reco::Track > > tracks() const
vector of track to base references
Definition: Conversion.cc:170
tuple result
Definition: query.py:137
unsigned int nTracks() const
Number of tracks= 0,1,2.
Definition: Conversion.h:105
double reco::Conversion::zOfPrimaryVertexFromTracks ( const math::XYZPoint myBeamSpot = math::XYZPoint()) const
inline

Definition at line 149 of file Conversion.h.

References dz().

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

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

Member Data Documentation

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

Definition at line 44 of file Conversion.h.

Referenced by algoByName(), and algoName().

uint8_t reco::Conversion::algorithm_
private

conversion algorithm/provenance

Definition at line 223 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 193 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 215 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 213 of file Conversion.h.

Referenced by nHitsBeforeVtx().

uint8_t reco::Conversion::nSharedHits_
private

number of shared hits between tracks

Definition at line 217 of file Conversion.h.

Referenced by Conversion(), and nSharedHits().

uint16_t reco::Conversion::qualityMask_
private

Definition at line 224 of file Conversion.h.

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

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

Fitted Kalman conversion vertex.

Definition at line 201 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 203 of file Conversion.h.

Referenced by bcMatchingWithTracks().

float reco::Conversion::theMinDistOfApproach_
private

Distance of min approach of the two tracks.

Definition at line 205 of file Conversion.h.

Referenced by Conversion(), and distOfMinimumApproach().

float reco::Conversion::theMVAout_
private

TMVA output.

Definition at line 219 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 221 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 199 of file Conversion.h.

Referenced by Conversion(), and ecalImpactPosition().

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

P_in of tracks.

Definition at line 207 of file Conversion.h.

Referenced by Conversion(), and tracksInnerPosition().

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

P_in of tracks.

Definition at line 209 of file Conversion.h.

Referenced by Conversion(), and tracksPin().

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

P_out of tracks.

Definition at line 211 of file Conversion.h.

Referenced by Conversion(), and tracksPout().

std::vector<reco::TrackRef> reco::Conversion::tracks_
private

vector of Track references

Definition at line 195 of file Conversion.h.

Referenced by tracks().

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

vector Track RefToBase

Definition at line 197 of file Conversion.h.

Referenced by tracks().