CMS 3D CMS Logo

L1JetParticle.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1Trigger
4 // Class : L1JetParticle
5 //
8 //
9 // Original Author: Werner Sun
10 // Created: Tue Jul 25 17:51:21 EDT 2006
11 //
12 
13 // system include files
14 
15 // user include files
17 
18 using namespace l1extra ;
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32 {
33 }
34 
37  int bx )
38  : LeafCandidate( ( char ) 0, p4 ),
39  ref_( aRef ),
40  bx_( bx )
41 {
42  if( ref_.isNonnull() )
43  {
44  type_ = gctJetCand()->isTau() ? kTau :
45  ( gctJetCand()->isForward() ? kForward : kCentral ) ;
46  }
47 }
48 
51  int bx )
52  : LeafCandidate( ( char ) 0, p4 ),
53  ref_( aRef ),
54  bx_( bx )
55 {
56  if( ref_.isNonnull() )
57  {
58  type_ = gctJetCand()->isTau() ? kTau :
59  ( gctJetCand()->isForward() ? kForward : kCentral ) ;
60  }
61 }
62 
64  JetType type,
65  int bx )
66  : LeafCandidate( ( char ) 0, p4 ),
67  type_( type ),
69  bx_( bx )
70 {
71 }
72 
74  JetType type,
75  int bx )
76  : LeafCandidate( ( char ) 0, p4 ),
77  type_( type ),
79  bx_( bx )
80 {
81 }
82 
83 // L1JetParticle::L1JetParticle(const L1JetParticle& rhs)
84 // {
85 // // do actual copying here;
86 // }
87 
88 // L1JetParticle::~L1JetParticle()
89 // {
90 // }
91 
92 //
93 // assignment operators
94 //
95 // const L1JetParticle& L1JetParticle::operator=(const L1JetParticle& rhs)
96 // {
97 // //An exception safe implementation is
98 // L1JetParticle temp(rhs);
99 // swap(rhs);
100 //
101 // return *this;
102 // }
103 
104 //
105 // member functions
106 //
107 
108 //
109 // const member functions
110 //
111 
112 //
113 // static member functions
114 //
type
Definition: HCALResponse.h:21
bool isTau() const
check if this is a tau
Definition: L1GctJetCand.h:68
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:253
bool isForward() const
check if this is a forward jet
Definition: L1GctJetCand.h:71
edm::Ref< L1GctJetCandCollection > ref_
Definition: L1JetParticle.h:94
std::vector< L1GctJetCand > L1GctJetCandCollection
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
const L1GctJetCand * gctJetCand() const
Definition: L1JetParticle.h:69
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
HLT enums.
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39