Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CellDumper.h

Go to the documentation of this file.
00001 // ================================================
00002 // CellDumper class description
00003 // ================================================
00004 // Description: 
00005 //
00006 //  Dump ICellWrapper s
00007 // ................................................................
00008 //
00009 
00010 #ifndef ATLFAST_CELLDUMPER_H
00011 #define ATLFAST_CELLDUMPER_H
00012 
00013 // STL
00014 #include <vector>
00015 #include <string>
00016 
00017 
00018 //*****************************************
00019 // Default paths in the Transient event store to get/put entities
00020 //
00021 //[Note:  This will change as the current system is not considered acceptable.]
00022 //******************************************
00023 
00024 namespace Atlfast {
00025   class ICellWrapper;
00032   class CellDumper{
00033   public:
00037     CellDumper(std::vector<ICellWrapper*> c, std::string label): 
00038       m_cells(c), m_label(label){} ; 
00042     void sortByEta();
00046     void dump();
00050     double totalPt(){return sumPt(m_cells.begin(), m_cells.end());}
00054     void findShared(const CellDumper&)const ;
00055     ~CellDumper(){};
00056   private:
00060     double sumPt(const std::vector<ICellWrapper*>::const_iterator,
00061                  const std::vector<ICellWrapper*>::const_iterator)const;
00066     void oneDump(const ICellWrapper*) const;
00071     void findParticleMatch (const std::vector<ICellWrapper*>&,
00072                             const std::vector<ICellWrapper*>&) const;
00073 
00077     std::vector<ICellWrapper*> m_cells;
00081     std::string m_label;
00082   };
00083 
00084   
00085 }  //end of namespace bracket
00086 
00087 #endif
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 

Generated on Mon Feb 4 15:54:23 2002 for Atlfast by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001