CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 26 of file PileupMixingContent.h.

26 {};
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 28 of file PileupMixingContent.h.

References bunchCrossing_, inter, n_interactions_, and n_TrueInteractions_.

33  : eventInfos_(eventInfos), bunchSpacing_(bunchSpacing) {
34  bunchCrossing_.reserve(bunchCrossing.size());
35  n_interactions_.reserve(bunchCrossing.size());
36  n_TrueInteractions_.reserve(bunchCrossing.size());
37 
38  for (int inter = 0; inter < (int)bunchCrossing.size(); ++inter) {
39  bunchCrossing_.push_back(bunchCrossing[inter]);
40  n_interactions_.push_back(n_interactions[inter]);
41  n_TrueInteractions_.push_back(True_interactions[inter]);
42  }
43  };
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 45 of file PileupMixingContent.h.

References bunchCrossing_, inter, n_interactions_, and n_TrueInteractions_.

45  {
46  bunchCrossing_.reserve(bunchCrossing.size());
47  n_interactions_.reserve(bunchCrossing.size());
48 
49  for (int inter = 0; inter < (int)bunchCrossing.size(); ++inter) {
50  bunchCrossing_.push_back(bunchCrossing[inter]);
51  n_interactions_.push_back(n_interactions[inter]);
52  n_TrueInteractions_.push_back(-1.);
53  }
54  };
std::vector< int > n_interactions_
std::vector< float > n_TrueInteractions_
int inter
std::vector< int > bunchCrossing_
PileupMixingContent::~PileupMixingContent ( )
inline

Definition at line 56 of file PileupMixingContent.h.

References bunchCrossing_, eventInfos_, n_interactions_, and n_TrueInteractions_.

56  {
57  bunchCrossing_.clear();
58  n_interactions_.clear();
59  n_TrueInteractions_.clear();
60  eventInfos_.clear();
61  };
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
const int& PileupMixingContent::getMix_bunchSpacing ( ) const
inline
const std::vector<edm::EventID> PileupMixingContent::getMix_eventInfo ( ) const
inline

Definition at line 67 of file PileupMixingContent.h.

References eventInfos_.

Referenced by PileupInformation::produce().

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

Definition at line 63 of file PileupMixingContent.h.

References n_interactions_.

Referenced by PileupInformation::produce().

63 { 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 76 of file PileupMixingContent.h.

Referenced by getMix_bunchSpacing().

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

Definition at line 75 of file PileupMixingContent.h.

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

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