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_pT_hats () 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, std::vector< edm::EventID > &eventInfo, std::vector< float > &pT_hats, 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 > pT_hats_
 
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 15 of file PileupSummaryInfo.cc.

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

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

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

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

Definition at line 76 of file PileupSummaryInfo.cc.

References bunchCrossing_, bunchSpacing_, instLumi_, num_PU_vertices_, and TrueNumInteractions_.

86  :
87  zpositions_(zpositions),
88  sumpT_lowpT_(sumpT_lowpT),
89  sumpT_highpT_(sumpT_highpT),
90  ntrks_lowpT_(ntrks_lowpT),
91  ntrks_highpT_(ntrks_highpT),
93  pT_hats_(pThats)
94 {
95 
96  num_PU_vertices_ = num_PU_vertices;
97  instLumi_.clear();
98  bunchCrossing_ = bunchCrossing;
99  TrueNumInteractions_ = TrueNumInteractions;
100  bunchSpacing_ = bunchSpacing;
101 
102 }
std::vector< int > ntrks_lowpT_
std::vector< edm::EventID > eventInfo_
std::vector< float > pT_hats_
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 106 of file PileupSummaryInfo.cc.

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

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

126  {
127 }

Member Function Documentation

const int PileupSummaryInfo::getBunchCrossing ( void  ) const
inline

Definition at line 73 of file PileupSummaryInfo.h.

References bunchCrossing_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

73 { return bunchCrossing_;}
const int PileupSummaryInfo::getBunchSpacing ( ) const
inline

Definition at line 74 of file PileupSummaryInfo.h.

References bunchSpacing_.

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

Definition at line 71 of file PileupSummaryInfo.h.

References eventInfo_.

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

Definition at line 70 of file PileupSummaryInfo.h.

References instLumi_.

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

Definition at line 69 of file PileupSummaryInfo.h.

References ntrks_highpT_.

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

Definition at line 68 of file PileupSummaryInfo.h.

References ntrks_lowpT_.

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

Definition at line 72 of file PileupSummaryInfo.h.

References pT_hats_.

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

Definition at line 67 of file PileupSummaryInfo.h.

References sumpT_highpT_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

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

Definition at line 66 of file PileupSummaryInfo.h.

References sumpT_lowpT_.

Referenced by FFTJetPileupAnalyzer::analyzePileup().

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

Definition at line 65 of file PileupSummaryInfo.h.

References zpositions_.

Referenced by PrimaryVertexAnalyzer4PU::analyze().

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

Definition at line 75 of file PileupSummaryInfo.h.

References TrueNumInteractions_.

75 { return TrueNumInteractions_;}

Member Data Documentation

int PileupSummaryInfo::bunchCrossing_
private

Definition at line 89 of file PileupSummaryInfo.h.

Referenced by getBunchCrossing(), and PileupSummaryInfo().

int PileupSummaryInfo::bunchSpacing_
private

Definition at line 90 of file PileupSummaryInfo.h.

Referenced by getBunchSpacing(), and PileupSummaryInfo().

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

Definition at line 87 of file PileupSummaryInfo.h.

Referenced by getPU_EventID(), and PileupSummaryInfo().

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

Definition at line 96 of file PileupSummaryInfo.h.

Referenced by getPU_instLumi(), and PileupSummaryInfo().

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

Definition at line 86 of file PileupSummaryInfo.h.

Referenced by getPU_ntrks_highpT(), and PileupSummaryInfo().

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

Definition at line 85 of file PileupSummaryInfo.h.

Referenced by getPU_ntrks_lowpT(), and PileupSummaryInfo().

int PileupSummaryInfo::num_PU_vertices_
private

Definition at line 81 of file PileupSummaryInfo.h.

Referenced by getPU_NumInteractions(), and PileupSummaryInfo().

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

Definition at line 88 of file PileupSummaryInfo.h.

Referenced by getPU_pT_hats().

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

Definition at line 84 of file PileupSummaryInfo.h.

Referenced by getPU_sumpT_highpT(), and PileupSummaryInfo().

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

Definition at line 83 of file PileupSummaryInfo.h.

Referenced by getPU_sumpT_lowpT(), and PileupSummaryInfo().

float PileupSummaryInfo::TrueNumInteractions_
private

Definition at line 91 of file PileupSummaryInfo.h.

Referenced by getTrueNumInteractions(), and PileupSummaryInfo().

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

Definition at line 82 of file PileupSummaryInfo.h.

Referenced by getPU_zpositions(), and PileupSummaryInfo().