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 24 of file PileupSummaryInfo.h.

Constructor & Destructor Documentation

PileupSummaryInfo::PileupSummaryInfo ( )
inline

Definition at line 28 of file PileupSummaryInfo.h.

28 {};
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 16 of file PileupSummaryInfo.cc.

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

22 {
23 
24  num_PU_vertices_ = num_PU_vertices;
25  zpositions_.clear();
26  sumpT_lowpT_.clear();
27  sumpT_highpT_.clear();
28  ntrks_lowpT_.clear();
29  ntrks_highpT_.clear();
30  instLumi_.clear();
31  eventInfo_.clear();
32 
33  int NLoop = zpositions.size();
34 
35  for( int ivtx = 0; ivtx<NLoop ; ++ivtx) {
36  zpositions_.push_back(zpositions[ivtx]);
37  sumpT_lowpT_.push_back(sumpT_lowpT[ivtx]);
38  sumpT_highpT_.push_back(sumpT_highpT[ivtx]);
39  ntrks_lowpT_.push_back(ntrks_lowpT[ivtx]);
40  ntrks_highpT_.push_back(ntrks_highpT[ivtx]);
41  }
42 
43 }
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 45 of file PileupSummaryInfo.cc.

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

52 {
53 
54  num_PU_vertices_ = num_PU_vertices;
55  zpositions_.clear();
56  sumpT_lowpT_.clear();
57  sumpT_highpT_.clear();
58  ntrks_lowpT_.clear();
59  ntrks_highpT_.clear();
60  instLumi_.clear();
61  eventInfo_.clear();
62  bunchCrossing_ = bunchCrossing;
63 
64  int NLoop = zpositions.size();
65 
66  for( int ivtx = 0; ivtx<NLoop ; ++ivtx) {
67  zpositions_.push_back(zpositions[ivtx]);
68  sumpT_lowpT_.push_back(sumpT_lowpT[ivtx]);
69  sumpT_highpT_.push_back(sumpT_highpT[ivtx]);
70  ntrks_lowpT_.push_back(ntrks_lowpT[ivtx]);
71  ntrks_highpT_.push_back(ntrks_highpT[ivtx]);
72  }
73 
74 }
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 77 of file PileupSummaryInfo.cc.

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

85 {
86 
87  num_PU_vertices_ = num_PU_vertices;
88  zpositions_.clear();
89  sumpT_lowpT_.clear();
90  sumpT_highpT_.clear();
91  ntrks_lowpT_.clear();
92  ntrks_highpT_.clear();
93  instLumi_.clear();
94  eventInfo_.clear();
95  bunchCrossing_ = bunchCrossing;
96  TrueNumInteractions_ = TrueNumInteractions;
97 
98  int NLoop = zpositions.size();
99 
100  for( int ivtx = 0; ivtx<NLoop ; ++ivtx) {
101  zpositions_.push_back(zpositions[ivtx]);
102  sumpT_lowpT_.push_back(sumpT_lowpT[ivtx]);
103  sumpT_highpT_.push_back(sumpT_highpT[ivtx]);
104  ntrks_lowpT_.push_back(ntrks_lowpT[ivtx]);
105  ntrks_highpT_.push_back(ntrks_highpT[ivtx]);
106  }
107 
108 }
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 112 of file PileupSummaryInfo.cc.

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

115 {
116  num_PU_vertices_ = num_PU_vertices;
117  zpositions_.clear();
118  sumpT_lowpT_.clear();
119  sumpT_highpT_.clear();
120  ntrks_lowpT_.clear();
121  ntrks_highpT_.clear();
122  instLumi_.clear();
123  eventInfo_.clear();
124 
125 
126  for( int ivtx = 0; ivtx<num_PU_vertices ; ++ivtx) {
127  instLumi_.push_back(instLumi[ivtx]);
128  eventInfo_.push_back(eventInfo[ivtx]);
129  }
130 }
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 132 of file PileupSummaryInfo.cc.

132  {
133 }

Member Function Documentation

const int PileupSummaryInfo::getBunchCrossing ( void  ) const
inline

Definition at line 70 of file PileupSummaryInfo.h.

References bunchCrossing_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

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

Definition at line 69 of file PileupSummaryInfo.h.

References eventInfo_.

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

Definition at line 68 of file PileupSummaryInfo.h.

References instLumi_.

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

Definition at line 67 of file PileupSummaryInfo.h.

References ntrks_highpT_.

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

Definition at line 66 of file PileupSummaryInfo.h.

References ntrks_lowpT_.

66 { return ntrks_lowpT_; }
std::vector< int > ntrks_lowpT_
const int PileupSummaryInfo::getPU_NumInteractions ( ) const
inline
const std::vector<float>& PileupSummaryInfo::getPU_sumpT_highpT ( ) const
inline

Definition at line 65 of file PileupSummaryInfo.h.

References sumpT_highpT_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

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

Definition at line 64 of file PileupSummaryInfo.h.

References sumpT_lowpT_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

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

Definition at line 63 of file PileupSummaryInfo.h.

References zpositions_.

Referenced by PrimaryVertexAnalyzer4PU::analyze().

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

Definition at line 71 of file PileupSummaryInfo.h.

References TrueNumInteractions_.

71 { return TrueNumInteractions_;}

Member Data Documentation

int PileupSummaryInfo::bunchCrossing_
private

Definition at line 83 of file PileupSummaryInfo.h.

Referenced by getBunchCrossing(), and PileupSummaryInfo().

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

Definition at line 90 of file PileupSummaryInfo.h.

Referenced by getPU_EventID(), and PileupSummaryInfo().

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

Definition at line 89 of file PileupSummaryInfo.h.

Referenced by getPU_instLumi(), and PileupSummaryInfo().

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

Definition at line 82 of file PileupSummaryInfo.h.

Referenced by getPU_ntrks_highpT(), and PileupSummaryInfo().

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

Definition at line 81 of file PileupSummaryInfo.h.

Referenced by getPU_ntrks_lowpT(), and PileupSummaryInfo().

int PileupSummaryInfo::num_PU_vertices_
private

Definition at line 77 of file PileupSummaryInfo.h.

Referenced by getPU_NumInteractions(), and PileupSummaryInfo().

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

Definition at line 80 of file PileupSummaryInfo.h.

Referenced by getPU_sumpT_highpT(), and PileupSummaryInfo().

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

Definition at line 79 of file PileupSummaryInfo.h.

Referenced by getPU_sumpT_lowpT(), and PileupSummaryInfo().

float PileupSummaryInfo::TrueNumInteractions_
private

Definition at line 84 of file PileupSummaryInfo.h.

Referenced by getTrueNumInteractions(), and PileupSummaryInfo().

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

Definition at line 78 of file PileupSummaryInfo.h.

Referenced by getPU_zpositions(), and PileupSummaryInfo().