23 #include "TTimeStamp.h"
52 if(histo->GetDimension()==2)
58 Int_t maxu=histo->GetNbinsX();
59 Int_t maxv=histo->GetNbinsY();
63 for (Int_t v = 0;v<maxv; v++)
65 for (Int_t u = 0; u<maxu; u++)
67 value=histo->GetBinContent(u,v);
75 Int_t maxu=histo->GetNbinsX();
79 for (Int_t u = 0; u<maxu;u++)
81 value=histo->GetBinContent(u);
116 if(source==0 || target==0)
return;
125 snprintf(dest->
c_name,64,
"%s%s",path,source->GetName());
127 snprintf(dest->
c_name,64,
"%s",source->GetName());
128 snprintf(dest->
c_lettering_1,64,
"%s",source->GetXaxis()->GetTitle());
129 snprintf(dest->
c_lettering_2,64,
"%s",source->GetYaxis()->GetTitle());
130 snprintf(dest->
c_lettering_res,64,
"%s",source->GetYaxis()->GetTitle());
140 if(source->InheritsFrom(TH1D::Class()) ||
141 source->InheritsFrom(TH1F::Class()) ||
142 source->InheritsFrom(TH2D::Class()) ||
143 source->InheritsFrom(TH2F::Class())) {
163 Float_t* faddress=(Float_t*) address;
164 *faddress= (Float_t) value;
168 Int_t* iaddress=(Int_t*) address;
169 *iaddress= (Int_t) value;
183 if(folder==0)
return;
185 TIter iter(folder->GetListOfFolders());
187 while((entry = iter()) !=0) {
194 strcpy(pathbuffer,
"");
195 char* cursor=pathbuffer + num;
197 if(entry->InheritsFrom(TFolder::Class()))
200 const char* foldname=entry->GetName();
212 snprintf(cursor,edge,
"%s",foldname);
213 TFolder* subobj=
dynamic_cast<TFolder*
> (entry);
217 else if (entry->InheritsFrom(TH1::Class()) || entry->InheritsFrom(TGraph::Class()))
220 Bool_t ismatching=kFALSE;
221 const char* entryname=entry->GetName();
222 TString entrystring=entryname;
223 TRegexp reg(filter,kTRUE);
226 else if(!strcmp(filter,
"*"))
230 else if (entrystring.Index(reg,0)!=kNPOS)
238 TH1* hist=
dynamic_cast<TH1*
> (entry);
241 TGraph* graf=
dynamic_cast<TGraph*
> (entry);
242 if(graf && graf->GetN()>0)
244 hist=graf->GetHistogram();
246 if(hist==0)
continue;
257 Int_t* otherbuf=
new Int_t[
fiBufLen];
258 memcpy(otherbuf,
fiBuffer,oldbuflen*
sizeof(Int_t) );
static const Int_t fgiLISTLEN
void SetValue(char *address, Stat_t value)
void PrepareHeader(TH1 *source, const char *path, s_his_head *target)
static const char * fgcPARAFOLDER
CHARS c_lettering_res[64]
static const char * fgcCONDFOLDER
static const char * fgcTREEFOLDER
CHARS c_data_time_cre[28]
void ScanGo4Folder(TFolder *fold, const char *superfolders=0, const char *filter=0)
static const char * fgcANALYSISFOLDER
static const char * fgcCANVFOLDER
static const char * fgcDYNFOLDER
static const char * fgcPICTFOLDER