/[PAMELA software]/quicklook/QLflightTmtc_Header/PacketScan.cpp
ViewVC logotype

Diff of /quicklook/QLflightTmtc_Header/PacketScan.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.2 by pam-rm2, Sat Jun 17 11:02:09 2006 UTC revision 1.4 by pam-rm2, Thu Mar 8 09:53:45 2007 UTC
# Line 1  Line 1 
   
1  /**  /**
2  * Packet Scan  * Packet Scan
3  * author  Marcelli  * author  Marcelli
# Line 30  Line 29 
29  * For compilation:  * For compilation:
30  *     Added function "int main(int argc, char* argv[])"  *     Added function "int main(int argc, char* argv[])"
31  *  *
32    * Version 1.7
33    * Date 7 March 2007 - Malvezzi
34    *
35    * Description: to read correctly the OBT changed the type of time variables from signed to unsigned
36    *
37  *  *
38  * Description: To show packet type recorded by PAMELA (Packet type vs. OBT)  * Description: To show packet type recorded by PAMELA (Packet type vs. OBT)
39  *  *
# Line 42  Line 46 
46  */  */
47    
48    
49    #include <stdio.h>
50    #include <string.h>
51  #include <fstream>  #include <fstream>
52  #include <sstream>  #include <sstream>
53  #include <iostream>  #include <iostream>
# Line 60  Line 65 
65    
66  using namespace std;  using namespace std;
67    
68  void PacketScan(TString base, TString outDir, TString format)  void PacketScan(TString base, TString outDir, TString format){
 {  
69    
70    TFile *file = new TFile(base.Data());    TFile *file = new TFile(base.Data());
71        
# Line 78  void PacketScan(TString base, TString ou Line 82  void PacketScan(TString base, TString ou
82    pamela::EventHeader *eh = 0;    pamela::EventHeader *eh = 0;
83    pamela::PscuHeader *ph = 0;    pamela::PscuHeader *ph = 0;
84        
85    Float_t obt[1]={0};    ULong_t utile=0;
86    Float_t id[1]={0};    Double_t obt[1]={0};
87      Double_t id[1]={0};
88    Int_t cont[48]={0};    Int_t cont[48]={0};
89    std::stringstream oss, oss1, oss2, oss3;    std::stringstream oss, oss1, oss2, oss3;
90    
# Line 110  void PacketScan(TString base, TString ou Line 115  void PacketScan(TString base, TString ou
115    TMultiGraph *mg3 = new TMultiGraph();    TMultiGraph *mg3 = new TMultiGraph();
116    mg3->SetTitle(oss.str().c_str());    mg3->SetTitle(oss.str().c_str());
117    TLegend *leg3 = new TLegend(0.87,0.65,0.99,0.99, "");    TLegend *leg3 = new TLegend(0.87,0.65,0.99,0.99, "");
     
118    
119      TObject *key = new TObject;
120      const char *name;
121      char *SoftInfo="SoftInfo";
122    for (Int_t i=0; i<numkey; i++){    for (Int_t i=0; i<numkey; i++){
123      TObject *key = list->At(i);      key = list->At(i);
124      char *name=(char *)(key->GetName());      name=(char *)(key->GetName());
125        if(strcmp(name,SoftInfo)==0)continue;
126      TTree* tr = (TTree*)file->Get(name);      TTree* tr = (TTree*)file->Get(name);
127      while((tr->IsZombie())){      if (tr->IsZombie()) continue;
       i++;  
       TObject *key = list->At(i);  
       char *name=(char *)(key->GetName());  
       TTree* tr = (TTree*)file->Get(name);  
     }  
128      Long64_t nevents = tr->GetEntries();      Long64_t nevents = tr->GetEntries();
129      const Int_t size = nevents;      const Int_t size = nevents;
130      tr->SetBranchAddress("Header", &eh);        tr->SetBranchAddress("Header", &eh);  
131      for (Int_t j = 0; j < size; j++){      for (Int_t j = 0; j < size; j++){
132        tr->GetEntry(j);        tr->GetEntry(j);
133        ph = eh->GetPscuHeader();        ph = eh->GetPscuHeader();
134        obt[0]= ph->GetOrbitalTime();        utile=ph->GetOrbitalTime();
135          obt[0]= utile;
136        id[0]=(ph->GetPacketId1());        id[0]=(ph->GetPacketId1());
137        Int_t type = (int)id[0];        Int_t type = (int)id[0];
138        switch(type){        switch(type){
# Line 137  void PacketScan(TString base, TString ou Line 141  void PacketScan(TString base, TString ou
141          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
142          graph->SetMarkerColor(2);          graph->SetMarkerColor(2);
143          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
144          graph->SetMarkerSize(0.7);          graph->SetMarkerSize(0.6);
145          mg1->Add(graph);          mg1->Add(graph);
146          if (cont[0]==0)  leg1b->AddEntry(graph,"PhysEndRun (0x07)","p");          if (cont[0]==0)  leg1b->AddEntry(graph,"PhysEndRun (0x07)","p");
147          cont[0]++;          cont[0]++;
# Line 147  void PacketScan(TString base, TString ou Line 151  void PacketScan(TString base, TString ou
151          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
152          graph->SetMarkerColor(2);          graph->SetMarkerColor(2);
153          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
154          graph->SetMarkerSize(0.6);          graph->SetMarkerSize(0.5);
155          mg1->Add(graph);          mg1->Add(graph);
156          if (cont[1]==0)  leg1b->AddEntry(graph,"Physics (0x10)","p");          if (cont[1]==0)  leg1b->AddEntry(graph,"Physics (0x10)","p");
157          cont[1]++;          cont[1]++;
# Line 157  void PacketScan(TString base, TString ou Line 161  void PacketScan(TString base, TString ou
161          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
162          graph->SetMarkerColor(4);          graph->SetMarkerColor(4);
163          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
164          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
165          mg1->Add(graph);          mg1->Add(graph);
166          if (cont[2]==0)  leg1b->AddEntry(graph,"RunHeader/Trailer (0x20/21)","p");          if (cont[2]==0)  leg1b->AddEntry(graph,"RunHeader/Trailer (0x20/21)","p");
167          cont[2]++;          cont[2]++;
# Line 167  void PacketScan(TString base, TString ou Line 171  void PacketScan(TString base, TString ou
171          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
172          graph->SetMarkerColor(4);          graph->SetMarkerColor(4);
173          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
174          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
175          mg1->Add(graph);          mg1->Add(graph);
176          if (cont[2]==0)  leg1b->AddEntry(graph,"RunHeader/Trailer (0x20/21)","p");          if (cont[2]==0)  leg1b->AddEntry(graph,"RunHeader/Trailer (0x20/21)","p");
177          cont[2]++;          cont[2]++;
# Line 178  void PacketScan(TString base, TString ou Line 182  void PacketScan(TString base, TString ou
182          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
183          graph->SetMarkerColor(2);          graph->SetMarkerColor(2);
184          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
185          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
186          mg1->Add(graph);          mg1->Add(graph);
187          if (cont[23]==0)  leg1b->AddEntry(graph,"CalibCalPulse1 (0x08)","p");          if (cont[23]==0)  leg1b->AddEntry(graph,"CalibCalPulse1 (0x08)","p");
188          cont[23]++;          cont[23]++;
# Line 188  void PacketScan(TString base, TString ou Line 192  void PacketScan(TString base, TString ou
192          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
193          graph->SetMarkerColor(3);          graph->SetMarkerColor(3);
194          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
195          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
196          mg1->Add(graph);          mg1->Add(graph);
197          if (cont[24]==0)  leg1b->AddEntry(graph,"CalibCalPulse2 (0x09)","p");          if (cont[24]==0)  leg1b->AddEntry(graph,"CalibCalPulse2 (0x09)","p");
198          cont[24]++;          cont[24]++;
# Line 198  void PacketScan(TString base, TString ou Line 202  void PacketScan(TString base, TString ou
202          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
203          graph->SetMarkerColor(4);          graph->SetMarkerColor(4);
204          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
205          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
206          mg1->Add(graph);          mg1->Add(graph);
207          if (cont[25]==0)  leg1b->AddEntry(graph,"CalibTrkBoth (0x11)","p");          if (cont[25]==0)  leg1b->AddEntry(graph,"CalibTrkBoth (0x11)","p");
208          cont[25]++;          cont[25]++;
# Line 208  void PacketScan(TString base, TString ou Line 212  void PacketScan(TString base, TString ou
212          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
213          graph->SetMarkerColor(5);          graph->SetMarkerColor(5);
214          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
215          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
216          mg1->Add(graph);          mg1->Add(graph);
217          if (cont[26]==0)  leg1b->AddEntry(graph,"CalibTrk1 (0x12)","p");          if (cont[26]==0)  leg1b->AddEntry(graph,"CalibTrk1 (0x12)","p");
218          cont[26]++;          cont[26]++;
# Line 218  void PacketScan(TString base, TString ou Line 222  void PacketScan(TString base, TString ou
222          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
223          graph->SetMarkerColor(6);          graph->SetMarkerColor(6);
224          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
225          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
226          mg1->Add(graph);          mg1->Add(graph);
227          if (cont[27]==0)  leg1b->AddEntry(graph,"CalibTrk2 (0x13)","p");          if (cont[27]==0)  leg1b->AddEntry(graph,"CalibTrk2 (0x13)","p");
228          cont[27]++;          cont[27]++;
# Line 228  void PacketScan(TString base, TString ou Line 232  void PacketScan(TString base, TString ou
232          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
233          graph->SetMarkerColor(30);          graph->SetMarkerColor(30);
234          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
235          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
236          mg1->Add(graph);          mg1->Add(graph);
237          if (cont[28]==0)  leg1b->AddEntry(graph,"Calib_Cal (0x1d)","p");          if (cont[28]==0)  leg1b->AddEntry(graph,"Calib_Cal (0x1d)","p");
238          cont[28]++;          cont[28]++;
# Line 238  void PacketScan(TString base, TString ou Line 242  void PacketScan(TString base, TString ou
242          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
243          graph->SetMarkerColor(9);          graph->SetMarkerColor(9);
244          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
245          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
246          mg1->Add(graph);          mg1->Add(graph);
247          if (cont[29]==0)  leg1b->AddEntry(graph,"CalibTof (0x16)","p");          if (cont[29]==0)  leg1b->AddEntry(graph,"CalibTof (0x16)","p");
248          cont[29]++;          cont[29]++;
# Line 248  void PacketScan(TString base, TString ou Line 252  void PacketScan(TString base, TString ou
252          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
253          graph->SetMarkerColor(7);          graph->SetMarkerColor(7);
254          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
255          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
256          mg1->Add(graph);          mg1->Add(graph);
257          if (cont[30]==0)  leg1b->AddEntry(graph,"CalibS4 (0x17)","p");          if (cont[30]==0)  leg1b->AddEntry(graph,"CalibS4 (0x17)","p");
258          cont[30]++;          cont[30]++;
# Line 258  void PacketScan(TString base, TString ou Line 262  void PacketScan(TString base, TString ou
262          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
263          graph->SetMarkerColor(49);          graph->SetMarkerColor(49);
264          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
265          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
266          mg1->Add(graph);          mg1->Add(graph);
267          if (cont[31]==0)  leg1b->AddEntry(graph,"CalibCalPed (0x18)","p");          if (cont[31]==0)  leg1b->AddEntry(graph,"CalibCalPed (0x18)","p");
268          cont[31]++;          cont[31]++;
269          break;          break;
270        }        }
271        case 25:{        case 25:{
272          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1,obt,id);
273          graph->SetMarkerColor(33);          graph->SetMarkerColor(33);
274          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
275          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
276          mg1->Add(graph);          mg1->Add(graph);
277          if (cont[32]==0)  leg1b->AddEntry(graph,"Calib1_Ac1 (0x19)","p");          if (cont[32]==0)  leg1b->AddEntry(graph,"Calib1_Ac1 (0x19)","p");
278          cont[32]++;          cont[32]++;
# Line 278  void PacketScan(TString base, TString ou Line 282  void PacketScan(TString base, TString ou
282          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
283          graph->SetMarkerColor(21);          graph->SetMarkerColor(21);
284          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
285          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
286          mg1->Add(graph);          mg1->Add(graph);
287          if (cont[33]==0)  leg1b->AddEntry(graph,"Calib2_Ac1 (0x1a)","p");          if (cont[33]==0)  leg1b->AddEntry(graph,"Calib2_Ac1 (0x1a)","p");
288          cont[33]++;          cont[33]++;
# Line 288  void PacketScan(TString base, TString ou Line 292  void PacketScan(TString base, TString ou
292          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
293          graph->SetMarkerColor(16);          graph->SetMarkerColor(16);
294          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
295          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
296          mg1->Add(graph);          mg1->Add(graph);
297          if (cont[34]==0)  leg1b->AddEntry(graph,"Calib1_Ac2 (0x1b)","p");          if (cont[34]==0)  leg1b->AddEntry(graph,"Calib1_Ac2 (0x1b)","p");
298          cont[34]++;          cont[34]++;
# Line 298  void PacketScan(TString base, TString ou Line 302  void PacketScan(TString base, TString ou
302          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
303          graph->SetMarkerColor(37);          graph->SetMarkerColor(37);
304          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
305          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
306          mg1->Add(graph);          mg1->Add(graph);
307          if (cont[35]==0)  leg1b->AddEntry(graph,"Calib2_Ac2 (0x1c)","p");          if (cont[35]==0)  leg1b->AddEntry(graph,"Calib2_Ac2 (0x1c)","p");
308          cont[35]++;          cont[35]++;
# Line 308  void PacketScan(TString base, TString ou Line 312  void PacketScan(TString base, TString ou
312          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
313          graph->SetMarkerColor(41);          graph->SetMarkerColor(41);
314          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
315          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
316          mg1->Add(graph);          mg1->Add(graph);
317          if (cont[36]==0)  leg1b->AddEntry(graph,"CalibHeader/Trailer (0x22/23)","p");          if (cont[36]==0)  leg1b->AddEntry(graph,"CalibHeader/Trailer (0x22/23)","p");
318          cont[36]++;          cont[36]++;
# Line 318  void PacketScan(TString base, TString ou Line 322  void PacketScan(TString base, TString ou
322          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
323          graph->SetMarkerColor(41);          graph->SetMarkerColor(41);
324          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
325          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
326          mg1->Add(graph);          mg1->Add(graph);
327          if (cont[36]==0)  leg1b->AddEntry(graph,"CalibHeader/Trailer (0x22/23)","p");          if (cont[36]==0)  leg1b->AddEntry(graph,"CalibHeader/Trailer (0x22/23)","p");
328          cont[36]++;          cont[36]++;
# Line 329  void PacketScan(TString base, TString ou Line 333  void PacketScan(TString base, TString ou
333          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
334          graph->SetMarkerColor(20);          graph->SetMarkerColor(20);
335          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
336          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
337          mg1->Add(graph);          mg1->Add(graph);
338          if (cont[4]==0)  leg1b->AddEntry(graph,"InitHeader/Trailer (0x24/25)","p");          if (cont[4]==0)  leg1b->AddEntry(graph,"InitHeader/Trailer (0x24/25)","p");
339          cont[4]++;          cont[4]++;
# Line 339  void PacketScan(TString base, TString ou Line 343  void PacketScan(TString base, TString ou
343          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
344          graph->SetMarkerColor(20);          graph->SetMarkerColor(20);
345          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
346          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.2);
347          mg1->Add(graph);          mg1->Add(graph);
348          if (cont[4]==0)  leg1b->AddEntry(graph,"InitHeader/Trailer (0x24/25)","p");          if (cont[4]==0)  leg1b->AddEntry(graph,"InitHeader/Trailer (0x24/25)","p");
349          cont[4]++;          cont[4]++;
# Line 349  void PacketScan(TString base, TString ou Line 353  void PacketScan(TString base, TString ou
353          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
354          graph->SetMarkerColor(3);          graph->SetMarkerColor(3);
355          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
356          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
357          mg2->Add(graph);          mg2->Add(graph);
358          if (cont[38]==0)  leg2->AddEntry(graph,"EventTrk (0x30)","p");          if (cont[38]==0)  leg2->AddEntry(graph,"EventTrk (0x30)","p");
359          cont[38]++;          cont[38]++;
# Line 360  void PacketScan(TString base, TString ou Line 364  void PacketScan(TString base, TString ou
364          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
365          graph->SetMarkerColor(2);          graph->SetMarkerColor(2);
366          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
367          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
368          mg2->Add(graph);          mg2->Add(graph);
369          if (cont[39]==0)  leg2->AddEntry(graph,"Test_trk (0x40)","p");          if (cont[39]==0)  leg2->AddEntry(graph,"Test_trk (0x40)","p");
370          cont[39]++;          cont[39]++;
# Line 370  void PacketScan(TString base, TString ou Line 374  void PacketScan(TString base, TString ou
374          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
375          graph->SetMarkerColor(3);          graph->SetMarkerColor(3);
376          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
377          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
378          mg2->Add(graph);          mg2->Add(graph);
379          if (cont[40]==0)  leg2->AddEntry(graph,"Test_Tof (0x41)","p");          if (cont[40]==0)  leg2->AddEntry(graph,"Test_Tof (0x41)","p");
380          cont[40]++;          cont[40]++;
# Line 381  void PacketScan(TString base, TString ou Line 385  void PacketScan(TString base, TString ou
385          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
386          graph->SetMarkerColor(3);          graph->SetMarkerColor(3);
387          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
388          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
389          mg2->Add(graph);          mg2->Add(graph);
390          if (cont[41]==0)  leg2->AddEntry(graph,"Log (0x50)","p");          if (cont[41]==0)  leg2->AddEntry(graph,"Log (0x50)","p");
391          cont[41]++;          cont[41]++;
# Line 392  void PacketScan(TString base, TString ou Line 396  void PacketScan(TString base, TString ou
396          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
397          graph->SetMarkerColor(2);          graph->SetMarkerColor(2);
398          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
399          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
400          mg2->Add(graph);          mg2->Add(graph);
401          if (cont[42]==0)  leg2->AddEntry(graph,"VarDump (0X51)","p");          if (cont[42]==0)  leg2->AddEntry(graph,"VarDump (0X51)","p");
402          cont[42]++;          cont[42]++;
# Line 402  void PacketScan(TString base, TString ou Line 406  void PacketScan(TString base, TString ou
406          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
407          graph->SetMarkerColor(3);          graph->SetMarkerColor(3);
408          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
409          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
410          mg2->Add(graph);          mg2->Add(graph);
411          if (cont[43]==0)  leg2->AddEntry(graph,"ArrDump (x52)","p");          if (cont[43]==0)  leg2->AddEntry(graph,"ArrDump (x52)","p");
412          cont[43]++;          cont[43]++;
# Line 412  void PacketScan(TString base, TString ou Line 416  void PacketScan(TString base, TString ou
416          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
417          graph->SetMarkerColor(4);          graph->SetMarkerColor(4);
418          graph->SetMarkerStyle(23);          graph->SetMarkerStyle(23);
419          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
420          mg2->Add(graph);          mg2->Add(graph);
421          if (cont[44]==0)  leg2->AddEntry(graph,"TabDump (0x53)","p");          if (cont[44]==0)  leg2->AddEntry(graph,"TabDump (0x53)","p");
422          cont[44]++;          cont[44]++;
# Line 423  void PacketScan(TString base, TString ou Line 427  void PacketScan(TString base, TString ou
427          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
428          graph->SetMarkerColor(2);          graph->SetMarkerColor(2);
429          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
430          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
431          mg2->Add(graph);          mg2->Add(graph);
432          if (cont[45]==0)  leg2->AddEntry(graph,"Tmtc (0x54)","p");          if (cont[45]==0)  leg2->AddEntry(graph,"Tmtc (0x54)","p");
433          cont[45]++;          cont[45]++;
# Line 434  void PacketScan(TString base, TString ou Line 438  void PacketScan(TString base, TString ou
438          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
439          graph->SetMarkerColor(4);          graph->SetMarkerColor(4);
440          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
441          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
442          mg2->Add(graph);          mg2->Add(graph);
443          if (cont[46]==0)  leg2->AddEntry(graph,"Mcmd (0x55)","p");          if (cont[46]==0)  leg2->AddEntry(graph,"Mcmd (0x55)","p");
444          cont[46]++;          cont[46]++;
# Line 444  void PacketScan(TString base, TString ou Line 448  void PacketScan(TString base, TString ou
448          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
449          graph->SetMarkerColor(20);          graph->SetMarkerColor(20);
450          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
451          graph->SetMarkerSize(1);          graph->SetMarkerSize(0.9);
452          mg2->Add(graph);          mg2->Add(graph);
453          if (cont[22]==0) leg2->AddEntry(graph,"ForceFECmd (0x60)","p");          if (cont[22]==0) leg2->AddEntry(graph,"ForceFECmd (0x60)","p");
454          cont[22]++;          cont[22]++;
# Line 454  void PacketScan(TString base, TString ou Line 458  void PacketScan(TString base, TString ou
458          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
459          graph->SetMarkerColor(1);          graph->SetMarkerColor(1);
460          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
461          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.9);
462          mg3->Add(graph);          mg3->Add(graph);
463          if (cont[6]==0)  leg3->AddEntry(graph,"Ac1Init (0x70)","p");          if (cont[6]==0)  leg3->AddEntry(graph,"Ac1Init (0x70)","p");
464          cont[6]++;          cont[6]++;
# Line 464  void PacketScan(TString base, TString ou Line 468  void PacketScan(TString base, TString ou
468          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
469          graph->SetMarkerColor(2);          graph->SetMarkerColor(2);
470          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
471          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.9);
472          mg3->Add(graph);          mg3->Add(graph);
473          if (cont[7]==0)  leg3->AddEntry(graph,"CalInit (0x71)","p");          if (cont[7]==0)  leg3->AddEntry(graph,"CalInit (0x71)","p");
474          cont[7]++;          cont[7]++;
# Line 474  void PacketScan(TString base, TString ou Line 478  void PacketScan(TString base, TString ou
478          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
479          graph->SetMarkerColor(3);          graph->SetMarkerColor(3);
480          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
481          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.9);
482          mg3->Add(graph);          mg3->Add(graph);
483          if (cont[8]==0)  leg3->AddEntry(graph,"TrkInit (0x72)","p");          if (cont[8]==0)  leg3->AddEntry(graph,"TrkInit (0x72)","p");
484          cont[8]++;          cont[8]++;
# Line 484  void PacketScan(TString base, TString ou Line 488  void PacketScan(TString base, TString ou
488          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
489          graph->SetMarkerColor(4);          graph->SetMarkerColor(4);
490          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
491          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.9);
492          mg3->Add(graph);          mg3->Add(graph);
493          if (cont[9]==0)  leg3->AddEntry(graph,"TofInit (0x73)","p");          if (cont[9]==0)  leg3->AddEntry(graph,"TofInit (0x73)","p");
494          cont[9]++;          cont[9]++;
# Line 494  void PacketScan(TString base, TString ou Line 498  void PacketScan(TString base, TString ou
498          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
499          graph->SetMarkerColor(5);          graph->SetMarkerColor(5);
500          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
501          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.9);
502          mg3->Add(graph);          mg3->Add(graph);
503          if (cont[10]==0)  leg3->AddEntry(graph,"TrgInit (0x74)","p");          if (cont[10]==0)  leg3->AddEntry(graph,"TrgInit (0x74)","p");
504          cont[10]++;          cont[10]++;
# Line 504  void PacketScan(TString base, TString ou Line 508  void PacketScan(TString base, TString ou
508          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
509          graph->SetMarkerColor(6);          graph->SetMarkerColor(6);
510          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
511          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.9);
512          mg3->Add(graph);          mg3->Add(graph);
513          if (cont[11]==0)  leg3->AddEntry(graph,"NdInit (0x75)","p");          if (cont[11]==0)  leg3->AddEntry(graph,"NdInit (0x75)","p");
514          cont[11]++;          cont[11]++;
# Line 514  void PacketScan(TString base, TString ou Line 518  void PacketScan(TString base, TString ou
518          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
519          graph->SetMarkerColor(7);          graph->SetMarkerColor(7);
520          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
521          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.9);
522          mg3->Add(graph);          mg3->Add(graph);
523          if (cont[12]==0)  leg3->AddEntry(graph,"S4Init (0x76)","p");          if (cont[12]==0)  leg3->AddEntry(graph,"S4Init (0x76)","p");
524          cont[12]++;          cont[12]++;
# Line 524  void PacketScan(TString base, TString ou Line 528  void PacketScan(TString base, TString ou
528          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
529          graph->SetMarkerColor(32);          graph->SetMarkerColor(32);
530          graph->SetMarkerStyle(22);          graph->SetMarkerStyle(22);
531          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.9);
532          mg3->Add(graph);          mg3->Add(graph);
533          if (cont[13]==0)  leg3->AddEntry(graph,"Ac2Init (0x77)","p");          if (cont[13]==0)  leg3->AddEntry(graph,"Ac2Init (0x77)","p");
534          cont[13]++;          cont[13]++;
# Line 535  void PacketScan(TString base, TString ou Line 539  void PacketScan(TString base, TString ou
539          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
540          graph->SetMarkerColor(1);          graph->SetMarkerColor(1);
541          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
542          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.7);
543          mg3->Add(graph);          mg3->Add(graph);
544          if (cont[14]==0)  leg3->AddEntry(graph,"CalAlarm (0x81)","p");          if (cont[14]==0)  leg3->AddEntry(graph,"CalAlarm (0x81)","p");
545          cont[14]++;          cont[14]++;
# Line 545  void PacketScan(TString base, TString ou Line 549  void PacketScan(TString base, TString ou
549          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
550          graph->SetMarkerColor(42);          graph->SetMarkerColor(42);
551          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
552          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.7);
553          mg3->Add(graph);          mg3->Add(graph);
554          if (cont[15]==0) leg3->AddEntry(graph,"Ac1Alarm (0x82)","p");          if (cont[15]==0) leg3->AddEntry(graph,"Ac1Alarm (0x82)","p");
555          cont[15]++;          cont[15]++;
# Line 555  void PacketScan(TString base, TString ou Line 559  void PacketScan(TString base, TString ou
559          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
560          graph->SetMarkerColor(3);          graph->SetMarkerColor(3);
561          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
562          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.7);
563          mg3->Add(graph);          mg3->Add(graph);
564          if (cont[16]==0) leg3->AddEntry(graph,"TrkAlarm (0x83)","p");          if (cont[16]==0) leg3->AddEntry(graph,"TrkAlarm (0x83)","p");
565          cont[16]++;          cont[16]++;
# Line 565  void PacketScan(TString base, TString ou Line 569  void PacketScan(TString base, TString ou
569          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
570          graph->SetMarkerColor(4);          graph->SetMarkerColor(4);
571          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
572          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.7);
573          mg3->Add(graph);          mg3->Add(graph);
574          if (cont[17]==0) leg3->AddEntry(graph,"TrgAlarm (0x84)","p");          if (cont[17]==0) leg3->AddEntry(graph,"TrgAlarm (0x84)","p");
575          cont[17]++;          cont[17]++;
# Line 575  void PacketScan(TString base, TString ou Line 579  void PacketScan(TString base, TString ou
579          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
580          graph->SetMarkerColor(5);          graph->SetMarkerColor(5);
581          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
582          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.7);
583          mg3->Add(graph);          mg3->Add(graph);
584          if (cont[18]==0) leg3->AddEntry(graph,"TofAlarm (0x85)","p");          if (cont[18]==0) leg3->AddEntry(graph,"TofAlarm (0x85)","p");
585          cont[18]++;          cont[18]++;
# Line 585  void PacketScan(TString base, TString ou Line 589  void PacketScan(TString base, TString ou
589          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
590          graph->SetMarkerColor(6);          graph->SetMarkerColor(6);
591          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
592          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.7);
593          mg3->Add(graph);          mg3->Add(graph);
594          if (cont[19]==0) leg3->AddEntry(graph,"S4Alarm (0x86)","p");          if (cont[19]==0) leg3->AddEntry(graph,"S4Alarm (0x86)","p");
595          cont[19]++;          cont[19]++;
# Line 595  void PacketScan(TString base, TString ou Line 599  void PacketScan(TString base, TString ou
599          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
600          graph->SetMarkerColor(7);          graph->SetMarkerColor(7);
601          graph->SetMarkerStyle(21);          graph->SetMarkerStyle(21);
602          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(0.7);
603          mg3->Add(graph);          mg3->Add(graph);
604          if (cont[20]==0) leg3->AddEntry(graph,"Ac2Alarm (0x88)","p");          if (cont[20]==0) leg3->AddEntry(graph,"Ac2Alarm (0x88)","p");
605          cont[20]++;          cont[20]++;
# Line 625  void PacketScan(TString base, TString ou Line 629  void PacketScan(TString base, TString ou
629          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
630          graph->SetMarkerColor(2);          graph->SetMarkerColor(2);
631          graph->SetMarkerStyle(3);          graph->SetMarkerStyle(3);
632          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.1);
633          mg3->Add(graph);          mg3->Add(graph);
634          if (cont[3]==0) leg3->AddEntry(graph,"TsbT (0xA1)","p");          if (cont[3]==0) leg3->AddEntry(graph,"TsbT (0xA1)","p");
635          cont[3]++;          cont[3]++;
# Line 635  void PacketScan(TString base, TString ou Line 639  void PacketScan(TString base, TString ou
639          TGraph *graph = new TGraph(1, obt, id);          TGraph *graph = new TGraph(1, obt, id);
640          graph->SetMarkerColor(4);          graph->SetMarkerColor(4);
641          graph->SetMarkerStyle(3);          graph->SetMarkerStyle(3);
642          graph->SetMarkerSize(1.3);          graph->SetMarkerSize(1.1);
643          mg3->Add(graph);          mg3->Add(graph);
644          if (cont[5]==0) leg3->AddEntry(graph,"TsbB (0xAB)","p");          if (cont[5]==0) leg3->AddEntry(graph,"TsbB (0xAB)","p");
645          cont[5]++;          cont[5]++;

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23