53 std::vector<const reco::PFCluster *> &,
58 unsigned plane)
const;
127 std::vector<reco::ConversionRefVector>
pfConv_;
148 using namespace reco;
160 inputTagIsoVals_.push_back(isoVals.getParameter<
edm::InputTag>(
"pfChargedHadrons"));
161 inputTagIsoVals_.push_back(isoVals.getParameter<
edm::InputTag>(
"pfPhotons"));
162 inputTagIsoVals_.push_back(isoVals.getParameter<
edm::InputTag>(
"pfNeutralHadrons"));
181 if (iConfig.
exists(
"emptyIsOk"))
186 ecalMustacheSCParametersToken_ = esConsumes<EcalMustacheSCParameters, EcalMustacheSCParametersRcd>();
188 produces<reco::BasicClusterCollection>(PFBasicClusterCollection_);
189 produces<reco::PreshowerClusterCollection>(PFPreshowerClusterCollection_);
190 produces<reco::SuperClusterCollection>(PFSuperClusterCollection_);
191 produces<reco::PhotonCoreCollection>(PFPhotonCoreCollection_);
192 produces<reco::PhotonCollection>(PFPhotonCollection_);
193 produces<reco::ConversionCollection>(PFConversionCollection_);
200 mustacheSCParams_ = &iSetup.
getData(ecalMustacheSCParametersToken_);
202 auto basicClusters_p = std::make_unique<reco::BasicClusterCollection>();
204 auto psClusters_p = std::make_unique<reco::PreshowerClusterCollection>();
215 outputSuperClusterCollection.clear();
216 outputOneLegConversionCollection.clear();
217 outputPhotonCoreCollection.clear();
218 outputPhotonCollection.clear();
221 bool status = fetchCandidateCollection(pfCandidates, inputTagPFCandidates_, iEvent);
224 iEvent.
getByLabel(EGPhotonCollection_, egPhotons);
229 for (
size_t j = 0;
j < inputTagIsoVals_.size(); ++
j) {
230 iEvent.
getByLabel(inputTagIsoVals_[
j], isolationValues[j]);
234 photPFCandidateIndex_.clear();
235 basicClusters_.clear();
237 preshowerClusters_.clear();
239 basicClusterPtr_.clear();
240 preshowerClusterPtr_.clear();
241 CandidatePtr_.clear();
243 egPhotonRef_.clear();
244 pfPhotonMva_.clear();
245 energyRegression_.clear();
246 energyRegressionError_.clear();
248 pfSingleLegConv_.clear();
249 pfSingleLegConvMva_.clear();
250 conv1legPFCandidateIndex_.clear();
251 conv2legPFCandidateIndex_.clear();
258 unsigned ncand = (
status) ? pfCandidates->size() : 0;
261 unsigned iconv1leg = 0;
262 unsigned iconv2leg = 0;
264 for (
unsigned i = 0;
i < ncand; ++
i) {
279 for (
unsigned int iconv = 0; iconv < doubleLegConvColl.
size(); iconv++) {
280 pfConv_[iconv2leg].push_back(doubleLegConvColl[iconv]);
283 conv2legPFCandidateIndex_.push_back(iconv2leg);
286 conv2legPFCandidateIndex_.push_back(-1);
288 const std::vector<reco::TrackRef> &singleLegConvColl = cand.
photonExtraRef()->singleLegConvTrackRef();
289 const std::vector<float> &singleLegConvCollMva = cand.
photonExtraRef()->singleLegConvMva();
293 if (!singleLegConvColl.empty()) {
294 pfSingleLegConv_.push_back(std::vector<reco::TrackRef>());
295 pfSingleLegConvMva_.push_back(std::vector<float>());
298 for (
unsigned int itk = 0; itk < singleLegConvColl.size(); itk++) {
301 pfSingleLegConv_[iconv1leg].push_back(singleLegConvColl[itk]);
302 pfSingleLegConvMva_[iconv1leg].push_back(singleLegConvCollMva[itk]);
305 conv1legPFCandidateIndex_.push_back(iconv1leg);
309 conv1legPFCandidateIndex_.push_back(-1);
312 photPFCandidateIndex_.push_back(
i);
314 energyRegression_.push_back(cand.
photonExtraRef()->MVAGlobalCorrE());
315 energyRegressionError_.push_back(cand.
photonExtraRef()->MVAGlobalCorrEError());
317 pfClusters_.push_back(std::vector<const reco::PFCluster *>());
322 CandidatePtr_.push_back(ptrToPFPhoton);
327 for (reco::PhotonCollection::const_iterator gamIter = egPhotons->begin(); gamIter != egPhotons->end(); ++gamIter) {
330 egPhotonRef_.push_back(PhotRef);
356 createBasicCluster(pfbe, basicClusters_[iphot], pfClusters_[iphot], correspondingDaughterCandidate(cand, pfbe));
360 createPreshowerCluster(pfbe, preshowerClusters_[iphot], 1);
364 createPreshowerCluster(pfbe, preshowerClusters_[iphot], 2);
370 basicClusters_p->insert(basicClusters_p->end(), basicClusters_[iphot].begin(), basicClusters_[iphot].end());
372 psClusters_p->insert(psClusters_p->end(), preshowerClusters_[iphot].begin(), preshowerClusters_[iphot].end());
381 iEvent.
put(
std::move(basicClusters_p), PFBasicClusterCollection_);
385 iEvent.
put(
std::move(psClusters_p), PFPreshowerClusterCollection_);
388 createBasicClusterPtrs(bcRefProd);
390 createPreshowerClusterPtrs(psRefProd);
395 createSuperClusters(*pfCandidates, outputSuperClusterCollection);
400 auto superClusters_p = std::make_unique<reco::SuperClusterCollection>(outputSuperClusterCollection);
402 iEvent.
put(
std::move(superClusters_p), PFSuperClusterCollection_);
415 createOneLegConversions(scRefProd, outputOneLegConversionCollection);
417 auto SingleLeg_p = std::make_unique<reco::ConversionCollection>(outputOneLegConversionCollection);
419 iEvent.
put(
std::move(SingleLeg_p), PFConversionCollection_);
437 createPhotonCores(scRefProd, ConvRefProd, outputPhotonCoreCollection);
442 auto photonCores_p = std::make_unique<reco::PhotonCoreCollection>(outputPhotonCoreCollection);
445 iEvent.
put(
std::move(photonCores_p), PFPhotonCoreCollection_);
478 bool validVertex =
true;
479 iEvent.
getByLabel(vertexProducer_, vertexHandle);
481 edm::LogWarning(
"PhotonProducer") <<
"Error! Can't get the product primary Vertex Collection "
486 vertexCollection = *(vertexHandle.
product());
524 createPhotons(vertexCollection, egPhotons, pcRefProd, isolationValues, outputPhotonCollection);
527 auto photons_p = std::make_unique<reco::PhotonCollection>(outputPhotonCollection);
586 if (!found && !emptyIsOk_) {
587 std::ostringstream
err;
588 err <<
" cannot get PFCandidates: " << tag << std::endl;
599 std::vector<const reco::PFCluster *> &pfClusters,
602 if (myPFClusterRef.
isNull())
606 pfClusters.push_back(&myPFCluster);
617 myPFCluster.
seed()));
622 unsigned plane)
const {
625 myPFClusterRef->energy(), myPFClusterRef->position(), myPFClusterRef->hitsAndFractions(), plane));
630 unsigned size = photPFCandidateIndex_.size();
631 unsigned basicClusterCounter = 0;
632 basicClusterPtr_.resize(size);
634 for (
unsigned iphot = 0; iphot <
size; ++iphot)
636 unsigned nbc = basicClusters_[iphot].size();
637 for (
unsigned ibc = 0; ibc < nbc; ++ibc)
641 basicClusterPtr_[iphot].push_back(bcPtr);
642 ++basicClusterCounter;
649 unsigned size = photPFCandidateIndex_.size();
650 unsigned psClusterCounter = 0;
651 preshowerClusterPtr_.resize(size);
653 for (
unsigned iphot = 0; iphot <
size; ++iphot)
655 unsigned nbc = preshowerClusters_[iphot].size();
656 for (
unsigned ibc = 0; ibc < nbc; ++ibc)
660 preshowerClusterPtr_[iphot].push_back(psPtr);
668 unsigned nphot = photPFCandidateIndex_.size();
669 for (
unsigned iphot = 0; iphot < nphot; ++iphot) {
673 double sclusterE = 0;
678 unsigned nbasics = basicClusters_[iphot].size();
679 for (
unsigned ibc = 0; ibc < nbasics; ++ibc) {
682 double e = basicClusters_[iphot][ibc].energy();
684 posX += e * basicClusters_[iphot][ibc].position().X();
685 posY += e * basicClusters_[iphot][ibc].position().Y();
686 posZ += e * basicClusters_[iphot][ibc].position().Z();
702 double correctedEnergy = pfCand[photPFCandidateIndex_[iphot]].ecalEnergy();
709 mySuperCluster.
setSeed(basicClusterPtr_[iphot][0]);
720 for (
unsigned ibc = 0; ibc < nbasics; ++ibc) {
721 mySuperCluster.
addCluster(basicClusterPtr_[iphot][ibc]);
723 const std::vector<std::pair<DetId, float> > &v1 = basicClusters_[iphot][ibc].hitsAndFractions();
725 for (
std::vector<std::pair<DetId, float> >::const_iterator diIt = v1.begin(); diIt != v1.end(); ++diIt) {
731 unsigned nps = preshowerClusterPtr_[iphot].size();
732 for (
unsigned ips = 0; ips < nps; ++ips) {
738 pfCand[photPFCandidateIndex_[iphot]].pS2Energy());
748 superClusters.push_back(mySuperCluster);
758 unsigned nphot = photPFCandidateIndex_.size();
759 for (
unsigned iphot = 0; iphot < nphot; ++iphot) {
763 if (conv1legPFCandidateIndex_[iphot] > -1) {
764 for (
unsigned iConv = 0; iConv < pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]].size(); iConv++) {
766 std::vector<reco::CaloClusterPtr> matchingBC;
769 new reco::Vertex(pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->innerPosition(), error);
774 std::vector<reco::TrackRef> OneLegConvVector;
775 OneLegConvVector.push_back(pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]);
777 std::vector<reco::TrackRef> tr = OneLegConvVector;
778 std::vector<math::XYZPointF> trackPositionAtEcalVec;
779 std::vector<math::XYZPointF> innPointVec;
780 std::vector<math::XYZVectorF> trackPinVec;
781 std::vector<math::XYZVectorF> trackPoutVec;
783 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->outerPosition().
X(),
784 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->outerPosition().
Y(),
785 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->outerPosition().
Z());
786 math::XYZPointF innPoint(pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->innerPosition().
X(),
787 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->innerPosition().
Y(),
788 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->innerPosition().
Z());
789 math::XYZVectorF trackPin(pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->innerMomentum().
X(),
790 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->innerMomentum().
Y(),
791 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->innerMomentum().
Z());
792 math::XYZVectorF trackPout(pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->outerMomentum().
X(),
793 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->outerMomentum().
Y(),
794 pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->outerMomentum().
Z());
795 float DCA = pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]->d0();
796 trackPositionAtEcalVec.push_back(trackPositionAtEcal);
797 innPointVec.push_back(innPoint);
798 trackPinVec.push_back(trackPin);
799 trackPoutVec.push_back(trackPout);
800 std::vector<float> OneLegMvaVector;
803 trackPositionAtEcalVec,
810 pfSingleLegConvMva_[conv1legPFCandidateIndex_[iphot]][iConv],
812 OneLegMvaVector.push_back(pfSingleLegConvMva_[conv1legPFCandidateIndex_[iphot]][iConv]);
829 oneLegConversions.push_back(myOneLegConversion);
842 unsigned nphot = photPFCandidateIndex_.size();
844 unsigned i1legtot = 0;
846 for (
unsigned iphot = 0; iphot < nphot; ++iphot) {
868 if (conv1legPFCandidateIndex_[iphot] > -1) {
869 for (
unsigned int iConv = 0; iConv < pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]].size(); iConv++) {
894 if (conv2legPFCandidateIndex_[iphot] > -1) {
895 for (
unsigned int iConv = 0; iConv < pfConv_[conv2legPFCandidateIndex_[iphot]].size(); iConv++) {
918 photonCores.push_back(myPhotonCore);
931 unsigned nphot = photPFCandidateIndex_.size();
933 for (
unsigned iphot = 0; iphot < nphot; ++iphot) {
939 if (!vertexCollection.empty())
940 vtx = vertexCollection.begin()->position();
943 math::XYZVector direction = PCref->parentSuperCluster()->position() - vtx;
946 math::XYZVector P3 = direction.unit() * PCref->parentSuperCluster()->energy();
947 LorentzVector P4(P3.x(), P3.y(), P3.z(), PCref->parentSuperCluster()->energy());
949 reco::Photon myPhoton(P4, PCref->parentSuperCluster()->position(), PCref, vtx);
958 showerShape.e1x5 = egPhotonRef_[iphot]->e1x5();
959 showerShape.e2x5 = egPhotonRef_[iphot]->e2x5();
960 showerShape.e3x3 = egPhotonRef_[iphot]->e3x3();
961 showerShape.e5x5 = egPhotonRef_[iphot]->e5x5();
962 showerShape.maxEnergyXtal = egPhotonRef_[iphot]->maxEnergyXtal();
963 showerShape.sigmaEtaEta = egPhotonRef_[iphot]->sigmaEtaEta();
964 showerShape.sigmaIetaIeta = egPhotonRef_[iphot]->sigmaIetaIeta();
965 for (
uint id = 0;
id < showerShape.hcalOverEcal.size(); ++
id) {
966 showerShape.hcalOverEcal[
id] = egPhotonRef_[iphot]->hcalOverEcal(
id + 1);
968 myPhoton.setShowerShapeVariables(showerShape);
970 saturationInfo.
nSaturatedXtals = egPhotonRef_[iphot]->nSaturatedXtals();
971 saturationInfo.
isSeedSaturated = egPhotonRef_[iphot]->isSeedSaturated();
972 myPhoton.setSaturationInfo(saturationInfo);
974 fiducialFlags.
isEB = egPhotonRef_[iphot]->isEB();
975 fiducialFlags.
isEE = egPhotonRef_[iphot]->isEE();
976 fiducialFlags.
isEBEtaGap = egPhotonRef_[iphot]->isEBEtaGap();
977 fiducialFlags.
isEBPhiGap = egPhotonRef_[iphot]->isEBPhiGap();
978 fiducialFlags.
isEERingGap = egPhotonRef_[iphot]->isEERingGap();
979 fiducialFlags.
isEEDeeGap = egPhotonRef_[iphot]->isEEDeeGap();
980 fiducialFlags.
isEBEEGap = egPhotonRef_[iphot]->isEBEEGap();
981 myPhoton.setFiducialVolumeFlags(fiducialFlags);
983 isolationVariables03.
ecalRecHitSumEt = egPhotonRef_[iphot]->ecalRecHitSumEtConeDR03();
985 isolationVariables03.
hcalRecHitSumEt[
id] = egPhotonRef_[iphot]->hcalTowerSumEtConeDR03(
id + 1);
987 isolationVariables03.
trkSumPtSolidCone = egPhotonRef_[iphot]->trkSumPtSolidConeDR03();
988 isolationVariables03.
trkSumPtHollowCone = egPhotonRef_[iphot]->trkSumPtHollowConeDR03();
989 isolationVariables03.
nTrkSolidCone = egPhotonRef_[iphot]->nTrkSolidConeDR03();
990 isolationVariables03.
nTrkHollowCone = egPhotonRef_[iphot]->nTrkHollowConeDR03();
991 isolationVariables04.
ecalRecHitSumEt = egPhotonRef_[iphot]->ecalRecHitSumEtConeDR04();
993 isolationVariables04.
hcalRecHitSumEt[
id] = egPhotonRef_[iphot]->hcalTowerSumEtConeDR04(
id + 1);
995 isolationVariables04.
trkSumPtSolidCone = egPhotonRef_[iphot]->trkSumPtSolidConeDR04();
996 isolationVariables04.
trkSumPtHollowCone = egPhotonRef_[iphot]->trkSumPtHollowConeDR04();
997 isolationVariables04.
nTrkSolidCone = egPhotonRef_[iphot]->nTrkSolidConeDR04();
998 isolationVariables04.
nTrkHollowCone = egPhotonRef_[iphot]->nTrkHollowConeDR04();
999 myPhoton.setIsolationVariables(isolationVariables04, isolationVariables03);
1003 myPFIso.
photonIso = (*isolationValues[1])[CandidatePtr_[iphot]];
1005 myPhoton.setPflowIsolationVariables(myPFIso);
1012 myPFVariables.
mva = pfPhotonMva_[iphot];
1013 myPhoton.setPflowIDVariables(myPFVariables);
1018 myPhoton.setCorrectedEnergy(
1075 photons.push_back(myPhoton);
1083 unsigned refindex = pfbe.
index();
1088 for (; myDaughterCandidate != itend; ++myDaughterCandidate) {
1096 return *myPFCandidate;
Abstract base class for a PFBlock element (track, cluster...)
const math::XYZPoint & position() const
cluster centroid position
std::vector< reco::PreshowerClusterCollection > preshowerClusters_
void setSuperCluster(const reco::SuperClusterRef &r)
set reference to SuperCluster
void addOneLegConversion(const reco::ConversionRef &r)
add single ConversionRef to the vector of Refs
void MustacheID(const CaloClusterPtrVector &clusters, int &nclusters, float &EoutsideMustache)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void addConversion(const reco::ConversionRef &r)
add single ConversionRef to the vector of Refs
const edm::EventSetup & c
void createBasicClusterPtrs(const edm::OrphanHandle< reco::BasicClusterCollection > &basicClustersHandle)
void addHitAndFraction(DetId id, float fraction)
uint16_t *__restrict__ id
std::string vertexProducer_
std::string PFPhotonCoreCollection_
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
float mva_nothing_gamma() const
mva for gamma detection
std::vector< float > pfPhotonMva_
ROOT::Math::Plane3D::Vector Vector
edm::ESHandle< CaloTopology > theCaloTopo_
std::string PFConversionCollection_
#define DEFINE_FWK_MODULE(type)
virtual const PFClusterRef & clusterRef() const
edm::InputTag hcalTowers_
std::vector< reco::ConversionRefVector > pfConv_
edm::InputTag endcapEcalHits_
double pflowPhiWidth() const
std::vector< int > conv2legPFCandidateIndex_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::vector< edm::Handle< edm::ValueMap< double > > > IsolationValueMaps
std::vector< Vertex > VertexCollection
collection of Vertex objects
std::string PFPhotonCollection_
void setSeed(const CaloClusterPtr &r)
list of used xtals by DetId // now inherited by CaloCluster
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
void createSuperClusters(const reco::PFCandidateCollection &, reco::SuperClusterCollection &superClusters) const
reco::PFCandidatePhotonExtraRef photonExtraRef() const
return a reference to the photon extra
Log< level::Error, false > LogError
void setPhiWidth(double pw)
double pflowEtaWidth() const
void createBasicCluster(const reco::PFBlockElement &, reco::BasicClusterCollection &basicClusters, std::vector< const reco::PFCluster * > &, const reco::PFCandidate &coCandidate) const
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
std::vector< edm::InputTag > inputTagIsoVals_
std::vector< reco::PhotonRef > egPhotonRef_
AlgoId algo() const
algorithm identifier
std::vector< reco::SuperClusterRef > egSCRef_
bool getData(T &iHolder) const
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
void setEtaWidth(double ew)
std::vector< reco::SuperClusterCollection > superClusters_
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
void setParentSuperCluster(const reco::SuperClusterRef &r)
set reference to PFlow SuperCluster
std::string PFBasicClusterCollection_
const CaloID & caloID() const
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
void setStandardPhoton(const bool prov)
const EcalMustacheSCParameters * mustacheSCParams_
~PFPhotonTranslator() override
PFPhotonTranslator(const edm::ParameterSet &)
const_iterator end() const
last daughter const_iterator
std::string PFSuperClusterCollection_
std::vector< PreshowerCluster > PreshowerClusterCollection
collection of PreshowerCluster objects
edm::ESHandle< CaloGeometry > theCaloGeom_
math::XYZTLorentzVector LorentzVector
void createPhotonCores(const edm::OrphanHandle< reco::SuperClusterCollection > &superClustersHandle, const edm::OrphanHandle< reco::ConversionCollection > &oneLegConversionHandle, reco::PhotonCoreCollection &photonCores)
std::vector< int > conv1legPFCandidateIndex_
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
void createPreshowerCluster(const reco::PFBlockElement &PFBE, reco::PreshowerClusterCollection &preshowerClusters, unsigned plane) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
bool isNull() const
Checks for null.
double energy() const
cluster energy
void produce(edm::Event &, const edm::EventSetup &) override
void createPreshowerClusterPtrs(const edm::OrphanHandle< reco::PreshowerClusterCollection > &preshowerClustersHandle)
bool fetchCandidateCollection(edm::Handle< reco::PFCandidateCollection > &c, const edm::InputTag &tag, const edm::Event &iEvent) const
edm::InputTag barrelEcalHits_
std::string PFPreshowerClusterCollection_
void setPFlowPhoton(const bool prov)
set the provenance
std::vector< int > photPFCandidateIndex_
const reco::PFCandidate & correspondingDaughterCandidate(const reco::PFCandidate &cand, const reco::PFBlockElement &pfbe) const
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
edm::ESGetToken< EcalMustacheSCParameters, EcalMustacheSCParametersRcd > ecalMustacheSCParametersToken_
double rawEnergy() const
raw uncorrected energy (sum of energies of component BasicClusters)
DetId seed() const
return DetId of seed
edm::InputTag inputTagPFCandidates_
T const * product() const
std::vector< std::vector< const reco::PFCluster * > > pfClusters_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< reco::BasicClusterCollection > basicClusters_
std::vector< Photon > PhotonCollection
collectin of Photon objects
void addPreshowerCluster(const CaloClusterPtr &r)
add reference to constituent BasicCluster
T getParameter(std::string const &) const
void createPhotons(reco::VertexCollection &vertexCollection, edm::Handle< reco::PhotonCollection > &egPhotons, const edm::OrphanHandle< reco::PhotonCoreCollection > &photonCoresHandle, const IsolationValueMaps &isolationValues, reco::PhotonCollection &photons)
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
void createOneLegConversions(const edm::OrphanHandle< reco::SuperClusterCollection > &superClustersHandle, reco::ConversionCollection &oneLegConversions)
std::array< float, 7 > hcalRecHitSumEt
std::vector< PhotonCore > PhotonCoreCollection
collectin of PhotonCore objects
std::vector< float > energyRegression_
void addCluster(const CaloClusterPtr &r)
add reference to constituent BasicCluster
std::vector< std::vector< reco::TrackRef > > pfSingleLegConv_
std::vector< reco::CaloClusterPtrVector > preshowerClusterPtr_
Particle reconstructed by the particle flow algorithm.
void setOneLegMVA(const std::vector< float > &mva)
set the MVS output from PF for one leg conversions
const_iterator begin() const
first daughter const_iterator
std::vector< reco::CaloClusterPtrVector > basicClusterPtr_
size_type size() const
Size of the RefVector.
std::vector< reco::CandidatePtr > CandidatePtr_
std::string EGPhotonCollection_
std::vector< float > energyRegressionError_
Log< level::Warning, false > LogWarning
void addElectronPixelSeed(const reco::ElectronSeedRef &r)
set electron pixel seed ref
virtual ParticleType particleId() const
const ElementsInBlocks & elementsInBlocks() const
tuple size
Write out results.
int nClusterOutsideMustache
math::PtEtaPhiELorentzVectorF LorentzVector
std::vector< std::vector< float > > pfSingleLegConvMva_
void setPreshowerEnergy(double preshowerEnergy)
reco::SuperClusterRef superClusterRef() const
return a reference to the corresponding SuperCluster if any