1 | #ifndef CRYSTALCOLLIMATOR_H |
---|
2 | #define CRYSTALCOLLIMATOR_H |
---|
3 | #include <iostream> |
---|
4 | #include <fstream> |
---|
5 | #include <iomanip> |
---|
6 | #include <vector> |
---|
7 | #include <string> |
---|
8 | #include <cmath> |
---|
9 | #include "Collimator.h" |
---|
10 | #include "simcrys.h" |
---|
11 | using namespace std; |
---|
12 | |
---|
13 | |
---|
14 | /* |
---|
15 | ################################################################################################ |
---|
16 | |
---|
17 | This class describes all Crystal collimators in the accelerator lattice. |
---|
18 | |
---|
19 | ################################################################################################ |
---|
20 | */ |
---|
21 | |
---|
22 | |
---|
23 | class CrystalCollimator : public Collimator |
---|
24 | { |
---|
25 | |
---|
26 | public: |
---|
27 | |
---|
28 | //=================================================Constructors, destructor======================================= |
---|
29 | |
---|
30 | CrystalCollimator(const double& ALFX, const double& ALFY, const double& APER_1, const double& APER_2, const double& APER_3, const double& APER_4, const string& APERTYPE, const double& BETX, const double& BETY, const double& DPX, const double& DPY, const double& DX, const double& DY, const string& KEYWORD, const double& L, const double& MUX, const double& MUY, const string& NAME, const double& PTC, const double& PXC, const double& PYC, const double& S, const double& TC, const double& XC, const double& YC, const double& K0L, const double& K0SL, const double& K1L, const double& K1SL, const double& K2L, const double& K2SL, const string& PARENT, const string& meth, const double& hgap, const double& hgap2, const double& collang, const double& pdepth, const double& pdepth2, const double& tcang, const double& nsig); |
---|
31 | |
---|
32 | CrystalCollimator(Element elt, const double& tcang, const double& nsig, const string& meth); |
---|
33 | |
---|
34 | CrystalCollimator(const CrystalCollimator& obj); |
---|
35 | |
---|
36 | virtual ~CrystalCollimator() {}; |
---|
37 | |
---|
38 | |
---|
39 | //method usually describing the passage through a collimator; here it is not used |
---|
40 | |
---|
41 | void collipass(Particle& p1, double& dpopeff, const double& scaleorbit, const double& R11X, const double& R12X, const double& R21X, const double& R22X, const double& R11Y, const double& R12Y, const double& R21Y, const double& R22Y, const double& dx1, const double& dpx1, const double& dy1, const double& dpy1, const double& delta_s, const double& Apr, const double& Zpr, const double& betgam) {}; |
---|
42 | |
---|
43 | |
---|
44 | //method specific to the passage through a Crystal collimator |
---|
45 | |
---|
46 | void collipassCrystal(vector <Particle>& bunch, const double& betgam, const int& pas, string outputpath); |
---|
47 | |
---|
48 | |
---|
49 | //displays the parameters of the collimator |
---|
50 | |
---|
51 | void affiche(); |
---|
52 | |
---|
53 | |
---|
54 | //================================================= Attributs ===================================================== |
---|
55 | |
---|
56 | static int crystaloutflag; //flag to indicate if we have to built a new file for the crystal output |
---|
57 | |
---|
58 | |
---|
59 | }; |
---|
60 | |
---|
61 | #endif |
---|