00001 00002 { 00003 gROOT->Reset(); 00004 gSystem->Load("./libMicro.so"); 00005 00006 TFile f("analyse.root"); 00007 TTree *t = (TTree*)f.Get("t1"); 00008 MTEvent *evt; 00009 TClonesArray* channels ; 00010 t->SetBranchAddress("MTEvent",&evt); 00011 t->GetEntry(0); 00012 channels = evt->GetChannels(); 00013 00014 //t->Draw("fChannels.fValue","fChannels.fOrder==0 && fChannels.fSoftId>=3000","", 738, 0); 00015 //t->Draw("fChannels.fValue" ,"","", 738, 0); 00016 //t->Draw("fChannels.fValue","fChannels.fOrder==20","", 738, 0); 00017 //t->Draw("fChannels.fx","","", 738, 0); 00018 00019 cout << evt->GetTimestamp() << endl; 00020 cout << evt->GetTemperature() << endl; 00021 cout << evt->GetPressure() << endl; 00022 00023 00024 00025 }