CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
23  :
25  superClusterRef_( ref ),
26  trackIso_(0.),
27  ecalIso_(0.),
28  hcalIso_(0.),
29  HoE_(0.),
32 
33  PFBlockElement* clone() const { return new PFBlockElementSuperCluster(*this); }
34 
37 
39  PhotonRef photonRef() const {return photonRef_;}
40 
41  void Dump(std::ostream& out = std::cout,
42  const char* tab = " " ) const;
43 
45  void setTrackIso(float val) {trackIso_=val;}
46 
48  void setEcalIso(float val) {ecalIso_=val;}
49 
51  void setHcalIso(float val) {hcalIso_=val;}
52 
54  void setHoE(float val) {HoE_=val;}
55 
57  void setFromGsfElectron(bool val) {fromGsfElectron_=val;}
58 
60  void setFromPhoton(bool val) {fromPhoton_=val;}
61 
63  void setPhotonRef(const PhotonRef & ref) {photonRef_ = ref ;}
64 
66  float trackIso() const {return trackIso_;}
67 
69  float ecalIso() const {return ecalIso_;}
70 
72  float hcalIso() const {return hcalIso_;}
73 
75  float hoverE() const {return HoE_;}
76 
78  bool fromGsfElectron() const {return fromGsfElectron_;}
79 
81  bool fromPhoton() const {return fromPhoton_;}
82 
83  private:
87 
88  float trackIso_;
89  float ecalIso_;
90  float hcalIso_;
91  float HoE_;
92 
95  };
96 }
97 
98 #endif
99 
Abstract base class for a PFBlock element (track, cluster...)
void setFromGsfElectron(bool val)
set provenance
void setFromPhoton(bool val)
set provenance
void setHcalIso(float val)
set the had Iso
PFBlockElementSuperCluster(const SuperClusterRef &ref)
constructor. type must be equal to PS1, PS2, ECAL, HCAL.
SuperClusterRef superClusterRef_
reference to the corresponding cluster
void setTrackIso(float val)
set the track Iso
void setPhotonRef(const PhotonRef &ref)
set photonRef
PFBlockElement * clone() const
necessary to have the edm::OwnVector&lt;PFBlockElement&gt; working
tuple out
Definition: dbtoconf.py:99
void Dump(std::ostream &out=std::cout, const char *tab=" ") const
print the object inside the element
tuple cout
Definition: gather_cfg.py:121
void setEcalIso(float val)
set the ecal Iso