Skip to content

rootls does not seem to print the cycle number information #7053

@pcanal

Description

@pcanal

On a hsimple.root with 2 cycles per element we get:

root.exe -b -l copy.root -e 'gFile->ls()' -q

Attaching file copy.root as _file0...
(TFile *) 0x55f09c1bbc50
TFile**         copy.root
 TFile*         copy.root
  KEY: TH1F     hpx;2   This is the px distribution [current cycle]
  KEY: TH1F     hpx;1   This is the px distribution [backup cycle]
  KEY: TH2F     hpxpy;2 py vs px [current cycle]
  KEY: TH2F     hpxpy;1 py vs px [backup cycle]
  KEY: TProfile hprof;2 Profile of pz versus px [current cycle]
  KEY: TProfile hprof;1 Profile of pz versus px [backup cycle]
  KEY: TNtuple  ntuple;1        Demo ntuple

but we get the confusing:

rootls -l copy.root 
TProfile  Jan 15 16:28 2021 hprof   "Profile of pz versus px"
TProfile  Jan 15 16:28 2021 hprof   "Profile of pz versus px"
TH1F      Jan 15 16:28 2021 hpx     "This is the px distribution"
TH1F      Jan 15 16:28 2021 hpx     "This is the px distribution"
TH2F      Jan 15 16:28 2021 hpxpy   "py vs px"
TH2F      Jan 15 16:28 2021 hpxpy   "py vs px"
TNtuple   Jan 15 16:28 2021 ntuple  "Demo ntuple"

It should at least distinguish the [current cycle] vs [backup cycle]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions