|
static std::string | spacer = "" |
|
Definition at line 204 of file listroot.cxx.
◆ TCck()
TCck::TCck |
( |
TDirectory * |
d, |
|
|
int |
depth = 0 |
|
) |
| |
|
inline |
◆ ~TCck()
◆ pscan()
void TCck::pscan |
( |
int |
depth = 0 | ) |
|
|
inlineprotected |
Definition at line 221 of file listroot.cxx.
225 std::string inspace =
spacer;
229 int deptht =
depth-1;
238 if ( deptht>=0 &&
size_t(deptht)<
directories.size() ) {
259 TList*
tl =
m_dir->GetListOfKeys();
262 for (
int i=
tl->GetSize() ;
i-- ; ) {
264 TKey* tobj = (TKey*)
tl->At(
i);
267 std::vector<inode> nodes;
273 if ( std::string(tobj->GetClassName()).find(
"TDirectory")!=std::string::npos ) {
274 tnd = (TDirectory*)tobj->ReadObj();
276 m_nodes.push_back(
inode( tobj->GetName(), tobj->GetClassName(), tobj, tnd, nodes ) );
285 if ( std::string( tobj->GetName()).find(
patterns[
ip] )!=std::string::npos )
accept =
true;
291 if ( std::string( tobj->GetName()).find(
Patterns[
ip] )==std::string::npos )
accept =
false;
298 m_nodes.push_back(
inode( tobj->GetName(), tobj->GetClassName(), tobj ) );
305 if ( std::string( tobj->GetClassName()).find(
"TH1")!=std::string::npos ) {
306 TH1*
h = (TH1*)tobj->ReadObj();
310 std::cout <<
"\tentries " <<
h->GetEntries() <<
" \tmean " <<
h->GetMean() <<
"\tplot " <<
plot <<
"\t";
319 h->SetMaximum(
hmax(
h)*1.2 );
321 std::string
t = tobj->GetName();
323 if (
t.find(
"____")!=std::string::npos )
t.erase( 0,
t.find(
"___")+4);
324 if (
t.find(
"_FirstTime")!=std::string::npos )
t.erase(
t.find(
"_FirstTime"),
t.size());
326 h->SetTitle(
t.c_str());
338 h->SetMaximum(
ymax );
344 h->DrawCopy(
"samehist");
349 if (
logy ) gPad->SetLogy(
true);
350 gPad->Print( (std::string(tobj->GetName())+
".pdf").c_str() );
359 std::cout << std::endl;
364 std::string cckname = tobj->GetName();
368 std::string tdir =
chop( cckname,
"____" );
370 if ( cckname.size()==0 ) {
371 h->SetName( tdir.c_str() );
378 h->SetName( cckname.c_str() );
386 std::cout << std::endl;
393 if ( cck ) cck->cd();
◆ scan()
std::vector<inode> TCck::scan |
( |
int |
depth = 0 | ) |
|
|
inline |
◆ m_depth
◆ m_dir
◆ m_nodes
std::vector<inode> TCck::m_nodes |
|
protected |
◆ spacer
std::string TCck::spacer = "" |
|
staticprotected |
The documentation for this class was generated from the following file: