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.),
33 
34  PFBlockElement* clone() const { return new PFBlockElementSuperCluster(*this); }
35 
38 
40  PhotonRef photonRef() const {return photonRef_;}
41 
42  void Dump(std::ostream& out = std::cout,
43  const char* tab = " " ) const;
44 
46  void setTrackIso(float val) {trackIso_=val;}
47 
49  void setEcalIso(float val) {ecalIso_=val;}
50 
52  void setHcalIso(float val) {hcalIso_=val;}
53 
55  void setHoE(float val) {HoE_=val;}
56 
58  void setFromGsfElectron(bool val) {fromGsfElectron_=val;}
59 
61  void setFromPhoton(bool val) {fromPhoton_=val;}
62 
63  void setFromPFSuperCluster(bool val) { fromPFSuperCluster_ = val; }
64 
66  void setPhotonRef(const PhotonRef & ref) {photonRef_ = ref ;}
67 
69  float trackIso() const {return trackIso_;}
70 
72  float ecalIso() const {return ecalIso_;}
73 
75  float hcalIso() const {return hcalIso_;}
76 
78  float hoverE() const {return HoE_;}
79 
81  bool fromGsfElectron() const {return fromGsfElectron_;}
82 
84  bool fromPhoton() const {return fromPhoton_;}
85 
86  //SuperCluster comes from a PFSuperCluster (and can therefore be matched
87  // by ref back to the initial PFClusters)
88  bool fromPFSuperCluster() const { return fromPFSuperCluster_; }
89 
90  private:
94 
95  float trackIso_;
96  float ecalIso_;
97  float hcalIso_;
98  float HoE_;
99 
103  };
104 }
105 
106 #endif
107 
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
tuple tab
Definition: accesses.py:4
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
volatile std::atomic< bool > shutdown_flag false
void setEcalIso(float val)
set the ecal Iso