CMS 3D CMS Logo

PFBlockElementSuperCluster.h
Go to the documentation of this file.
1 #ifndef __PFBlockElementSuperCluster__
2 #define __PFBlockElementSuperCluster__
3 
4 #include <iostream>
5 
9 
10 namespace reco {
11 
16  public:
18 
24  superClusterRef_(ref),
25  trackIso_(0.),
26  ecalIso_(0.),
27  hcalIso_(0.),
28  HoE_(0.),
32 
33  PFBlockElement* clone() const override { return new PFBlockElementSuperCluster(*this); }
34 
37 
39  const PhotonRef& photonRef() const { return photonRef_; }
40 
41  void Dump(std::ostream& out = std::cout, const char* tab = " ") const override;
42 
44  void setTrackIso(float val) { trackIso_ = val; }
45 
47  void setEcalIso(float val) { ecalIso_ = val; }
48 
50  void setHcalIso(float val) { hcalIso_ = val; }
51 
53  void setHoE(float val) { HoE_ = val; }
54 
57 
59  void setFromPhoton(bool val) { fromPhoton_ = val; }
60 
62 
64  void setPhotonRef(const PhotonRef& ref) { photonRef_ = ref; }
65 
67  float trackIso() const { return trackIso_; }
68 
70  float ecalIso() const { return ecalIso_; }
71 
73  float hcalIso() const { return hcalIso_; }
74 
76  float hoverE() const { return HoE_; }
77 
79  bool fromGsfElectron() const { return fromGsfElectron_; }
80 
82  bool fromPhoton() const { return fromPhoton_; }
83 
84  //SuperCluster comes from a PFSuperCluster (and can therefore be matched
85  // by ref back to the initial PFClusters)
86  bool fromPFSuperCluster() const { return fromPFSuperCluster_; }
87 
88  private:
92 
93  float trackIso_;
94  float ecalIso_;
95  float hcalIso_;
96  float HoE_;
97 
101  };
102 } // namespace reco
103 
104 #endif
reco::PFBlockElementSuperCluster::setTrackIso
void setTrackIso(float val)
set the track Iso
Definition: PFBlockElementSuperCluster.h:44
funct::false
false
Definition: Factorize.h:29
reco::PFBlockElementSuperCluster::superClusterRef_
SuperClusterRef superClusterRef_
reference to the corresponding cluster
Definition: PFBlockElementSuperCluster.h:90
reco::PFBlockElementSuperCluster::hcalIso
float hcalIso() const
Definition: PFBlockElementSuperCluster.h:73
reco::PFBlockElementSuperCluster
Cluster Element.
Definition: PFBlockElementSuperCluster.h:15
reco::PFBlockElementSuperCluster::setHoE
void setHoE(float val)
set H/E
Definition: PFBlockElementSuperCluster.h:53
gather_cfg.cout
cout
Definition: gather_cfg.py:144
reco::PFBlockElement::SC
Definition: PFBlockElement.h:41
PhotonFwd.h
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::PFBlockElementSuperCluster::Dump
void Dump(std::ostream &out=std::cout, const char *tab=" ") const override
print the object inside the element
Definition: PFBlockElementSuperCluster.cc:11
edm::Ref< SuperClusterCollection >
reco::PFBlockElementSuperCluster::fromPFSuperCluster_
bool fromPFSuperCluster_
Definition: PFBlockElementSuperCluster.h:100
reco::PFBlockElementSuperCluster::PFBlockElementSuperCluster
PFBlockElementSuperCluster()
Definition: PFBlockElementSuperCluster.h:17
PFBlockElement.h
reco::PFBlockElementSuperCluster::setEcalIso
void setEcalIso(float val)
set the ecal Iso
Definition: PFBlockElementSuperCluster.h:47
reco::PFBlockElementSuperCluster::fromGsfElectron_
bool fromGsfElectron_
Definition: PFBlockElementSuperCluster.h:98
reco::PFBlockElementSuperCluster::ecalIso
float ecalIso() const
Definition: PFBlockElementSuperCluster.h:70
reco::PFBlockElementSuperCluster::setFromPFSuperCluster
void setFromPFSuperCluster(bool val)
Definition: PFBlockElementSuperCluster.h:61
reco::PFBlockElementSuperCluster::clone
PFBlockElement * clone() const override
necessary to have the edm::OwnVector<PFBlockElement> working
Definition: PFBlockElementSuperCluster.h:33
reco::PFBlockElementSuperCluster::setFromGsfElectron
void setFromGsfElectron(bool val)
set provenance
Definition: PFBlockElementSuperCluster.h:56
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition: PFBlockElement.h:26
reco::PFBlockElementSuperCluster::superClusterRef
const SuperClusterRef & superClusterRef() const
Definition: PFBlockElementSuperCluster.h:36
reco::PFBlockElementSuperCluster::fromPhoton_
bool fromPhoton_
Definition: PFBlockElementSuperCluster.h:99
reco::PFBlockElementSuperCluster::ecalIso_
float ecalIso_
Definition: PFBlockElementSuperCluster.h:94
reco::PFBlockElementSuperCluster::trackIso
float trackIso() const
Definition: PFBlockElementSuperCluster.h:67
reco::PFBlockElementSuperCluster::hoverE
float hoverE() const
Definition: PFBlockElementSuperCluster.h:76
heppy_batch.val
val
Definition: heppy_batch.py:351
SuperClusterFwd.h
reco::PFBlockElementSuperCluster::trackIso_
float trackIso_
Definition: PFBlockElementSuperCluster.h:93
reco::PFBlockElementSuperCluster::setHcalIso
void setHcalIso(float val)
set the had Iso
Definition: PFBlockElementSuperCluster.h:50
reco::PFBlockElementSuperCluster::PFBlockElementSuperCluster
PFBlockElementSuperCluster(const SuperClusterRef &ref)
constructor. type must be equal to PS1, PS2, ECAL, HCAL.
Definition: PFBlockElementSuperCluster.h:22
reco::PFBlockElementSuperCluster::photonRef_
PhotonRef photonRef_
Definition: PFBlockElementSuperCluster.h:91
reco::PFBlockElementSuperCluster::setPhotonRef
void setPhotonRef(const PhotonRef &ref)
set photonRef
Definition: PFBlockElementSuperCluster.h:64
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
reco::PFBlockElementSuperCluster::fromGsfElectron
bool fromGsfElectron() const
Definition: PFBlockElementSuperCluster.h:79
reco::PFBlockElementSuperCluster::HoE_
float HoE_
Definition: PFBlockElementSuperCluster.h:96
reco::PFBlockElementSuperCluster::setFromPhoton
void setFromPhoton(bool val)
set provenance
Definition: PFBlockElementSuperCluster.h:59
reco::PFBlockElementSuperCluster::photonRef
const PhotonRef & photonRef() const
Definition: PFBlockElementSuperCluster.h:39
reco::PFBlockElementSuperCluster::fromPhoton
bool fromPhoton() const
Definition: PFBlockElementSuperCluster.h:82
reco::PFBlockElementSuperCluster::fromPFSuperCluster
bool fromPFSuperCluster() const
Definition: PFBlockElementSuperCluster.h:86
reco::PFBlockElementSuperCluster::hcalIso_
float hcalIso_
Definition: PFBlockElementSuperCluster.h:95