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 public:
26  CrystalWindowMap(const CaloGeometryHelper*, const std::vector<Crystal>& cw);
28 
30  bool getCrystalWindow(unsigned, std::vector<unsigned>&) const;
32  bool getCrystalWindow(unsigned iq, const std::vector<unsigned>* cw) const;
34  const std::vector<unsigned>& getCrystalWindow(unsigned, bool& status) const;
35  inline unsigned size() const { return size_; }
36 
37 private:
39 
40  unsigned size_;
41  const std::vector<Crystal>& originalVector_;
42 
43  std::vector<std::vector<unsigned> > myNeighbours_;
44 };
45 
46 #endif
CrystalWindowMap::size
unsigned size() const
Definition: CrystalWindowMap.h:35
CrystalWindowMap::getCrystalWindow
bool getCrystalWindow(unsigned, std::vector< unsigned > &) const
get the ordered list of the crystals around the crystal given as a first argument
Definition: CrystalWindowMap.cc:43
mps_update.status
status
Definition: mps_update.py:68
CrystalWindowMap::CrystalWindowMap
CrystalWindowMap(const CaloGeometryHelper *, const std::vector< Crystal > &cw)
Constructor from vector of Crystal.
Definition: CrystalWindowMap.cc:7
CrystalWindowMap::~CrystalWindowMap
~CrystalWindowMap()
Definition: CrystalWindowMap.h:27
CrystalWindowMap::myNeighbours_
std::vector< std::vector< unsigned > > myNeighbours_
Definition: CrystalWindowMap.h:43
CrystalWindowMap::originalVector_
const std::vector< Crystal > & originalVector_
Definition: CrystalWindowMap.h:41
CaloGeometryHelper
Definition: CaloGeometryHelper.h:18
CrystalWindowMap
Definition: CrystalWindowMap.h:23
CrystalWindowMap::myCalorimeter_
const CaloGeometryHelper * myCalorimeter_
Definition: CrystalWindowMap.h:38
CrystalWindowMap::size_
unsigned size_
Definition: CrystalWindowMap.h:40
Crystal.h