CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripElectron.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: EgammaCandidates
4 // Class : SiStripElectron
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Jim Pivarski
10 // Created: Fri May 26 15:48:28 EDT 2006
11 // $Id: SiStripElectron.cc,v 1.3 2008/04/21 14:05:24 llista Exp $
12 //
13 
14 // system include files
15 
16 // user include files
19 
20 using namespace reco;
21 
22 //
23 // constants, enums and typedefs
24 //
25 
26 //
27 // static data member definitions
28 //
29 
30 //
31 // constructors and destructor
32 //
33 
34 // SiStripElectron::SiStripElectron(const SiStripElectron& rhs)
35 // {
36 // // do actual copying here;
37 // }
38 
40 
41 //
42 // assignment operators
43 //
44 // const SiStripElectron& SiStripElectron::operator=(const SiStripElectron& rhs)
45 // {
46 // //An exception safe implementation is
47 // SiStripElectron temp(rhs);
48 // swap(rhs);
49 //
50 // return *this;
51 // }
52 
54  return new SiStripElectron( * this );
55 }
56 
57 //
58 // member functions
59 //
60 
62  return superCluster_;
63 }
64 
65 bool SiStripElectron::overlap( const Candidate & c ) const {
66  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
67  return ( o != 0 && !
68  ( checkOverlap( track(), o->track() ) ||
70  );
71  return false;
72 }
73 
75  return true;
76 }
77 
78 
79 //
80 // const member functions
81 //
82 
83 //
84 // static member functions
85 //
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
SiStripElectron()
default constructor
virtual reco::TrackRef track() const
reference to a Track
reco::SuperClusterRef superCluster_
reference to a SuperCluster
virtual bool overlap(const Candidate &) const
check overlap with another candidate
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster
virtual ~SiStripElectron()
destructor
bool isElectron() const
virtual SiStripElectron * clone() const
returns a clone of the candidate
virtual reco::SuperClusterRef superCluster() const
reference to a SuperCluster