10{
13
16
17 int nphi[6];
18 nphi[0]=64;
19 nphi[1]=64;
20 nphi[2]=80;
21 nphi[3]=80;
22 nphi[4]=96;
23 nphi[5]=96;
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 ofstream out;
48 out.open("barrel.txt");
49 for(int part=1;part<2;part++) {
50 for(int phi=0;phi<120;phi++) {
51 for(int theta=0;theta<44;theta++) {
52
54 if((phi==31||phi==30)&&(theta==21||theta==22)) {
55 std::cout<<id<<"\t"<<phi<<"\t"<<theta<<endl;
57 <<
"\n-------------\n"<<aROOTGeo.
GetCrystal(
id)<<
"\n"<<std::endl;
58 }
59 out<<part<<"\t"<<phi<<"\t"<<theta<<"\t"
62 }
63 }
64 }
65 out.close();
66}
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