CMS 3D CMS Logo

Public Member Functions | Private Attributes

PileupMixingContent Class Reference

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

List of all members.

Public Member Functions

const std::vector< int > & getMix_bunchCrossing () const
const std::vector< int > & getMix_Ninteractions () const
 PileupMixingContent (std::vector< int > &bunchCrossing, std::vector< int > &n_interactions)
 PileupMixingContent ()
 ~PileupMixingContent ()

Private Attributes

std::vector< int > bunchCrossing_
std::vector< int > n_interactions_

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.

{};
PileupMixingContent::PileupMixingContent ( std::vector< int > &  bunchCrossing,
std::vector< int > &  n_interactions 
) [inline]

Definition at line 29 of file PileupMixingContent.h.

References bunchCrossing_, and n_interactions_.

 {

    bunchCrossing_.reserve(bunchCrossing.size());
    n_interactions_.reserve(bunchCrossing.size());

    for(int inter=0; inter<(int)bunchCrossing.size(); ++inter) {
        bunchCrossing_.push_back(bunchCrossing[inter]);
        n_interactions_.push_back(n_interactions[inter]);
    }
  };
PileupMixingContent::~PileupMixingContent ( ) [inline]

Definition at line 44 of file PileupMixingContent.h.

References bunchCrossing_, and n_interactions_.

                        {
    bunchCrossing_.clear();
    n_interactions_.clear();
  };

Member Function Documentation

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

Definition at line 50 of file PileupMixingContent.h.

References bunchCrossing_.

Referenced by PileupInformation::produce().

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

Definition at line 49 of file PileupMixingContent.h.

References n_interactions_.

Referenced by PileupInformation::produce().

{ return n_interactions_; }

Member Data Documentation

std::vector<int> PileupMixingContent::bunchCrossing_ [private]
std::vector<int> PileupMixingContent::n_interactions_ [private]