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>
25 
27 public:
29 
30  PileupVertexContent(const std::vector<float>& pT_hat,
31  const std::vector<float>& z_Vtx,
32  const std::vector<float>& t_Vtx)
33  : pT_hats_(pT_hat), z_Vtxs_(z_Vtx), t_Vtxs_(t_Vtx){};
34 
36  pT_hats_.clear();
37  z_Vtxs_.clear();
38  t_Vtxs_.clear();
39  };
40 
41  const std::vector<float>& getMix_pT_hats() const { return pT_hats_; }
42  const std::vector<float>& getMix_z_Vtxs() const { return z_Vtxs_; }
43  const std::vector<float>& getMix_t_Vtxs() const { return t_Vtxs_; }
44 
45 private:
46  // for "standard" pileup: we have MC Truth information for these
47 
48  std::vector<float> pT_hats_;
49  std::vector<float> z_Vtxs_;
50  std::vector<float> t_Vtxs_; // may be empty if time information is not available
51 };
52 
53 #endif
const std::vector< float > & getMix_pT_hats() const
std::vector< float > pT_hats_
std::vector< float > t_Vtxs_
std::vector< float > z_Vtxs_
const std::vector< float > & getMix_z_Vtxs() const
const std::vector< float > & getMix_t_Vtxs() const
PileupVertexContent(const std::vector< float > &pT_hat, const std::vector< float > &z_Vtx, const std::vector< float > &t_Vtx)