35 EdbView *edbView = edbRun.GetView();
41 int stack_,module,tb,
plate,pver;
48 double ax,ay,x,y,dx,dy;
49 double gap,emulsion,base,shrink;
51 double axc,ayc,xc,yc,axs,ays,xs,ys;
56 FILE *f_fxx = fopen(
file,
"r");
58 fgets(str,
sizeof(str),f_fxx);
59 fgets(str,
sizeof(str),f_fxx);
60 fgets(str,
sizeof(str),f_fxx);
65 while(fgets(str,
sizeof(str),f_fxx)) {
67 if( sscanf(str,
"%d %d %ld %lf %lf %lf %lf %d %lf %d %d %d",
68 &n1,&runevent,&scanmode,&axc,&ayc,&xc,&yc,&num,&dr,&f1,&f2,&f3) != 12 ) {
69 printf(
"unexpected format in &f (view line): %s\n",str);
81 if( !fgets(str,
sizeof(str),f_fxx) )
break;
82 if( sscanf(str,
"%d %d %d %lf %lf %lf %lf %lf %lf",
83 &nn,&re,&ph,&ax,&ay,&x,&y,&dx,&dy) != 9) {
84 printf(
"unexpected format in &f (seg line): %s\n",str);
88 edbSegment->
Set(x-xc, y-yc, dx, ax, ay, dy-dx, tob, ph);
93 edbRun.AddView(edbView);
94 printf(
"view %d \t Area = %d\n",nviews,runevent);
TTree * t
Definition: check_shower.C:4
Definition: EdbSegment.h:61
void Set(float x, float y, float z, float tx, float ty, float dz=0, int side=0, int puls=0, int id=0)
Definition: EdbSegment.cxx:92
Definition: EdbView.h:134
EdbViewHeader * GetHeader() const
Definition: EdbView.h:163
EdbSegment * AddSegment(float x, float y, float z, float tx, float ty, float dz=0, int side=0, int puls=0, int id=-1)
Definition: EdbView.h:231
void Clear()
Definition: EdbView.cxx:79
float xmin
Definition: emthickness.cpp:61
float ymin
Definition: emthickness.cpp:63
float xmax
Definition: emthickness.cpp:61
float ymax
Definition: emthickness.cpp:63
EdbRun * run
Definition: check_raw.C:38
Int_t plate
Definition: merge_Energy_SytematicSources_Electron.C:1
int event
Definition: shower_tr.C:25
p
Definition: testBGReduction_AllMethods.C:8
EdbSegP * s
Definition: tlg2pattern.C:32
TFile * file
Definition: write_pvr.C:3