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
PileupMixingContent Class Reference

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

Public Member Functions

const std::vector< int > & getMix_bunchCrossing () const
 
const int & getMix_bunchSpacing () const
 
const std::vector< edm::EventIDgetMix_eventInfo () const
 
const std::vector< int > & getMix_Ninteractions () const
 
const std::vector< float > & getMix_TrueInteractions () const
 
 PileupMixingContent ()
 
 PileupMixingContent (std::vector< int > &bunchCrossing, std::vector< int > &n_interactions, std::vector< float > &True_interactions, std::vector< edm::EventID > &eventInfos, int bunchSpacing)
 
 PileupMixingContent (std::vector< int > &bunchCrossing, std::vector< int > &n_interactions)
 
 ~PileupMixingContent ()
 

Private Attributes

std::vector< int > bunchCrossing_
 
int bunchSpacing_
 
std::vector< edm::EventIDeventInfos_
 
std::vector< int > n_interactions_
 
std::vector< float > n_TrueInteractions_
 

Detailed Description

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

Definition at line 24 of file PileupMixingContent.h.

Constructor & Destructor Documentation

PileupMixingContent::PileupMixingContent ( )
inline

Definition at line 28 of file PileupMixingContent.h.

28 {};
PileupMixingContent::PileupMixingContent ( std::vector< int > &  bunchCrossing,
std::vector< int > &  n_interactions,
std::vector< float > &  True_interactions,
std::vector< edm::EventID > &  eventInfos,
int  bunchSpacing 
)
inline

Definition at line 30 of file PileupMixingContent.h.

References bunchCrossing_, inter, n_interactions_, and n_TrueInteractions_.

34  :
35  eventInfos_(eventInfos),
36  bunchSpacing_(bunchSpacing)
37  {
38 
39  bunchCrossing_.reserve(bunchCrossing.size());
40  n_interactions_.reserve(bunchCrossing.size());
41  n_TrueInteractions_.reserve(bunchCrossing.size());
42 
43  for(int inter=0; inter<(int)bunchCrossing.size(); ++inter) {
44  bunchCrossing_.push_back(bunchCrossing[inter]);
45  n_interactions_.push_back(n_interactions[inter]);
46  n_TrueInteractions_.push_back(True_interactions[inter]);
47  }
48  };
std::vector< int > n_interactions_
std::vector< float > n_TrueInteractions_
std::vector< edm::EventID > eventInfos_
int inter
std::vector< int > bunchCrossing_
PileupMixingContent::PileupMixingContent ( std::vector< int > &  bunchCrossing,
std::vector< int > &  n_interactions 
)
inline

Definition at line 50 of file PileupMixingContent.h.

References bunchCrossing_, inter, n_interactions_, and n_TrueInteractions_.

52  {
53 
54  bunchCrossing_.reserve(bunchCrossing.size());
55  n_interactions_.reserve(bunchCrossing.size());
56 
57  for(int inter=0; inter<(int)bunchCrossing.size(); ++inter) {
58  bunchCrossing_.push_back(bunchCrossing[inter]);
59  n_interactions_.push_back(n_interactions[inter]);
60  n_TrueInteractions_.push_back(-1.);
61  }
62  };
std::vector< int > n_interactions_
std::vector< float > n_TrueInteractions_
int inter
std::vector< int > bunchCrossing_
PileupMixingContent::~PileupMixingContent ( )
inline

Definition at line 66 of file PileupMixingContent.h.

References bunchCrossing_, eventInfos_, n_interactions_, and n_TrueInteractions_.

66  {
67  bunchCrossing_.clear();
68  n_interactions_.clear();
69  n_TrueInteractions_.clear();
70  eventInfos_.clear();
71  };
std::vector< int > n_interactions_
std::vector< float > n_TrueInteractions_
std::vector< edm::EventID > eventInfos_
std::vector< int > bunchCrossing_

Member Function Documentation

const std::vector<int>& PileupMixingContent::getMix_bunchCrossing ( ) const
inline

Definition at line 75 of file PileupMixingContent.h.

References bunchCrossing_.

Referenced by SiPixelDigitizerAlgorithm::calculateInstlumiFactor(), and PileupInformation::produce().

75 { return bunchCrossing_; }
std::vector< int > bunchCrossing_
const int& PileupMixingContent::getMix_bunchSpacing ( ) const
inline
const std::vector<edm::EventID> PileupMixingContent::getMix_eventInfo ( ) const
inline

Definition at line 77 of file PileupMixingContent.h.

References eventInfos_.

Referenced by PileupInformation::produce().

77 {return eventInfos_;}
std::vector< edm::EventID > eventInfos_
const std::vector<int>& PileupMixingContent::getMix_Ninteractions ( ) const
inline

Definition at line 73 of file PileupMixingContent.h.

References n_interactions_.

Referenced by PileupInformation::produce().

73 { return n_interactions_; }
std::vector< int > n_interactions_
const std::vector<float>& PileupMixingContent::getMix_TrueInteractions ( ) const
inline

Member Data Documentation

std::vector<int> PileupMixingContent::bunchCrossing_
private
int PileupMixingContent::bunchSpacing_
private

Definition at line 88 of file PileupMixingContent.h.

Referenced by getMix_bunchSpacing().

std::vector<edm::EventID> PileupMixingContent::eventInfos_
private

Definition at line 87 of file PileupMixingContent.h.

Referenced by getMix_eventInfo(), and ~PileupMixingContent().

std::vector<int> PileupMixingContent::n_interactions_
private
std::vector<float> PileupMixingContent::n_TrueInteractions_
private