#include enum VAR {NONE=-1, SI, SLOW, FAST, TOF30, TOFSi}; enum egain {LG,HG}; void Test_STA_01_0424 (){ using namespace sta; ///Test is test :P LandEvent evt; for(int i=0; i<10; i++){ evt.AddHit(10*i, 10*i, 10*i, 10*i, i, i); } int n = evt.GetNhit(); cout << n << endl; STA::AVE(&evt); for(int i=0; iIsPrimary()){ cout << evt[i]->GetCharge()<< " "; /// std::cout << evt[i]->GetPosition()<< endl; std::cout << evt[i]->GetPosition().X << " " << evt[i]->GetPosition().Y << " " << evt[i]->GetPosition().Z << endl; } } void Test_STA_01_0425 ( void ) { sta::Vector v; } void STA_tests_0424(){ cout << "important: uncomment the only branches you want to write around line 23 of TRootEvent/TRootEvent.cxx!"<Load("libMbs"); gSystem->Load("libMbsAPI"); gSystem->Load("libTLANDEvent"); gSystem->Load("libTRootEvent"); gSystem->Load("libSTA"); Test_STA_01_0424(); ///Test_STA_01_0425(); }