21 #include "TTimeStamp.h"
48 if (histo->GetDimension() == 2) {
53 Int_t maxu = histo->GetNbinsX();
54 Int_t maxv = histo->GetNbinsY();
58 for (Int_t v = 0; v < maxv; v++) {
59 for (Int_t u = 0; u < maxu; u++) {
60 value = histo->GetBinContent(u, v);
66 Int_t maxu = histo->GetNbinsX();
70 for (Int_t u = 0; u < maxu; u++) {
71 value = histo->GetBinContent(u);
103 if (source == 0 || target == 0)
107 dest->
l_bins_1 = source->GetNbinsX();
108 dest->
l_bins_2 = source->GetNbinsY();
113 snprintf(dest->
c_name, 64,
"%s%s", path, source->GetName());
115 snprintf(dest->
c_name, 64,
"%s", source->GetName());
116 snprintf(dest->
c_lettering_1, 64,
"%s", source->GetXaxis()->GetTitle());
117 snprintf(dest->
c_lettering_2, 64,
"%s", source->GetYaxis()->GetTitle());
118 snprintf(dest->
c_lettering_res, 64,
"%s", source->GetYaxis()->GetTitle());
128 if (source->InheritsFrom(TH1D::Class()) || source->InheritsFrom(TH1F::Class()) ||
129 source->InheritsFrom(TH2D::Class()) || source->InheritsFrom(TH2F::Class())) {
138 snprintf(dest->
c_clear_date, 28,
"%s", now.AsString(
"l"));
144 Float_t *faddress = (Float_t *)address;
145 *faddress = (Float_t)value;
147 Int_t *iaddress = (Int_t *)address;
148 *iaddress = (Int_t)value;
164 TIter iter(folder->GetListOfFolders());
166 while ((entry = iter()) != 0) {
173 strcpy(pathbuffer,
"");
174 char *cursor = pathbuffer + num;
176 if (entry->InheritsFrom(TFolder::Class())) {
178 const char *foldname = entry->GetName();
196 snprintf(cursor, edge,
"%s", foldname);
197 TFolder *subobj =
dynamic_cast<TFolder *
>(entry);
200 }
else if (entry->InheritsFrom(TH1::Class()) || entry->InheritsFrom(TGraph::Class())) {
202 Bool_t ismatching = kFALSE;
203 const char *entryname = entry->GetName();
204 TString entrystring = entryname;
205 TRegexp reg(filter, kTRUE);
208 else if (!strcmp(filter,
"*"))
212 else if (entrystring.Index(reg, 0) != kNPOS)
219 TH1 *hist =
dynamic_cast<TH1 *
>(entry);
221 TGraph *graf =
dynamic_cast<TGraph *
>(entry);
222 if (graf && graf->GetN() > 0) {
223 hist = graf->GetHistogram();
236 Int_t *otherbuf =
new Int_t[
fiBufLen];
237 memcpy(otherbuf,
fiBuffer, oldbuflen *
sizeof(Int_t));
241 for (Int_t n = 0; n <
fiHisNum; ++n)
static const Int_t fgiLISTLEN
void SetValue(char *address, Stat_t value)
static const char * GetCONDFOLDER()
void PrepareHeader(TH1 *source, const char *path, s_his_head *target)
static const char * GetCANVFOLDER()
CHARS c_lettering_res[64]
static const char * GetDYNFOLDER()
CHARS c_data_time_cre[28]
static const char * GetPARAFOLDER()
static const char * GetPICTFOLDER()
void ScanGo4Folder(TFolder *fold, const char *superfolders=0, const char *filter=0)
static const char * GetANALYSISFOLDER()
static const char * GetTREEFOLDER()