GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CorrSpaceWrite.C
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998, Agata Experiment, All rights reserved. *
3  * *
4  * Author: The Agata Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
15 
16 
17 //
18 //
19 #if !defined(__CINT__) || defined(__MAKECINT__)
20 
21 #include <Riostream.h>
22 #include "TFile.h"
23 #include "TMath.h"
24 #include "TRandom.h"
25 #include "TTree.h"
26 #include "TH2F.h"
27 #include "CorrelatedSpaceTree2I.h"
28 
29 #endif
30 
32 {
33 
34  Int_t dim = 16384;
35  TFile* fileOut = new TFile("test2.root", "RECREATE");
36  fileOut->cd();
38 
39  coor->FillRandom(dim);
40 
41  coor->Write();
42 
43  fileOut->Close();
44 }
45 
header file for all type of CorrelatedSpaceTree2I
void FillRandom(Int_t dim)
fill random
CorrelatedSpaceTree2I class that manages a 2D symmetrical correlated space of integers store in a tre...
void CorrSpaceWrite()
Int_t dim
Definition: ReadMiniTree3.C:34