Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:27

0001 #ifndef Fireworks_Calo_FWHFTowerSliceSelector_h
0002 #define Fireworks_Calo_FWHFTowerSliceSelector_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Calo
0006 // Class  :     FWHFTowerSliceSelector
0007 //
0008 /**\class FWHFTowerSliceSelector FWHFTowerSliceSelector.h Fireworks/Calo/interface/FWHFTowerSliceSelector.h
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Alja Mrak-Tadel
0018 //         Created:  Wed Jun  2 19:21:13 CEST 2010
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 class HcalDetId;
0025 class TEveCaloDataVec;
0026 
0027 #include "Fireworks/Calo/interface/FWFromSliceSelector.h"
0028 
0029 // forward declarations
0030 
0031 class FWHFTowerSliceSelector : public FWFromSliceSelector {
0032 public:
0033   FWHFTowerSliceSelector(const FWEventItem* i, TEveCaloDataVec* data) : FWFromSliceSelector(i), m_vecData(data) {}
0034 
0035   ~FWHFTowerSliceSelector() override {}
0036 
0037   void doSelect(const TEveCaloData::CellId_t&) override;
0038   void doUnselect(const TEveCaloData::CellId_t&) override;
0039 
0040 private:
0041   bool findBinFromId(HcalDetId& id, int tower) const;
0042   TEveCaloDataVec* m_vecData;
0043 };
0044 
0045 #endif