CMS 3D CMS Logo

DDTrackerPhiAlgo.h
Go to the documentation of this file.
1 #ifndef DD_TrackerPhiAlgo_h
2 #define DD_TrackerPhiAlgo_h
3 
4 #include <map>
5 #include <string>
6 #include <vector>
9 
10 class DDTrackerPhiAlgo : public DDAlgorithm {
11 
12 public:
13  //Constructor and Destructor
15  ~DDTrackerPhiAlgo() override;
16 
17  void initialize(const DDNumericArguments & nArgs,
18  const DDVectorArguments & vArgs,
19  const DDMapArguments & mArgs,
20  const DDStringArguments & sArgs,
21  const DDStringVectorArguments & vsArgs) override;
22 
23  void execute(DDCompactView& cpv) override;
24 
25 private:
26 
27  double radius; //Radius
28  double tilt; //Tilt angle
29  std::vector<double> phi; //Phi values
30  std::vector<double> zpos; //Z positions
31 
32  std::string idNameSpace; //Namespace of this and ALL sub-parts
33  std::string childName; //Child name
34 
35  size_t startcn; //Start index of copy numbers.
36  int incrcn; //Increment of copy number index.
37  size_t numcopies; //Number of copies == phi.size() above.
38 };
39 
40 #endif
std::vector< double > phi
std::string childName
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:83
std::vector< double > zpos
std::string idNameSpace
~DDTrackerPhiAlgo() override
void execute(DDCompactView &cpv) override