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 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)
 
 PileupMixingContent (std::vector< int > &bunchCrossing, std::vector< int > &n_interactions)
 
 ~PileupMixingContent ()
 

Private Attributes

std::vector< int > bunchCrossing_
 
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 23 of file PileupMixingContent.h.

Constructor & Destructor Documentation

PileupMixingContent::PileupMixingContent ( )
inline

Definition at line 27 of file PileupMixingContent.h.

27 {};
PileupMixingContent::PileupMixingContent ( std::vector< int > &  bunchCrossing,
std::vector< int > &  n_interactions,
std::vector< float > &  True_interactions 
)
inline

Definition at line 29 of file PileupMixingContent.h.

References bunchCrossing_, inter, n_interactions_, and n_TrueInteractions_.

32  {
33 
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_
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_.

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

Definition at line 61 of file PileupMixingContent.h.

References bunchCrossing_, n_interactions_, and n_TrueInteractions_.

61  {
62  bunchCrossing_.clear();
63  n_interactions_.clear();
64  n_TrueInteractions_.clear();
65  };
std::vector< int > n_interactions_
std::vector< float > n_TrueInteractions_
std::vector< int > bunchCrossing_

Member Function Documentation

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

Definition at line 69 of file PileupMixingContent.h.

References bunchCrossing_.

Referenced by PileupInformation::produce().

69 { return bunchCrossing_; }
std::vector< int > bunchCrossing_
const std::vector<int>& PileupMixingContent::getMix_Ninteractions ( ) const
inline

Definition at line 67 of file PileupMixingContent.h.

References n_interactions_.

Referenced by PileupInformation::produce().

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

Definition at line 68 of file PileupMixingContent.h.

References n_TrueInteractions_.

Referenced by PileupInformation::produce().

68 { return n_TrueInteractions_; }
std::vector< float > n_TrueInteractions_

Member Data Documentation

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