CMS 3D CMS Logo

PileupVertexContent.h
Go to the documentation of this file.
1 #ifndef PileupVertexContent_h
2 #define PileupVertexContent_h
3 // -*- C++ -*-
4 //
5 // Package: PileupVertexContent
6 // Class : PileupVertexContent
7 //
13 //
14 // Original Author: Mike Hildreth, Notre Dame
15 // Created: April 18, 2011
16 //
17 //
18 
19 #include <vector>
20 #include <string>
21 #include <iostream>
23 
25 public:
27 
28  PileupVertexContent(const std::vector<float>& pT_hat,
29  const std::vector<float>& z_Vtx,
30  const std::vector<float>& t_Vtx)
31  : pT_hats_(pT_hat), z_Vtxs_(z_Vtx), t_Vtxs_(t_Vtx){};
32 
34  pT_hats_.clear();
35  z_Vtxs_.clear();
36  t_Vtxs_.clear();
37  };
38 
39  const std::vector<float>& getMix_pT_hats() const { return pT_hats_; }
40  const std::vector<float>& getMix_z_Vtxs() const { return z_Vtxs_; }
41  const std::vector<float>& getMix_t_Vtxs() const { return t_Vtxs_; }
42 
43 private:
44  // for "standard" pileup: we have MC Truth information for these
45 
46  std::vector<float> pT_hats_;
47  std::vector<float> z_Vtxs_;
48  std::vector<float> t_Vtxs_; // may be empty if time information is not available
49 };
50 
51 #endif
std::vector< float > pT_hats_
std::vector< float > t_Vtxs_
const std::vector< float > & getMix_pT_hats() const
const std::vector< float > & getMix_t_Vtxs() const
const std::vector< float > & getMix_z_Vtxs() const
std::vector< float > z_Vtxs_
PileupVertexContent(const std::vector< float > &pT_hat, const std::vector< float > &z_Vtx, const std::vector< float > &t_Vtx)