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 int getBunchSpacing () 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, int bunchSpacing)
 
 PileupSummaryInfo (const int num_PU_vertices, std::vector< float > &instLumi, std::vector< edm::EventID > &eventInfo)
 
 ~PileupSummaryInfo ()
 

Private Attributes

int bunchCrossing_
 
int bunchSpacing_
 
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,
int  bunchSpacing 
)

Definition at line 77 of file PileupSummaryInfo.cc.

References bunchCrossing_, bunchSpacing_, 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  bunchSpacing_ = bunchSpacing;
99 
100  int NLoop = zpositions.size();
101 
102  for( int ivtx = 0; ivtx<NLoop ; ++ivtx) {
103  zpositions_.push_back(zpositions[ivtx]);
104  sumpT_lowpT_.push_back(sumpT_lowpT[ivtx]);
105  sumpT_highpT_.push_back(sumpT_highpT[ivtx]);
106  ntrks_lowpT_.push_back(ntrks_lowpT[ivtx]);
107  ntrks_highpT_.push_back(ntrks_highpT[ivtx]);
108  }
109 
110 }
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 114 of file PileupSummaryInfo.cc.

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

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

134  {
135 }

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 int PileupSummaryInfo::getBunchSpacing ( ) const
inline

Definition at line 72 of file PileupSummaryInfo.h.

References bunchSpacing_.

72 { return bunchSpacing_;}
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
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_.

Referenced by PrimaryVertexAnalyzer4PU::analyze().

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

Definition at line 73 of file PileupSummaryInfo.h.

References TrueNumInteractions_.

73 { return TrueNumInteractions_;}

Member Data Documentation

int PileupSummaryInfo::bunchCrossing_
private

Definition at line 85 of file PileupSummaryInfo.h.

Referenced by getBunchCrossing(), and PileupSummaryInfo().

int PileupSummaryInfo::bunchSpacing_
private

Definition at line 86 of file PileupSummaryInfo.h.

Referenced by getBunchSpacing(), and PileupSummaryInfo().

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

Definition at line 93 of file PileupSummaryInfo.h.

Referenced by getPU_EventID(), and PileupSummaryInfo().

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

Definition at line 92 of file PileupSummaryInfo.h.

Referenced by getPU_instLumi(), and PileupSummaryInfo().

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

Definition at line 84 of file PileupSummaryInfo.h.

Referenced by getPU_ntrks_highpT(), and PileupSummaryInfo().

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

Definition at line 83 of file PileupSummaryInfo.h.

Referenced by getPU_ntrks_lowpT(), and PileupSummaryInfo().

int PileupSummaryInfo::num_PU_vertices_
private

Definition at line 79 of file PileupSummaryInfo.h.

Referenced by getPU_NumInteractions(), and PileupSummaryInfo().

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

Definition at line 82 of file PileupSummaryInfo.h.

Referenced by getPU_sumpT_highpT(), and PileupSummaryInfo().

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

Definition at line 81 of file PileupSummaryInfo.h.

Referenced by getPU_sumpT_lowpT(), and PileupSummaryInfo().

float PileupSummaryInfo::TrueNumInteractions_
private

Definition at line 87 of file PileupSummaryInfo.h.

Referenced by getTrueNumInteractions(), and PileupSummaryInfo().

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

Definition at line 80 of file PileupSummaryInfo.h.

Referenced by getPU_zpositions(), and PileupSummaryInfo().