この文書の現在のバージョンと選択したバージョンの差分を表示します。
次のリビジョン | 前のリビジョン | ||
ja:root:wantto11 [2017/05/06 14:57] kota 作成 |
ja:root:wantto11 [2018/08/22 17:27] (現在) kota |
||
---|---|---|---|
ライン 6: | ライン 6: | ||
<code cpp> | <code cpp> | ||
TChain *Chain = new TChain("..."); | TChain *Chain = new TChain("..."); | ||
- | Long64_t nentry = Chain->GetEntries(); | + | const Long64_t nentry = Chain->GetEntries(); |
- | for( Long64_t ientry = 0 ; ientry < nentry ; ++ientry ){ | + | for( Long64_t ientry = 0 ; ientry < nentry ; ++ientry ){ |
- | Chain->GetEntry(ientry); | + | Chain->GetEntry(ientry); |
- | + | ..... | |
- | ..... | + | TFile *CurrentFile = Chain->GetFile(); |
- | + | Char_t *filename = CurrentFile->GetName(); | |
- | TFile *CurrentFile = Chain->GetFile(); | + | ..... |
- | Char_t *filename = CurrentFile->GetName(); | + | |
- | + | ||
- | ..... | + | |
</code> | </code> | ||