00001 #ifndef PileupMixingContent_h 00002 #define PileupMixingContent_h 00003 // -*- C++ -*- 00004 // 00005 // Package: PileupMixingContent 00006 // Class : PileupMixingContent 00007 // 00013 // 00014 // Original Author: Mike Hildreth, Notre Dame 00015 // Created: April 18, 2011 00016 // 00017 // 00018 00019 #include <vector> 00020 #include <string> 00021 #include <iostream> 00022 00023 class PileupMixingContent { 00024 00025 public: 00026 00027 PileupMixingContent(){}; 00028 00029 PileupMixingContent( std::vector<int>& bunchCrossing, 00030 std::vector<int>& n_interactions ) 00031 { 00032 00033 bunchCrossing_.reserve(bunchCrossing.size()); 00034 n_interactions_.reserve(bunchCrossing.size()); 00035 00036 for(int inter=0; inter<(int)bunchCrossing.size(); ++inter) { 00037 bunchCrossing_.push_back(bunchCrossing[inter]); 00038 n_interactions_.push_back(n_interactions[inter]); 00039 } 00040 }; 00041 00042 00043 00044 ~PileupMixingContent(){ 00045 bunchCrossing_.clear(); 00046 n_interactions_.clear(); 00047 }; 00048 00049 const std::vector<int>& getMix_Ninteractions() const { return n_interactions_; } 00050 const std::vector<int>& getMix_bunchCrossing() const { return bunchCrossing_; } 00051 00052 private: 00053 00054 // for "standard" pileup: we have MC Truth information for these 00055 00056 00057 std::vector<int> bunchCrossing_; 00058 std::vector<int> n_interactions_; 00059 00060 00061 }; 00062 00063 #endif