1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef Geometry_ForwardGeometry_CastorHardcodeGeometryLoader_H
#define Geometry_ForwardGeometry_CastorHardcodeGeometryLoader_H 1
#include "Geometry/CaloGeometry/interface/CaloVGeometryLoader.h"
#include "Geometry/ForwardGeometry/interface/CastorTopology.h"
class CaloCellGeometry;
class CaloSubdetectorGeometry;
class HcalCastorDetId;
class CastorHardcodeGeometryLoader {
public:
CastorHardcodeGeometryLoader();
explicit CastorHardcodeGeometryLoader(const CastorTopology& ht);
virtual ~CastorHardcodeGeometryLoader() { delete theTopology; };
virtual std::unique_ptr<CaloSubdetectorGeometry> load(DetId::Detector det, int subdet);
std::unique_ptr<CaloSubdetectorGeometry> load();
private:
void init();
void fill(HcalCastorDetId::Section section, CaloSubdetectorGeometry* cg);
void makeCell(const HcalCastorDetId& detId, CaloSubdetectorGeometry* geom) const;
CastorTopology* theTopology;
const CastorTopology* extTopology;
float theEMSectiondX;
float theEMSectiondY;
float theEMSectiondZ;
float theHADSectiondX;
float theHADSectiondY;
float theHADSectiondZ;
};
#endif
|