Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
JPTJet.cc
Go to the documentation of this file.
1 #include "../interface/JPTJet.hh"
2 
3 namespace ic {
4 // Constructors/Destructors
6  : CaloJet::CaloJet(),
7  muon_multiplicity_(0),
8  charged_multiplicity_(0),
9  charged_em_energy_(0.),
10  neutral_em_energy_(0.),
11  charged_had_energy_(0.),
12  neutral_had_energy_(0.),
13  beta_(0.),
14  beta_max_(0.),
15  track_pt_total_(0.) {}
16 
18 
19 void JPTJet::Print() const { Candidate::Print(); }
20 
21 std::vector<std::size_t> JPTJet::constituent_tracks() const {
22  unsigned size = pions_in_vtx_in_calo_.size() + pions_in_vtx_out_calo_.size() +
23  pions_out_vtx_in_calo_.size() + muons_in_vtx_in_calo_.size() +
24  muons_in_vtx_out_calo_.size() +
25  muons_out_vtx_in_calo_.size() + elecs_in_vtx_in_calo_.size() +
26  elecs_in_vtx_out_calo_.size() + elecs_out_vtx_in_calo_.size();
27  std::vector<std::size_t> trks;
28  trks.reserve(size);
29  trks.insert(trks.end(), pions_in_vtx_in_calo_.begin(),
30  pions_in_vtx_in_calo_.end());
31  trks.insert(trks.end(), pions_in_vtx_out_calo_.begin(),
32  pions_in_vtx_out_calo_.end());
33  trks.insert(trks.end(), pions_out_vtx_in_calo_.begin(),
34  pions_out_vtx_in_calo_.end());
35  trks.insert(trks.end(), muons_in_vtx_in_calo_.begin(),
36  muons_in_vtx_in_calo_.end());
37  trks.insert(trks.end(), muons_in_vtx_out_calo_.begin(),
38  muons_in_vtx_out_calo_.end());
39  trks.insert(trks.end(), muons_out_vtx_in_calo_.begin(),
40  muons_out_vtx_in_calo_.end());
41  trks.insert(trks.end(), elecs_in_vtx_in_calo_.begin(),
42  elecs_in_vtx_in_calo_.end());
43  trks.insert(trks.end(), elecs_in_vtx_out_calo_.begin(),
44  elecs_in_vtx_out_calo_.end());
45  trks.insert(trks.end(), elecs_out_vtx_in_calo_.begin(),
46  elecs_out_vtx_in_calo_.end());
47  return trks;
48 }
49 }
virtual void Print() const
Definition: JPTJet.cc:19
Definition: CaloJet.hh:9
JPTJet()
Definition: JPTJet.cc:5
virtual ~JPTJet()
Definition: JPTJet.cc:17
Derived from the ic::Jet class and adding information specific to calorimeter jets.
Definition: CaloJet.hh:15
std::vector< std::size_t > constituent_tracks() const
A vector of ic::Track::id() that refers to the complete set of associated tracks. ...
Definition: JPTJet.cc:21
virtual void Print() const
Definition: Candidate.cc:9