RecoParticleFlow
PFProducer
interface
PFBlockElementSCEqual.h
Go to the documentation of this file.
1
#ifndef RecoParticleFlow_PFProducer_PFBlockElementSCEqual
2
#define RecoParticleFlow_PFProducer_PFBlockElementSCEqual
3
4
#include "
DataFormats/ParticleFlowReco/interface/PFBlockElementSuperCluster.h
"
5
#include "
DataFormats/ParticleFlowReco/interface/PFBlockElement.h
"
6
7
class
PFBlockElementSCEqual
{
8
public
:
9
PFBlockElementSCEqual
(
reco::SuperClusterRef
scRef) :
ref_
(scRef) { ; }
10
inline
bool
operator()
(
const
std::unique_ptr<reco::PFBlockElement>& el) {
11
return
(el->type() ==
reco::PFBlockElement::SC
&&
12
(static_cast<const reco::PFBlockElementSuperCluster*>(el.get()))->superClusterRef() ==
ref_
);
13
}
14
inline
bool
operator()
(
const
reco::PFBlockElement
* el) {
15
return
(el->
type
() ==
reco::PFBlockElement::SC
&&
16
(static_cast<const reco::PFBlockElementSuperCluster*>(el))->superClusterRef() ==
ref_
);
17
}
18
19
private
:
20
reco::SuperClusterRef
ref_
;
21
};
22
23
#endif
PFBlockElementSCEqual::PFBlockElementSCEqual
PFBlockElementSCEqual(reco::SuperClusterRef scRef)
Definition:
PFBlockElementSCEqual.h:9
reco::PFBlockElement::SC
Definition:
PFBlockElement.h:41
edm::Ref< SuperClusterCollection >
PFBlockElementSCEqual
Definition:
PFBlockElementSCEqual.h:7
PFBlockElement.h
PFBlockElementSCEqual::ref_
reco::SuperClusterRef ref_
Definition:
PFBlockElementSCEqual.h:20
PFBlockElementSuperCluster.h
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:26
PFBlockElementSCEqual::operator()
bool operator()(const reco::PFBlockElement *el)
Definition:
PFBlockElementSCEqual.h:14
reco::PFBlockElement::type
Type type() const
Definition:
PFBlockElement.h:69
PFBlockElementSCEqual::operator()
bool operator()(const std::unique_ptr< reco::PFBlockElement > &el)
Definition:
PFBlockElementSCEqual.h:10
Generated for CMSSW Reference Manual by
1.8.16