#include "EmcRecGeoSvc/EmcRecGeoSvc.h"
#include "EmcRecGeoSvc/EmcRecROOTGeo.h"
#include "Identifier/EmcID.h"
#include "Identifier/Identifier.h"
#include <fstream>
Go to the source code of this file.
◆ main()
Definition at line 9 of file Emc/EmcRecGeoSvc/test/main.cxx.
9 {
12
15
16 int nphi[6];
17 nphi[0] = 64;
18 nphi[1] = 64;
19 nphi[2] = 80;
20 nphi[3] = 80;
21 nphi[4] = 96;
22 nphi[5] = 96;
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 ofstream out;
47 out.open( "barrel.txt" );
48 for ( int part = 1; part < 2; part++ )
49 {
50 for ( int phi = 0; phi < 120; phi++ )
51 {
52 for ( int theta = 0; theta < 44; theta++ )
53 {
54
56 if ( ( phi == 31 || phi == 30 ) && ( theta == 21 || theta == 22 ) )
57 {
58 std::cout << id << "\t" << phi << "\t" << theta << endl;
59 cout << geo.
GetCrystal(
id ) <<
"\n-------------\n"
61 << std::endl;
62 }
63 out << part << "\t" << phi << "\t" << theta << "\t"
66 }
67 }
68 }
69 out.close();
70}
static Identifier crystal_id(const unsigned int barrel_ec, const unsigned int theta_module, const unsigned int phi_module)
For a single crystal.
EmcRecCrystal GetCrystal(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCCenter(const Identifier &id) const
EmcRecCrystal GetCrystal(const Identifier &id) const
HepPoint3D GetCFrontCenter(const Identifier &id) const
HepPoint3D GetCCenter(const Identifier &id) const