Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:03:50

0001 #ifndef PileupVertexContent_h
0002 #define PileupVertexContent_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     PileupVertexContent
0006 // Class  :     PileupVertexContent
0007 //
0008 /**\class PileupVertexContent PileupVertexContent.h SimDataFormats/PileupVertexContent/interface/PileupVertexContent.h
0009 
0010 Description: contains information related to the details of the pileup simulation for a given event, filled by Special "Digitizer" that has access to each pileup event
0011 Usage: purely descriptive
0012 */
0013 //
0014 // Original Author:  Mike Hildreth, Notre Dame
0015 //         Created:  April 18, 2011
0016 //
0017 //
0018 
0019 #include <vector>
0020 #include <string>
0021 #include <iostream>
0022 #include "DataFormats/Math/interface/LorentzVector.h"
0023 
0024 class PileupVertexContent {
0025 public:
0026   PileupVertexContent(){};
0027 
0028   PileupVertexContent(const std::vector<float>& pT_hat,
0029                       const std::vector<float>& z_Vtx,
0030                       const std::vector<float>& t_Vtx)
0031       : pT_hats_(pT_hat), z_Vtxs_(z_Vtx), t_Vtxs_(t_Vtx){};
0032 
0033   ~PileupVertexContent() {
0034     pT_hats_.clear();
0035     z_Vtxs_.clear();
0036     t_Vtxs_.clear();
0037   };
0038 
0039   const std::vector<float>& getMix_pT_hats() const { return pT_hats_; }
0040   const std::vector<float>& getMix_z_Vtxs() const { return z_Vtxs_; }
0041   const std::vector<float>& getMix_t_Vtxs() const { return t_Vtxs_; }
0042 
0043 private:
0044   // for "standard" pileup: we have MC Truth information for these
0045 
0046   std::vector<float> pT_hats_;
0047   std::vector<float> z_Vtxs_;
0048   std::vector<float> t_Vtxs_;  // may be empty if time information is not available
0049 };
0050 
0051 #endif