CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FastTimeDDDConstants.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_FastTimeDDDConstants_h
2 #define HGCalCommonData_FastTimeDDDConstants_h
3 
14 #include<string>
15 #include<vector>
16 #include<iostream>
17 
19 
20 class DDCompactView;
21 class DDFilteredView;
22 
24 
25 public:
26 
27  FastTimeDDDConstants( const DDCompactView& cpv );
29 
30  int computeCells() const;
31  int getType() const {return cellType;}
32  std::pair<int,int> getXY(int copy) const;
33  std::pair<int,int> getXY(double x, double y) const;
34  int getCells() const {return 4*nCells;}
35  bool isValidXY(int ix, int iy) const;
36  bool isValidCell(int copy) const;
37  int quadrant(int ix, int iy) const;
38  int quadrant(int copy) const;
39 
40 private:
41  void initialize(const DDCompactView& cpv);
42  void loadSpecPars(const DDFilteredView& fv);
43  std::vector<double> getDDDArray(const std::string &,
44  const DDsvalues_type &) const;
45 
47  double rIn, rOut, cellSize;
48  std::vector<int> firstY, lastY, firstCell, lastCell;
49 };
50 
51 #endif
void initialize(const DDCompactView &cpv)
int quadrant(int ix, int iy) const
bool isValidXY(int ix, int iy) const
type of data representation of DDCompactView
Definition: DDCompactView.h:77
FastTimeDDDConstants(const DDCompactView &cpv)
bool isValidCell(int copy) const
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
Definition: DDsvalues.h:19
std::vector< int > firstCell
std::vector< int > firstY
void loadSpecPars(const DDFilteredView &fv)
std::vector< int > lastCell
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &) const
std::vector< int > lastY
std::pair< int, int > getXY(int copy) const