CMS 3D CMS Logo

FWPFCandidateWithHitsProxyBuilder.h
Go to the documentation of this file.
2 //#include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
5 namespace reco {
6  class PFCandidate;
7  class PFRecHit;
8 } // namespace reco
9 class CaloRecHit;
10 
12 public:
15 
16  void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
17 
18  bool havePerViewProduct(FWViewType::EType) const override { return true; }
19 
20  void scaleProduct(TEveElementList* parent, FWViewType::EType type, const FWViewContext* vc) override;
21 
23 
24 private:
27 
28  void addHitsForCandidate(const reco::PFCandidate& c, TEveElement* holder, const FWViewContext* vc);
30  const reco::PFRecHit* getHitForDetId(unsigned detId);
32  const float* corners, float scale, bool plotEt, std::vector<float>& scaledCorners, const reco::PFRecHit*);
33 
35 };
PFRecHitFwd.h
FWPFCandidateWithHitsProxyBuilder::initPFRecHitsCollections
void initPFRecHitsCollections()
Definition: FWPFCandidateWithHitsProxyBuilder.cc:109
FWViewType::EType
EType
Definition: FWViewType.h:31
FWProxyBuilderBase.h
FWPFCandidateWithHitsProxyBuilder::viewContextBoxScale
void viewContextBoxScale(const float *corners, float scale, bool plotEt, std::vector< float > &scaledCorners, const reco::PFRecHit *)
Definition: FWPFCandidateWithHitsProxyBuilder.cc:131
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition: register_dataproxybuilder_macro.h:28
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
CaloRecHit
Definition: CaloRecHit.h:23
PFRecHit.h
pfElectronTranslator_cfi.PFCandidate
PFCandidate
Definition: pfElectronTranslator_cfi.py:6
reco::PFRecHitCollection
std::vector< PFRecHit > PFRecHitCollection
collection of PFRecHit objects
Definition: PFRecHitFwd.h:9
FWPFCandidateWithHitsProxyBuilder
Definition: FWPFCandidateWithHitsProxyBuilder.h:11
FWPFCandidateWithHitsProxyBuilder::~FWPFCandidateWithHitsProxyBuilder
~FWPFCandidateWithHitsProxyBuilder() override
Definition: FWPFCandidateWithHitsProxyBuilder.h:14
FWPFCandidateWithHitsProxyBuilder::m_collectionHCAL
const reco::PFRecHitCollection * m_collectionHCAL
Definition: FWPFCandidateWithHitsProxyBuilder.h:34
FWPFCandidateWithHitsProxyBuilder::operator=
const FWPFCandidateWithHitsProxyBuilder & operator=(const FWPFCandidateWithHitsProxyBuilder &)=delete
Scenarios_cff.scale
scale
Definition: Scenarios_cff.py:2186
FWPFCandidateWithHitsProxyBuilder::FWPFCandidateWithHitsProxyBuilder
FWPFCandidateWithHitsProxyBuilder()
Definition: FWPFCandidateWithHitsProxyBuilder.h:13
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
FWProxyBuilderBase::build
void build()
Definition: FWProxyBuilderBase.cc:110
FWViewContext
Definition: FWViewContext.h:32
FWEventItem
Definition: FWEventItem.h:56
type
type
Definition: HCALResponse.h:21
FWProxyBuilderBase
Definition: FWProxyBuilderBase.h:46
FWPFCandidateWithHitsProxyBuilder::scaleProduct
void scaleProduct(TEveElementList *parent, FWViewType::EType type, const FWViewContext *vc) override
Definition: FWPFCandidateWithHitsProxyBuilder.cc:165
FWPFCandidateWithHitsProxyBuilder::havePerViewProduct
bool havePerViewProduct(FWViewType::EType) const override
Definition: FWPFCandidateWithHitsProxyBuilder.h:18
reco::PFRecHit
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
Definition: PFRecHit.h:31
reco::PFCandidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:40
FWPFCandidateWithHitsProxyBuilder::getHitForDetId
const reco::PFRecHit * getHitForDetId(unsigned detId)
Definition: FWPFCandidateWithHitsProxyBuilder.cc:155
class-composition.parent
parent
Definition: class-composition.py:88
FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate
void addHitsForCandidate(const reco::PFCandidate &c, TEveElement *holder, const FWViewContext *vc)
Definition: FWPFCandidateWithHitsProxyBuilder.cc:217