CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PileupSummaryInfo Class Reference

#include <SimDataFormats/PileupSummaryInfo/interface/PileupSummaryInfo.h>

Public Member Functions

const int getBunchCrossing () const
 
const std::vector< edm::EventID > & getPU_EventID () const
 
const std::vector< float > & getPU_instLumi () const
 
const std::vector< int > & getPU_ntrks_highpT () const
 
const std::vector< int > & getPU_ntrks_lowpT () const
 
const int getPU_NumInteractions () const
 
const std::vector< float > & getPU_sumpT_highpT () const
 
const std::vector< float > & getPU_sumpT_lowpT () const
 
const std::vector< float > & getPU_zpositions () const
 
const float getTrueNumInteractions () const
 
 PileupSummaryInfo ()
 
 PileupSummaryInfo (const int num_PU_vertices, std::vector< float > &zpositions, std::vector< float > &sumpT_lowpT, std::vector< float > &sumpT_highpT, std::vector< int > &ntrks_lowpT, std::vector< int > &ntrks_highpT)
 
 PileupSummaryInfo (const int num_PU_vertices, std::vector< float > &zpositions, std::vector< float > &sumpT_lowpT, std::vector< float > &sumpT_highpT, std::vector< int > &ntrks_lowpT, std::vector< int > &ntrks_highpT, int bunchCrossing)
 
 PileupSummaryInfo (const int num_PU_vertices, std::vector< float > &zpositions, std::vector< float > &sumpT_lowpT, std::vector< float > &sumpT_highpT, std::vector< int > &ntrks_lowpT, std::vector< int > &ntrks_highpT, int bunchCrossing, float TrueNumInteractions)
 
 PileupSummaryInfo (const int num_PU_vertices, std::vector< float > &instLumi, std::vector< edm::EventID > &eventInfo)
 
 ~PileupSummaryInfo ()
 

Private Attributes

int bunchCrossing_
 
std::vector< edm::EventIDeventInfo_
 
std::vector< float > instLumi_
 
std::vector< int > ntrks_highpT_
 
std::vector< int > ntrks_lowpT_
 
int num_PU_vertices_
 
std::vector< float > sumpT_highpT_
 
std::vector< float > sumpT_lowpT_
 
float TrueNumInteractions_
 
std::vector< float > zpositions_
 

Detailed Description

Description: contains information related to the details of the pileup simulation for a given event Usage: purely descriptive

Definition at line 25 of file PileupSummaryInfo.h.

Constructor & Destructor Documentation

PileupSummaryInfo::PileupSummaryInfo ( )
inline

Definition at line 29 of file PileupSummaryInfo.h.

29 {};
PileupSummaryInfo::PileupSummaryInfo ( const int  num_PU_vertices,
std::vector< float > &  zpositions,
std::vector< float > &  sumpT_lowpT,
std::vector< float > &  sumpT_highpT,
std::vector< int > &  ntrks_lowpT,
std::vector< int > &  ntrks_highpT 
)

Definition at line 17 of file PileupSummaryInfo.cc.

References eventInfo_, instLumi_, ntrks_highpT_, ntrks_lowpT_, num_PU_vertices_, sumpT_highpT_, sumpT_lowpT_, and zpositions_.

23 {
24 
25  num_PU_vertices_ = num_PU_vertices;
26  zpositions_.clear();
27  sumpT_lowpT_.clear();
28  sumpT_highpT_.clear();
29  ntrks_lowpT_.clear();
30  ntrks_highpT_.clear();
31  instLumi_.clear();
32  eventInfo_.clear();
33 
34  int NLoop = zpositions.size();
35 
36  for( int ivtx = 0; ivtx<NLoop ; ++ivtx) {
37  zpositions_.push_back(zpositions[ivtx]);
38  sumpT_lowpT_.push_back(sumpT_lowpT[ivtx]);
39  sumpT_highpT_.push_back(sumpT_highpT[ivtx]);
40  ntrks_lowpT_.push_back(ntrks_lowpT[ivtx]);
41  ntrks_highpT_.push_back(ntrks_highpT[ivtx]);
42  }
43 
44 }
std::vector< int > ntrks_lowpT_
std::vector< edm::EventID > eventInfo_
std::vector< float > sumpT_highpT_
std::vector< float > sumpT_lowpT_
std::vector< float > zpositions_
std::vector< int > ntrks_highpT_
std::vector< float > instLumi_
PileupSummaryInfo::PileupSummaryInfo ( const int  num_PU_vertices,
std::vector< float > &  zpositions,
std::vector< float > &  sumpT_lowpT,
std::vector< float > &  sumpT_highpT,
std::vector< int > &  ntrks_lowpT,
std::vector< int > &  ntrks_highpT,
int  bunchCrossing 
)

