Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/histo/base_cloud is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_histo_base_cloud
0005 #define tools_histo_base_cloud
0006 
0007 #include <string>
0008 #include <vector>
0009 
0010 namespace tools {
0011 namespace histo {
0012 
0013 class base_cloud {
0014   static const std::string& s_class() {
0015     static const std::string s_v("tools::histo::base_cloud");
0016     return s_v;
0017   }
0018 protected:
0019   base_cloud(int aLimit)
0020   :m_limit(aLimit)
0021   ,m_Sw(0)
0022   {
0023   }
0024   virtual ~base_cloud(){
0025   }
0026 public:
0027   base_cloud(const base_cloud& a_from)
0028   :m_title(a_from.m_title)
0029   ,m_limit(a_from.m_limit)
0030   ,m_Sw(a_from.m_Sw)
0031   ,m_ws(a_from.m_ws)
0032   {
0033   }
0034 
0035   base_cloud& operator=(const base_cloud& a_from){
0036     m_title = a_from.m_title;
0037     m_limit = a_from.m_limit;
0038     m_Sw = a_from.m_Sw;
0039     m_ws = a_from.m_ws;
0040     return *this;
0041   }
0042 public:
0043   const std::string& title() const {return m_title;}
0044   int max_entries() const {return m_limit;}
0045 protected:
0046   static int UNLIMITED() {return -1;}
0047   static unsigned int BINS() {return 100;}
0048 protected:
0049   std::string m_title;
0050   int m_limit;
0051   double m_Sw;
0052   std::vector<double> m_ws;
0053 };
0054 
0055 }}
0056 
0057 #endif