00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ATLFAST_CELLDUMPER_H
00011 #define ATLFAST_CELLDUMPER_H
00012
00013
00014 #include <vector>
00015 #include <string>
00016
00017
00018
00019
00020
00021
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 }
00086
00087 #endif
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098