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
const std::vector< float > & getMix_TrueInteractions () const
 PileupMixingContent (std::vector< int > &bunchCrossing, std::vector< int > &n_interactions, std::vector< float > &True_interactions)
 PileupMixingContent ()
 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.

{};
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_.

 {

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

    for(int inter=0; inter<(int)bunchCrossing.size(); ++inter) {
        bunchCrossing_.push_back(bunchCrossing[inter]);
        n_interactions_.push_back(n_interactions[inter]);
        n_TrueInteractions_.push_back(True_interactions[inter]);
    }
  };
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_.

 {

    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]);
        n_TrueInteractions_.push_back(-1.);
    }
  };
PileupMixingContent::~PileupMixingContent ( ) [inline]

Definition at line 61 of file PileupMixingContent.h.

References bunchCrossing_, n_interactions_, and n_TrueInteractions_.

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

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().

{ return 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().

{ return 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().

{ return 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]