Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-07 08:12:27

0001 void mem_test()
0002 {
0003     TH2F * aaa = new TH2F("aaa","aaa",100,0,100,100,0,100);
0004     aaa -> Fill(3,5);
0005     aaa -> Fill(3,5);
0006     aaa -> Fill(3,5);
0007     aaa -> Fill(3,5);
0008     aaa -> Fill(7,20);
0009 
0010     TH2F * BBB; 
0011     TProfile * CCC;
0012 
0013     for (int i = 0; i < 100; i++)
0014     {
0015         cout<<"trial index : "<<i<<endl;
0016         for (int i1 = 0; i1 < 500; i1++)
0017         {
0018             vector<double> DDD = {1,2,3,4,54,6,7,8,9};
0019             cout<<"test : "<<i1<<endl;
0020             BBB = (TH2F *) aaa -> Clone();
0021             CCC = BBB -> ProfileX("CCC");
0022             // BBB -> Reset("ICESM");
0023             delete BBB;
0024         }
0025 
0026         sleep(1);        
0027 
0028     }
0029 }