29{
31 printf("Make views coordinate map, nentr = %d\n",nentr);
32
33
36 Long_t v[3];
38
39 Long_t xx=0, yy=0;
40 float cx = 1000., cy = 1000.;
41 float dx = 400. , dy = 400.;
42 float xv,yv;
43 int mx[9] = {0, 0, 0,-1, 1, -1,-1, 1, 1};
44 int my[9] = {0,-1, 1, 0, 0, -1, 1,-1, 1};
45
46 for(int iv=0; iv<nentr; iv++ ) {
47
51 xx = xv/cx;
52 yy = yv/cx;
53 v[0] = xx;
54 v[1] = yy;
55 v[2] = iv;
56
59 }
62 for( int im=1; im<5; im++ ) {
63 v[0] = ( xv+dx*mx[im] ) / cx;
64 v[1] = ( yv+dy*my[im] ) / cy;
65 if( (v[0] != xx) || (v[1] != yy) )
67 }
68 for( int im=5; im<9; im++ ) {
69 v[0] = ( xv+dx*mx[im] ) / cx;
70 v[1] = ( yv+dy*my[im] ) / cy;
71 if( (v[0] != xx) && (v[1] != yy) )
72
74 }
75
76 }
77
78 }
79
82
85
88
91
92 int areac=0;
93 int nix,niy,nie;
95 for(int ix=0; ix<nix; ix++) {
99 for(int iy=0; iy<niy; iy++) {
102 areac++;
103
105 for(int ie=0; ie<nie; ie++) {
106 v[0]=areac;
109 }
110
113 for(int ie=0; ie<nie; ie++) {
114 v[0] = areac;
117 }
118 }
119 }
120
123
126}
EdbViewHeader * GetEntryHeader(int entry) const
Definition: EdbRun.cxx:521
sort collection with attributes
Definition: TIndexCell.h:19
void PrintStat() const
Definition: TIndexCell.cpp:264
void Sort(Int_t upto=kMaxInt)
Definition: TIndexCell.cpp:539
TIndexCell * Find(Int_t narg, Long_t varg[]) const
Definition: TIndexCell.cpp:613
Int_t Add(Int_t narg, Long_t varg[])
Definition: TIndexCell.cpp:602
void SetName(const char *varlist)
Definition: TIndexCell.cpp:549