CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Fireworks/Calo/plugins/FWHFTowerSliceSelector.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Calo_FWHFTowerSliceSelector_h
00002 #define Fireworks_Calo_FWHFTowerSliceSelector_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Calo
00006 // Class  :     FWHFTowerSliceSelector
00007 // 
00016 //
00017 // Original Author:  Alja Mrak-Tadel
00018 //         Created:  Wed Jun  2 19:21:13 CEST 2010
00019 // $Id: FWHFTowerSliceSelector.h,v 1.3 2010/06/07 17:54:00 amraktad Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 class HcalDetId;
00026 class TEveCaloDataVec;
00027 
00028 #include "Fireworks/Calo/src/FWFromSliceSelector.h"
00029 
00030 // forward declarations
00031 
00032 class FWHFTowerSliceSelector : public FWFromSliceSelector
00033 {
00034 public:
00035    FWHFTowerSliceSelector(const FWEventItem* i, TEveCaloDataVec* data) : 
00036       FWFromSliceSelector(i), m_vecData(data) {}
00037 
00038    virtual ~FWHFTowerSliceSelector() {}
00039 
00040    virtual void doSelect(const TEveCaloData::CellId_t&);
00041    virtual void doUnselect(const TEveCaloData::CellId_t&);
00042    
00043 private:
00044    bool findBinFromId(HcalDetId& id, int tower) const;
00045    TEveCaloDataVec* m_vecData;
00046 };
00047 
00048 
00049 #endif