CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PileupSummaryInfo.h
Go to the documentation of this file.
1 #ifndef PileupSummaryInfo_h
2 #define PileupSummaryInfo_h
3 // -*- C++ -*-
4 //
5 // Package: PileupSummaryInfo
6 // Class : PileupSummaryInfo
7 //
13 //
14 // Original Author: Mike Hildreth, Notre Dame
15 // Created: July 1, 2010
16 //
17 
19 #include <vector>
20 #include <string>
21 
22 
23 
25 
26  public:
27 
29 
30  PileupSummaryInfo( const int num_PU_vertices,
31  std::vector<float>& zpositions,
32  std::vector<float>& sumpT_lowpT,
33  std::vector<float>& sumpT_highpT,
34  std::vector<int>& ntrks_lowpT,
35  std::vector<int>& ntrks_highpT );
36 
37  PileupSummaryInfo( const int num_PU_vertices,
38  std::vector<float>& zpositions,
39  std::vector<float>& sumpT_lowpT,
40  std::vector<float>& sumpT_highpT,
41  std::vector<int>& ntrks_lowpT,
42  std::vector<int>& ntrks_highpT,
43  int bunchCrossing);
44 
45  PileupSummaryInfo( const int num_PU_vertices,
46  std::vector<float>& zpositions,
47  std::vector<float>& sumpT_lowpT,
48  std::vector<float>& sumpT_highpT,
49  std::vector<int>& ntrks_lowpT,
50  std::vector<int>& ntrks_highpT,
51  std::vector<edm::EventID>& eventInfo,
52  std::vector<float>& pT_hats,
53  int bunchCrossing,
54  float TrueNumInteractions,
55  int bunchSpacing);
56 
57  PileupSummaryInfo( const int num_PU_vertices,
58  std::vector<float>& instLumi,
59  std::vector<edm::EventID>& eventInfo );
60 
61 
63 
64  const int getPU_NumInteractions() const { return num_PU_vertices_; }
65  const std::vector<float>& getPU_zpositions() const { return zpositions_; }
66  const std::vector<float>& getPU_sumpT_lowpT() const { return sumpT_lowpT_; }
67  const std::vector<float>& getPU_sumpT_highpT() const { return sumpT_highpT_; }
68  const std::vector<int>& getPU_ntrks_lowpT() const { return ntrks_lowpT_; }
69  const std::vector<int>& getPU_ntrks_highpT() const { return ntrks_highpT_; }
70  const std::vector<float>& getPU_instLumi() const { return instLumi_; }
71  const std::vector<edm::EventID>& getPU_EventID() const { return eventInfo_; }
72  const std::vector<float>& getPU_pT_hats() const { return pT_hats_; }
73  const int getBunchCrossing() const { return bunchCrossing_;}
74  const int getBunchSpacing() const { return bunchSpacing_;}
75  const float getTrueNumInteractions() const { return TrueNumInteractions_;}
76 
77  private:
78 
79  // for "standard" pileup: we have MC Truth information for these
80 
82  std::vector<float> zpositions_;
83  std::vector<float> sumpT_lowpT_;
84  std::vector<float> sumpT_highpT_;
85  std::vector<int> ntrks_lowpT_;
86  std::vector<int> ntrks_highpT_;
87  std::vector<edm::EventID> eventInfo_;
88  std::vector<float> pT_hats_;
92 
93 
94  // for DataMixer pileup, we only have raw information:
95 
96  std::vector<float> instLumi_;
97 
98 
99 };
100 
101 #endif
std::vector< int > ntrks_lowpT_
std::vector< edm::EventID > eventInfo_
std::vector< float > pT_hats_
std::vector< float > sumpT_highpT_
const int getBunchCrossing() const
const std::vector< edm::EventID > & getPU_EventID() const
std::vector< float > sumpT_lowpT_
const std::vector< float > & getPU_instLumi() const
const std::vector< float > & getPU_zpositions() const
std::vector< float > zpositions_
const float getTrueNumInteractions() const
const std::vector< float > & getPU_sumpT_highpT() const
const int getBunchSpacing() const
const std::vector< float > & getPU_pT_hats() const
std::vector< int > ntrks_highpT_
std::vector< float > instLumi_
const int getPU_NumInteractions() const
const std::vector< int > & getPU_ntrks_lowpT() const
const std::vector< float > & getPU_sumpT_lowpT() const
const std::vector< int > & getPU_ntrks_highpT() const