CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/Fireworks/Calo/plugins/FWCaloTowerSliceSelector.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Calo_FWCaloTowerSliceSelector_h
00002 #define Fireworks_Calo_FWCaloTowerSliceSelector_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Calo
00006 // Class  :     FWCaloTowerSliceSelector
00007 // 
00016 //
00017 // Original Author:  Alja Mrak-Tadel
00018 //         Created:  Wed Jun  2 19:21:19 CEST 2010
00019 // $Id: FWCaloTowerSliceSelector.h,v 1.3 2010/12/01 21:40:31 amraktad Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 
00026 #include "Fireworks/Calo/src/FWFromSliceSelector.h"
00027 class CaloTower;
00028 // forward declarations
00029 class TH2F;
00030 
00031 class FWCaloTowerSliceSelector : public FWFromSliceSelector
00032 {
00033 public:
00034   FWCaloTowerSliceSelector(TH2F* h, const FWEventItem* i);
00035   virtual ~FWCaloTowerSliceSelector();
00036   
00037   virtual void doSelect(const TEveCaloData::CellId_t&);
00038   virtual void doUnselect(const TEveCaloData::CellId_t&);
00039   
00040 private:
00041   TH2F* m_hist;
00042     bool matchCell(const TEveCaloData::CellId_t& iCell, const CaloTower& tower) const;
00043 };
00044 
00045 #endif