CMS 3D CMS Logo

CrystalWindowMap.h
Go to the documentation of this file.
1 #ifndef FastSimulation_CaloGeometryTools_CrystalWindowMap_h
2 #define FastSimulation_CaloGeometryTools_CrystalWindowMap_h
3 
15 // FAMOS headers
17 
18 //C++ headers
19 #include <vector>
20 
21 class CaloGeometryHelper;
22 
24 {
25  public:
27  CrystalWindowMap(const CaloGeometryHelper *, const std::vector<Crystal> & cw);
29 
31  bool getCrystalWindow(unsigned , std::vector<unsigned>& ) const ;
33  bool getCrystalWindow(unsigned iq,const std::vector<unsigned>* cw) const;
35  const std::vector<unsigned>& getCrystalWindow(unsigned, bool& status) const;
36  inline unsigned size() const {return size_;}
37 
38  private:
40 
41  unsigned size_;
42  const std::vector<Crystal>& originalVector_;
43 
44  std::vector< std::vector<unsigned> > myNeighbours_;
45 };
46 
47 #endif
const std::vector< Crystal > & originalVector_
bool getCrystalWindow(unsigned, std::vector< unsigned > &) const
get the ordered list of the crystals around the crystal given as a first argument ...
unsigned size() const
std::vector< std::vector< unsigned > > myNeighbours_
CrystalWindowMap(const CaloGeometryHelper *, const std::vector< Crystal > &cw)
Constructor from vector of Crystal.
const CaloGeometryHelper * myCalorimeter_