5 float X0,
Y0, DDX=500, DDY=500;
11 X0=
s->
X->Reference+125000/2.;
12 Y0=
s->
Y->Reference+100000/2.;
13 Zmid=
s->
Z->Reference+
s->EmBotLayer+
s->EmBase/2.;
14 s->
Z->PosMove(Zmid,1e6,1e6);
15 s->
Z->WaitForMoveComplete(1e4);
30 Zmid=
s->
Z->Reference+
s->EmBotLayer+
s->EmBase/2.;
31 s->
Z->PosMove(Zmid,1e6,1e6);
32 s->
Z->WaitForMoveComplete(1e4);
42 printf(
"************************* Tuning complete. taking data **************************\n");
45 if(!
PC->
GetLoadedId(&id0,&id1,&id2,&id3)) {printf(
"No plate is loaded! Load the plate and re-start the application.\n");
return 0;};
47 sprintf(line,
"z:\\Qcheck\\dat%dem%d.%d.%d.%d",date->GetDate(),id0,id1,id2,id3);
51 Run(
false,
X0,
Y0, DDX, DDY,
"dat.root",
false);
52 Run(
false,
X0-20000,
Y0-20000, DDX, DDY,
"dat1.root",
false);
53 Run(
false,
X0-20000,
Y0+20000, DDX, DDY,
"dat2.root",
false);
54 Run(
false,
X0+20000,
Y0-20000, DDX, DDY,
"dat3.root",
false);
55 Run(
false,
X0+20000,
Y0+20000, DDX, DDY,
"dat4.root",
false);
56 printf(
"************************* Analysing data **************************\n");
69 file=
new TFile(
"dat.root",
"READ");
70 TTree* Views=(TTree*)
file->Get(
"Views");
74 Views->Draw(
"clusters.eFrame>>ht",
"eSide==1");
75 ht->Scale(1./Views->GetEntries());
78 Views->Draw(
"clusters.eFrame>>ht1",
"eSide==0");
79 ht1->Scale(1./Views->GetEntries());
81 c->SaveAs(
"clust.gif");
83 file=
new TFile(
"dat1.root",
"READ");
84 TTree* Views=(TTree*)
file->Get(
"Views");
88 Views->Draw(
"clusters.eFrame>>ht",
"eSide==1");
89 ht->Scale(1./Views->GetEntries());
92 Views->Draw(
"clusters.eFrame>>ht1",
"eSide==0");
93 ht1->Scale(1./Views->GetEntries());
95 c->SaveAs(
"clust1.gif");
97 file=
new TFile(
"dat2.root",
"READ");
98 TTree* Views=(TTree*)
file->Get(
"Views");
102 Views->Draw(
"clusters.eFrame>>ht",
"eSide==1");
103 ht->Scale(1./Views->GetEntries());
106 Views->Draw(
"clusters.eFrame>>ht1",
"eSide==0");
107 ht1->Scale(1./Views->GetEntries());
109 c->SaveAs(
"clust2.gif");
111 file=
new TFile(
"dat3.root",
"READ");
112 TTree* Views=(TTree*)
file->Get(
"Views");
116 Views->Draw(
"clusters.eFrame>>ht",
"eSide==1");
117 ht->Scale(1./Views->GetEntries());
120 Views->Draw(
"clusters.eFrame>>ht1",
"eSide==0");
121 ht1->Scale(1./Views->GetEntries());
123 c->SaveAs(
"clust3.gif");
125 file=
new TFile(
"dat4.root",
"READ");
126 TTree* Views=(TTree*)
file->Get(
"Views");
130 Views->Draw(
"clusters.eFrame>>ht",
"eSide==1");
131 ht->Scale(1./Views->GetEntries());
134 Views->Draw(
"clusters.eFrame>>ht1",
"eSide==0");
135 ht1->Scale(1./Views->GetEntries());
137 c->SaveAs(
"clust4.gif");
int Threshold
Definition: AcqOdyssey.h:174
bool ApplyFIRF
Definition: AcqOdyssey.h:172
bool SubtractBG
Definition: AcqOdyssey.h:171
bool ApplyGainCorr
Definition: AcqOdyssey.h:173
int GetLoadedId(int *id0=NULL, int *id1=NULL, int *id2=NULL, int *id3=NULL)
Definition: AcqSerialPlateChanger.cxx:576
Float_t X() const
Definition: EdbSegP.h:170
Float_t Z() const
Definition: EdbSegP.h:150
Float_t Y() const
Definition: EdbSegP.h:171
float X0
Definition: emthickness.cpp:69
float Y0
Definition: emthickness.cpp:70
int hwinit()
Definition: hwinit.C:72
AcqOdyssey * o
Definition: hwinit.C:2
int ThrTop
Definition: hwinit.C:11
AcqSerialPlateChanger * PC
Definition: hwinit.C:5
int finefocus(int clu_thre=300, float fineness=4.)
Definition: init.C:109
int tunelight()
Definition: init.C:244
xy(float X, float Y)
Definition: init.C:303
homeall()
Definition: init.C:324
takebggchere()
Definition: init.C:178
void Run(bool AbsCoord=false, float X0, float Y0, float DDX, float DDY, const char *File, bool Images=false)
Definition: run.C:208
EdbSegP * s
Definition: tlg2pattern.C:32
TFile * file
Definition: write_pvr.C:3