Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-17 23:10:43

0001 #ifndef Fireworks_Calo_FWHGTowerSliceSelector_h
0002 #define Fireworks_Calo_FWHGTowerSliceSelector_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Calo
0006 // Class  :     FWHGTowerSliceSelector
0007 //
0008 /**\class FWHGTowerSliceSelector FWHGTowerSliceSelector.h Fireworks/Calo/interface/FWHGTowerSliceSelector.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 DetId;
0025 class TEveCaloDataVec;
0026 
0027 #include "Fireworks/Calo/interface/FWFromSliceSelector.h"
0028 
0029 // forward declarations
0030 
0031 class FWHGTowerSliceSelector : public FWFromSliceSelector {
0032 public:
0033   FWHGTowerSliceSelector(const FWEventItem* i, TEveCaloDataVec* data) : FWFromSliceSelector(i), m_vecData(data) {}
0034 
0035   ~FWHGTowerSliceSelector() override {}
0036 
0037   void doSelect(const TEveCaloData::CellId_t&) override;
0038   void doUnselect(const TEveCaloData::CellId_t&) override;
0039 
0040 private:
0041   bool findBinFromId(DetId& id, int tower) const;
0042   TEveCaloDataVec* m_vecData;
0043 };
0044 
0045 #endif