Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tileTree.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file tileTree.C
1 
2 // **************************************************************************
3 
4 
6  hLabHelper * hlHelper = hLabHelper::getInstance();
7 
8 
9  // hlHelper->fhcl = new TFile(rootfName,"recreate");
10  hlHelper->thcl = new TTree("thcl","Tile Data Tree");
11  hlHelper->thcl ->SetMaxTreeSize(1000000000);
12 
13  hlHelper->thcl->Branch("runnumber" ,&hlHelper->runnumber, "runnumber/I");
14  hlHelper->thcl->Branch("eventseq", &hlHelper->eventseq, "eventseq/I");
15  // hlHelper->thcl->Branch("reject", &hlHelper->rejectCode, "reject/I");
16 
17 
18  TString rawbranch = "adc["; rawbranch += ACTIVECHANNELS; rawbranch += "]["; rawbranch += NSAMPLES; rawbranch += "]/F";
19  hlHelper->thcl -> Branch("adc", hlHelper->adc, rawbranch);
20 
21  // TString adcbranch = "adc[";
22  // adcbranch += CHTOTAL;
23  // adcbranch += "][";
24  // adcbranch += NSAMPLES;
25  // adcbranch += "]/I";
26  // thcl->Branch("adc",hHelper->adc,adcbranch);
27 
28  // TString pedestalbranch = "pedestal[";
29  // pedestalbranch += CHTOTAL;
30  // pedestalbranch += "]/F";
31  // thcl->Branch("pedestal",hHelper->pedestal,pedestalbranch);
32 
33  // TString rawpeakbranch = "rpeak[";
34  // rawpeakbranch += CHTOTAL;
35  // rpeakbranch += "]/F";
36  // thcl->Branch("rpeak",hHelper->rpeak,rawpeakbranch);
37 
38  // TString rawtimebranch ="rtime[";
39  // rawtimebranch += CHTOTAL;
40  // rawtimebranch += "]/F";
41  // thcl->Branch("rtime",hHelper->rawTime, rawtimebranch);
42 
43  // TString fitpeakbranch = "fpeak[";
44  // calpeakbranch += CHTOTAL;
45  // calpeakbranch += "]/F";
46  // thcl->Branch("fpeak",hHelper->fpeak,fitpeakbranch);
47 
48  // TString fittimebranch ="ftime[";
49  // fittimebranch += CHTOTAL;
50  // fittimebranch += "]/F";
51  // thcl->Branch("ftime",hHelper->fitTime, fittimebranch);
52 
53  // TString fittimermsbranch ="ftrms[";
54  // fittimermsbranch += CHTOTAL;
55  // fittimermsbranch += "]/F";
56  // thcl->Branch("ftime",hHelper->fitTime, fittimermsbranch);
57 
58  // Pressing time histograms
59 
60 
61 
62 
63 
64 // TString triggerbranch = "tag[";
65 // triggerbranch += TAGS;
66 // triggerbranch +="]/F";
67 // W->Branch("tags", wd->tags,triggerbranch);
68 // W->Branch("hits", wd->hits,"hit[4]/F");
69 // // clusters found in inner and outer sections
70 // TString ihcclbranch = "ihccl[6]/F";
71 // W->Branch("ihccl",wd->ihccl,ihcclbranch);
72 // TString ohcclbranch = "ohccl[6]/F";
73 // W->Branch("ohccl",wd->ohccl,ohcclbranch);
74 // // tracks found in inner and outer sections
75 // TString itrackbranch = "itrack[";
76 // itrackbranch += TRLENGTH;
77 // itrackbranch +="]/F";
78 // W->Branch("itrack",wd->itrack,itrackbranch);
79 // TString otrackbranch = "otrack[";
80 // otrackbranch += TRLENGTH;
81 // otrackbranch +="]/F";
82 // W->Branch("otrack",wd->otrack,otrackbranch);
83 
84 
85 
86 // TString ecsumbranch = "ecsum[";
87 // ecsumbranch += ECSUMS;
88 // ecsumbranch +="]/F";
89 // W->Branch("ec_sum",wd->ecadcsum,ecsumbranch);
90 
91 // TString hcsumbranch = "hcsum[";
92 // hcsumbranch += HCSUMS;
93 // hcsumbranch +="]/F";
94 // W->Branch("hcsum",wd->hcadcsum,hcsumbranch);
95 
96 // // Preshower branch
97 // if(psON) {
98 // initPreshowerTree();
99 // initPreshowerUnpacker();
100 // cout<<"PRESHOWER branch initialized for Run "<<rn<<endl;
101 // }
102 
103 }
104 
105 // -----------------------------------------------------------------------------------------------
106 
108  // whatever summary histograms what not
109  hLabHelper * hlHelper = hLabHelper::getInstance();
110  hlHelper->thcl->AutoSave("Overwrite");
111  // fhcl -> Close();
112  // thcl -> Write();
113  // fhcl -> Write();
114 }