16 |
#include <TGraph.h> |
#include <TGraph.h> |
17 |
#include <TH1.h> |
#include <TH1.h> |
18 |
#include <time.h> |
#include <time.h> |
19 |
|
#include <sys/stat.h> |
20 |
|
#include <cstdlib> |
21 |
//#include <utils/yodaUtility.h> |
//#include <utils/yodaUtility.h> |
22 |
|
|
23 |
#define DEBUG 0 |
#define DEBUG 0 |
41 |
|
|
42 |
pamela::anticounter::AnticounterEvent *ace = 0; |
pamela::anticounter::AnticounterEvent *ace = 0; |
43 |
pamela::EventHeader *eh = 0; |
pamela::EventHeader *eh = 0; |
44 |
pamela::PscuHeader *ph = 0; |
// pamela::PscuHeader *ph = 0; |
45 |
TFile *rootFile = new TFile(base); |
TFile *rootFile = new TFile(base); |
46 |
if (rootFile->IsZombie()) |
if (rootFile->IsZombie()) |
47 |
exit(-1); |
exit(-1); |
169 |
for (Int_t i = minevent; i < maxevent; i++){ |
for (Int_t i = minevent; i < maxevent; i++){ |
170 |
|
|
171 |
tr->GetEntry(i); |
tr->GetEntry(i); |
172 |
ph = eh->GetPscuHeader(); |
// ph = eh->GetPscuHeader(); |
173 |
|
|
174 |
for(Int_t card=0;card<2;card++) |
for(Int_t card=0;card<2;card++) |
175 |
{ |
{ |
203 |
|
|
204 |
/***************************************** PLOTTING *****************************************/ |
/***************************************** PLOTTING *****************************************/ |
205 |
|
|
206 |
char *namn = "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK"; |
const char *namn = "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK"; |
207 |
int mposition = 80; |
int mposition = 80; |
208 |
int eposition = 80; |
int eposition = 80; |
209 |
char *figsave1 = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; |
const char *figsave1 = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; |
210 |
char *mystring = "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"; |
const char *mystring = "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"; |
211 |
|
|
212 |
TBox *b1,*b2,*b3,*b4,*b5; |
TBox *b1,*b2,*b3,*b4,*b5; |
213 |
gStyle->SetOptDate(0); |
gStyle->SetOptDate(0); |
424 |
|
|
425 |
// MISC VARIABLES |
// MISC VARIABLES |
426 |
|
|
427 |
UInt_t obt; |
// UInt_t obt; |
428 |
Int_t hitsCARD,hitsCAT,hitsCAS; |
Int_t hitsCARD,hitsCAT,hitsCAS; |
429 |
Int_t interval_cnt = 0; |
Int_t interval_cnt = 0; |
430 |
Int_t paramEvent = 0; |
Int_t paramEvent = 0; |
431 |
Int_t paramEvents; |
Int_t paramEvents; |
432 |
Int_t minevent,maxevent; |
Int_t minevent,maxevent; |
433 |
char *figsave = " "; |
const char *figsave = " "; |
434 |
UShort_t ACheader[2]; |
UShort_t ACheader[2]; |
435 |
ACheader[0]=0xAC11; |
ACheader[0]=0xAC11; |
436 |
ACheader[1]=0xAC22; |
ACheader[1]=0xAC22; |
611 |
|
|
612 |
tr->GetEntry(i); |
tr->GetEntry(i); |
613 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
614 |
obt = ph->GetOrbitalTime(); |
// obt = ph->GetOrbitalTime(); |
615 |
|
|
616 |
hitsCARD=hitsCAT=hitsCAS=0; |
hitsCARD=hitsCAT=hitsCAS=0; |
617 |
|
|
983 |
t->SetTextColor(1); |
t->SetTextColor(1); |
984 |
t->SetTextAlign(12); |
t->SetTextAlign(12); |
985 |
t->SetTextSize(0.035); |
t->SetTextSize(0.035); |
986 |
char *namn = " "; |
const char *namn = " "; |
987 |
|
|
988 |
namn="Singles Rate"; |
namn="Singles Rate"; |
989 |
t->DrawLatex(40.,95,namn); |
t->DrawLatex(40.,95,namn); |
1103 |
//char *namn6 = "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK"; |
//char *namn6 = "KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK"; |
1104 |
int mposition = 80; |
int mposition = 80; |
1105 |
int eposition = 80; |
int eposition = 80; |
1106 |
char *mystring = "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"; |
const char *mystring = "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"; |
1107 |
TString *merr; |
TString *merr; |
1108 |
TBox *b1,*b2; |
TBox *b1,*b2; |
1109 |
|
|