Definition at line 46 of file PileupSummaryInfo.cc.

References bunchCrossing_, eventInfo_, instLumi_, ntrks_highpT_, ntrks_lowpT_, num_PU_vertices_, sumpT_highpT_, sumpT_lowpT_, and zpositions_.

53 {
54 
55  num_PU_vertices_ = num_PU_vertices;
56  zpositions_.clear();
57  sumpT_lowpT_.clear();
58  sumpT_highpT_.clear();
59  ntrks_lowpT_.clear();
60  ntrks_highpT_.clear();
61  instLumi_.clear();
62  eventInfo_.clear();
63  bunchCrossing_ = bunchCrossing;
64 
65  int NLoop = zpositions.size();
66 
67  for( int ivtx = 0; ivtx<NLoop ; ++ivtx) {
68  zpositions_.push_back(zpositions[ivtx]);
69  sumpT_lowpT_.push_back(sumpT_lowpT[ivtx]);
70  sumpT_highpT_.push_back(sumpT_highpT[ivtx]);
71  ntrks_lowpT_.push_back(ntrks_lowpT[ivtx]);
72  ntrks_highpT_.push_back(ntrks_highpT[ivtx]);
73  }
74 
75 }
std::vector< int > ntrks_lowpT_
std::vector< edm::EventID > eventInfo_
std::vector< float > sumpT_highpT_
std::vector< float > sumpT_lowpT_
std::vector< float > zpositions_
std::vector< int > ntrks_highpT_
std::vector< float > instLumi_
PileupSummaryInfo::PileupSummaryInfo ( const int  num_PU_vertices,
std::vector< float > &  zpositions,
std::vector< float > &  sumpT_lowpT,
std::vector< float > &  sumpT_highpT,
std::vector< int > &  ntrks_lowpT,
std::vector< int > &  ntrks_highpT,
int  bunchCrossing,
float  TrueNumInteractions 
)

Definition at line 78 of file PileupSummaryInfo.cc.

References bunchCrossing_, eventInfo_, instLumi_, ntrks_highpT_, ntrks_lowpT_, num_PU_vertices_, sumpT_highpT_, sumpT_lowpT_, TrueNumInteractions_, and zpositions_.

86 {
87 
88  num_PU_vertices_ = num_PU_vertices;
89  zpositions_.clear();
90  sumpT_lowpT_.clear();
91  sumpT_highpT_.clear();
92  ntrks_lowpT_.clear();
93  ntrks_highpT_.clear();
94  instLumi_.clear();
95  eventInfo_.clear();
96  bunchCrossing_ = bunchCrossing;
97  TrueNumInteractions_ = TrueNumInteractions;
98 
99  int NLoop = zpositions.size();
100 
101  for( int ivtx = 0; ivtx<NLoop ; ++ivtx) {
102  zpositions_.push_back(zpositions[ivtx]);
103  sumpT_lowpT_.push_back(sumpT_lowpT[ivtx]);
104  sumpT_highpT_.push_back(sumpT_highpT[ivtx]);
105  ntrks_lowpT_.push_back(ntrks_lowpT[ivtx]);
106  ntrks_highpT_.push_back(ntrks_highpT[ivtx]);
107  }
108 
109 }
std::vector< int > ntrks_lowpT_
std::vector< edm::EventID > eventInfo_
std::vector< float > sumpT_highpT_
std::vector< float > sumpT_lowpT_
std::vector< float > zpositions_
std::vector< int > ntrks_highpT_
std::vector< float > instLumi_
PileupSummaryInfo::PileupSummaryInfo ( const int  num_PU_vertices,
std::vector< float > &  instLumi,
std::vector< edm::EventID > &  eventInfo 
)

Definition at line 113 of file PileupSummaryInfo.cc.

References eventInfo_, instLumi_, ntrks_highpT_, ntrks_lowpT_, num_PU_vertices_, sumpT_highpT_, sumpT_lowpT_, and zpositions_.

116 {
117  num_PU_vertices_ = num_PU_vertices;
118  zpositions_.clear();
119  sumpT_lowpT_.clear();
120  sumpT_highpT_.clear();
121  ntrks_lowpT_.clear();
122  ntrks_highpT_.clear();
123  instLumi_.clear();
124  eventInfo_.clear();
125 
126 
127  for( int ivtx = 0; ivtx<num_PU_vertices ; ++ivtx) {
128  instLumi_.push_back(instLumi[ivtx]);
129  eventInfo_.push_back(eventInfo[ivtx]);
130  }
131 }
std::vector< int > ntrks_lowpT_
std::vector< edm::EventID > eventInfo_
std::vector< float > sumpT_highpT_
std::vector< float > sumpT_lowpT_
std::vector< float > zpositions_
std::vector< int > ntrks_highpT_
std::vector< float > instLumi_
PileupSummaryInfo::~PileupSummaryInfo ( )

