CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
28  public:
29 
31 
32  PileupVertexContent( const std::vector<float>& pT_hat,
33  const std::vector<float>& z_Vtx,
34  const std::vector<float>& t_Vtx):
35  pT_hats_(pT_hat),
36  z_Vtxs_(z_Vtx),
37  t_Vtxs_(t_Vtx)
38  { };
39 
40 
41 
42 
44  pT_hats_.clear();
45  z_Vtxs_.clear();
46  t_Vtxs_.clear();
47  };
48 
49  const std::vector<float>& getMix_pT_hats() const { return pT_hats_; }
50  const std::vector<float>& getMix_z_Vtxs() const { return z_Vtxs_; }
51  const std::vector<float>& getMix_t_Vtxs() const { return t_Vtxs_; }
52 
53  private:
54 
55  // for "standard" pileup: we have MC Truth information for these
56 
57 
58  std::vector<float> pT_hats_;
59  std::vector<float> z_Vtxs_;
60  std::vector<float> t_Vtxs_; // may be empty if time information is not available
61 
62 };
63 
64 #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)