CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: L1JetParticle.cc,v 1.6 2007/10/16 05:01:52 wsun Exp $
12 //
13 
14 // system include files
15 
16 // user include files
18 
19 using namespace l1extra ;
20 
21 //
22 // constants, enums and typedefs
23 //
24 
25 //
26 // static data member definitions
27 //
28 
29 //
30 // constructors and destructor
31 //
33 {
34 }
35 
38  int bx )
39  : LeafCandidate( ( char ) 0, p4 ),
40  ref_( aRef ),
41  bx_( bx )
42 {
43  if( ref_.isNonnull() )
44  {
45  type_ = gctJetCand()->isTau() ? kTau :
46  ( gctJetCand()->isForward() ? kForward : kCentral ) ;
47  }
48 }
49 
52  int bx )
53  : LeafCandidate( ( char ) 0, p4 ),
54  ref_( aRef ),
55  bx_( bx )
56 {
57  if( ref_.isNonnull() )
58  {
59  type_ = gctJetCand()->isTau() ? kTau :
60  ( gctJetCand()->isForward() ? kForward : kCentral ) ;
61  }
62 }
63 
65  JetType type,
66  int bx )
67  : LeafCandidate( ( char ) 0, p4 ),
68  type_( type ),
69  ref_( edm::Ref< L1GctJetCandCollection >() ),
70  bx_( bx )
71 {
72 }
73 
75  JetType type,
76  int bx )
77  : LeafCandidate( ( char ) 0, p4 ),
78  type_( type ),
79  ref_( edm::Ref< L1GctJetCandCollection >() ),
80  bx_( bx )
81 {
82 }
83 
84 // L1JetParticle::L1JetParticle(const L1JetParticle& rhs)
85 // {
86 // // do actual copying here;
87 // }
88 
89 // L1JetParticle::~L1JetParticle()
90 // {
91 // }
92 
93 //
94 // assignment operators
95 //
96 // const L1JetParticle& L1JetParticle::operator=(const L1JetParticle& rhs)
97 // {
98 // //An exception safe implementation is
99 // L1JetParticle temp(rhs);
100 // swap(rhs);
101 //
102 // return *this;
103 // }
104 
105 //
106 // member functions
107 //
108 
109 //
110 // const member functions
111 //
112 
113 //
114 // static member functions
115 //
type
Definition: HCALResponse.h:22
bool isTau() const
check if this is a tau
Definition: L1GctJetCand.h:68
bool isForward() const
check if this is a forward jet
Definition: L1GctJetCand.h:71
edm::Ref< L1GctJetCandCollection > ref_
Definition: L1JetParticle.h:95
std::vector< L1GctJetCand > L1GctJetCandCollection
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:249
double p4[4]
Definition: TauolaWrapper.h:92
const L1GctJetCand * gctJetCand() const
Definition: L1JetParticle.h:70
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:39
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:41