Definition at line 133 of file PileupSummaryInfo.cc.

133  {
134 }

Member Function Documentation

const int PileupSummaryInfo::getBunchCrossing ( void  ) const
inline

Definition at line 71 of file PileupSummaryInfo.h.

References bunchCrossing_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

71 { return bunchCrossing_;}
const std::vector<edm::EventID>& PileupSummaryInfo::getPU_EventID ( ) const
inline

Definition at line 70 of file PileupSummaryInfo.h.

References eventInfo_.

70 { return eventInfo_; }
std::vector< edm::EventID > eventInfo_
const std::vector<float>& PileupSummaryInfo::getPU_instLumi ( ) const
inline

Definition at line 69 of file PileupSummaryInfo.h.

References instLumi_.

69 { return instLumi_; }
std::vector< float > instLumi_
const std::vector<int>& PileupSummaryInfo::getPU_ntrks_highpT ( ) const
inline

Definition at line 68 of file PileupSummaryInfo.h.

References ntrks_highpT_.

68 { return ntrks_highpT_; }
std::vector< int > ntrks_highpT_
const std::vector<int>& PileupSummaryInfo::getPU_ntrks_lowpT ( ) const
inline

Definition at line 67 of file PileupSummaryInfo.h.

References ntrks_lowpT_.

67 { return ntrks_lowpT_; }
std::vector< int > ntrks_lowpT_
const int PileupSummaryInfo::getPU_NumInteractions ( ) const
inline

Definition at line 63 of file PileupSummaryInfo.h.

References num_PU_vertices_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

63 { return num_PU_vertices_; }
const std::vector<float>& PileupSummaryInfo::getPU_sumpT_highpT ( ) const
inline

Definition at line 66 of file PileupSummaryInfo.h.

References sumpT_highpT_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

66 { return sumpT_highpT_; }
std::vector< float > sumpT_highpT_
const std::vector<float>& PileupSummaryInfo::getPU_sumpT_lowpT ( ) const
inline

Definition at line 65 of file PileupSummaryInfo.h.

References sumpT_lowpT_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

65 { return sumpT_lowpT_; }
std::vector< float > sumpT_lowpT_
const std::vector<float>& PileupSummaryInfo::getPU_zpositions ( ) const
inline

Definition at line 64 of file PileupSummaryInfo.h.

References zpositions_.

64 { return zpositions_; }
std::vector< float > zpositions_
const float PileupSummaryInfo::getTrueNumInteractions ( ) const
inline

Definition at line 72 of file PileupSummaryInfo.h.

References TrueNumInteractions_.

72 { return TrueNumInteractions_;}

Member Data Documentation

int PileupSummaryInfo::bunchCrossing_
private

Definition at line 84 of file PileupSummaryInfo.h.

Referenced by getBunchCrossing(), and PileupSummaryInfo().

std::vector<edm::EventID> PileupSummaryInfo::eventInfo_
private

Definition at line 91 of file PileupSummaryInfo.h.

Referenced by getPU_EventID(), and PileupSummaryInfo().

std::vector<float> PileupSummaryInfo::instLumi_
private

Definition at line 90 of file PileupSummaryInfo.h.

Referenced by getPU_instLumi(), and PileupSummaryInfo().

std::vector<int> PileupSummaryInfo::ntrks_highpT_
private

Definition at line 83 of file PileupSummaryInfo.h.

Referenced by getPU_ntrks_highpT(), and PileupSummaryInfo().

std::vector<int> PileupSummaryInfo::ntrks_lowpT_
private

Definition at line 82 of file PileupSummaryInfo.h.

Referenced by getPU_ntrks_lowpT(), and PileupSummaryInfo().

int PileupSummaryInfo::num_PU_vertices_
private

Definition at line 78 of file PileupSummaryInfo.h.

Referenced by getPU_NumInteractions(), and PileupSummaryInfo().

std::vector<float> PileupSummaryInfo::sumpT_highpT_
private

Definition at line 81 of file PileupSummaryInfo.h.

Referenced by getPU_sumpT_highpT(), and PileupSummaryInfo().

std::vector<float> PileupSummaryInfo::sumpT_lowpT_
private

Definition at line 80 of file PileupSummaryInfo.h.

Referenced by getPU_sumpT_lowpT(), and PileupSummaryInfo().

float PileupSummaryInfo::TrueNumInteractions_
private

Definition at line 85 of file PileupSummaryInfo.h.

Referenced by getTrueNumInteractions(), and PileupSummaryInfo().

std::vector<float> PileupSummaryInfo::zpositions_
private

Definition at line 79 of file PileupSummaryInfo.h.

Referenced by getPU_zpositions(), and PileupSummaryInfo().