|
|
Go to the documentation of this file.
11 caloPosition_(rhs.caloPosition_),
12 photonCore_(rhs.photonCore_),
13 pixelSeed_(rhs.pixelSeed_),
14 fiducialFlagBlock_(rhs.fiducialFlagBlock_),
15 isolationR04_(rhs.isolationR04_),
16 isolationR03_(rhs.isolationR03_),
17 showerShapeBlock_(rhs.showerShapeBlock_),
18 full5x5_showerShapeBlock_(rhs.full5x5_showerShapeBlock_),
19 saturationInfo_(rhs.saturationInfo_),
20 eCorrections_(rhs.eCorrections_),
21 mipVariableBlock_(rhs.mipVariableBlock_),
22 pfIsolation_(rhs.pfIsolation_) {}
50 bool isEg =
false, isPf =
false;
52 for (
unsigned iConv = 0; iConv < conv2leg.
size(); iConv++) {
53 std::vector<edm::RefToBase<reco::Track> > convtracks = conv2leg[iConv]->tracks();
54 for (
unsigned itk = 0; itk < convtracks.size(); itk++) {
55 if (convTrack == convtracks[itk])
60 for (
unsigned iConv = 0; iConv < conv1leg.
size(); iConv++) {
61 std::vector<edm::RefToBase<reco::Track> > convtracks = conv1leg[iConv]->tracks();
62 for (
unsigned itk = 0; itk < convtracks.size(); itk++) {
63 if (convTrack == convtracks[itk])
80 newP4 *= newEnergy / newP4.e();
101 setP4(
type, newP4, delta_e, setToRecoCandidate);
118 throw cms::Exception(
"reco::Photon") <<
"unexpected p4 type " <<
type <<
" cannot return the energy value: ";
137 <<
"unexpected p4 type " <<
type <<
" cannot return the uncertainty on the energy: ";
162 if (setToRecoCandidate) {
179 throw cms::Exception(
"reco::Photon") <<
"unexpected p4 type: " <<
type <<
" cannot return p4 ";
Vector momentum() const final
spatial momentum vector
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
Photon * clone() const override
returns a clone of the candidate
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
float regression1EnergyError
LorentzVector regression1P4
void setVertex(const Point &vertex) override
set vertex
math::XYZPointF caloPosition() const
position in ECAL: this is th SC position if r9<0.93. If r8>0.93 is position of seed BasicCluster taki...
Structure Point Contains parameters of Gaussian fits to DMRs.
reco::PhotonCoreRef photonCore() const
returns a reference to the core photon object
float getCorrectedEnergyError(P4type type) const
bool overlap(const Candidate &) const override
check overlap with another candidate
const LorentzVector & p4() const final
four-momentum Lorentz vector
Photon()
default constructor
void setCorrectedEnergy(P4type type, float E, float dE, bool toCand=true)
const Point & vertex() const override
vertex position (overwritten by PF...)
EnergyCorrections eCorrections_
LorentzVector regression2P4
float getCorrectedEnergy(P4type type) const
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
math::XYZTLorentzVector LorentzVector
float regression2EnergyError
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
int conversionTrackProvenance(const edm::RefToBase< reco::Track > &convTrack) const
void setVertex(const Point &vertex) override
set primary event vertex used to define photon direction
double energy() const final
energy
math::XYZTLorentzVector LorentzVector
Lorentz vector.
void setP4(P4type type, const LorentzVector &p4, float p4Error, bool setToRecoCandidate)
size_type size() const
Size of the RefVector.
~Photon() override
destructor