# Header file to handle the TSeq class in a macro file

**URL:** <https://root-forum.cern.ch/t/header-file-to-handle-the-tseq-class-in-a-macro-file/55078>\
**Category:** Newbie\
**Created:** [May 29, 2023, 7:13am UTC](https://root-forum.cern.ch/t/header-file-to-handle-the-tseq-class-in-a-macro-file/55078 "2023-05-29T07:13:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hohshita](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/5f9b8f/32.png) [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Post date:** [May 29, 2023, 7:13am UTC](https://root-forum.cern.ch/t/header-file-to-handle-the-tseq-class-in-a-macro-file/55078/1 "2023-05-29T07:13:57Z")

</div>

Dear root experts,

Do you know which header file I should include to handle the TSeq class in the macro file?

Attached are two samples.  
The first one works within cling. You can make it work as follows;  
$ root -l tseq\_smpl.C  
root [0].  
Processing tseq\_smpl.C…  
0  
1  
2  
3

The second is a macro file that I expect to have the same behavior.  
When I type the command as follows, it fails to compile.  
$ g++ `root-config --glibs --cflags --libs` TSeq\_smpl.cpp  
…  
TSeq\_smpl.cpp:7:21: Error: ‘TSeqI’ is not a member of ‘ROOT’  
for(auto i: ROOT::TSeqI(4)){  
^ ~~~~

\_ROOT Version: 6.26/00  
\_Platform: CentOS Stream release 8  
\_Compiler: c++ (GCC) 8.5.0 20210514

Best regards.

[tseq\_smpl.C](https://root-forum.cern.ch/uploads/short-url/eBzm0uUdWXQ9S39iGVOXpbc84bj.C) (89 Bytes)  
[TSeq\_smpl.cpp](https://root-forum.cern.ch/uploads/short-url/c8hdgtXy0yC1fHuv1hP7j8VgMiX.cpp) (147 Bytes)

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 29, 2023, 7:18am UTC](https://root-forum.cern.ch/t/header-file-to-handle-the-tseq-class-in-a-macro-file/55078/2 "2023-05-29T07:18:41Z")

</div>

`#include "ROOT/TSeq.hxx"`
