Reading binary dat file using corsikaplotter

Hello. I have an issue when i want to read the Binary eg DAT000001 file using the tool provided in src/utils/coast/CorsikaRead. I get this error.

sam@sam-Vostro-2521:~/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead$ root CorsikaPlotter4.cc > CorsikaPlotter4.Out
Note: macro handled as typedef float CREAL; /home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/CorsikaTypes.h:9:
Note: macro handled as typedef char CCHAR; /home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/CorsikaTypes.h:10:
Note: macro handled as typedef int CINT; /home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/CorsikaTypes.h:11:
Note: macro handled as typedef double CDOUBLEPRECISION; /home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/CorsikaTypes.h:12:
In file included from /home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_vector_crs__TParticleBlockEntry__cxx_ACLiC_dict.cxx:19:0:
/home/sam/Root/root_install/include/TCollectionProxyInfo.h: In instantiation of ‘static void* ROOT::TCollectionProxyInfo::Type<T>::construct(void*, size_t) [with T = std::vector<crs::TParticleBlockEntry>; size_t = long unsigned int]’:
/home/sam/Root/root_install/include/TCollectionProxyInfo.h:510:17:   required from ‘static ROOT::TCollectionProxyInfo* ROOT::TCollectionProxyInfo::Generate(const T&) [with T = ROOT::TCollectionProxyInfo::Pushback<std::vector<crs::TParticleBlockEntry> >]’
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_vector_crs__TParticleBlockEntry__cxx_ACLiC_dict.cxx:137:158:   required from here
/home/sam/Root/root_install/include/TCollectionProxyInfo.h:310:13: error: no matching function for call to ‘crs::TParticleBlockEntry::TParticleBlockEntry()’
             ::new(m) Value_t();
             ^~~~~~~~~~~~~~~~~~

/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:196:46: error: expected primary-expression before ‘long’
    random_access_iterator<crs::TLongitudinal,long>* p;
                                              ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:198:4: error: ‘p’ was not declared in this scope
    p = new random_access_iterator<crs::TLongitudinal,long>(*(random_access_iterator<crs::TLongitudinal,long>*) tmp);
    ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:198:12: error: ‘random_access_iterator’ does not name a type
    p = new random_access_iterator<crs::TLongitudinal,long>(*(random_access_iterator<crs::TLongitudinal,long>*) tmp);
            ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:198:53: error: expected primary-expression before ‘,’ token
    p = new random_access_iterator<crs::TLongitudinal,long>(*(random_access_iterator<crs::TLongitudinal,long>*) tmp);
                                                     ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:198:54: error: expected primary-expression before ‘long’
    p = new random_access_iterator<crs::TLongitudinal,long>(*(random_access_iterator<crs::TLongitudinal,long>*) tmp);
                                                      ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx: At global scope:
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:206:9: error: ‘random_access_iterator’ does not name a type
 typedef random_access_iterator<crs::TLongitudinal,long> G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR;
         ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx: In function ‘int G__AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict_2646_0_3(G__value*, const char*, G__param*, int)’:
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:222:18: error: ‘random_access_iterator’ was not declared in this scope
        delete[] (random_access_iterator<crs::TLongitudinal,long>*) soff;
                  ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:222:59: error: expected primary-expression before ‘,’ token
        delete[] (random_access_iterator<crs::TLongitudinal,long>*) soff;
                                                           ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:222:60: error: expected primary-expression before ‘long’
        delete[] (random_access_iterator<crs::TLongitudinal,long>*) soff;
                                                            ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:222:60: error: expected ‘)’ before ‘long’
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:226:12: error: ‘random_access_iterator’ was not declared in this scope
          ((random_access_iterator<crs::TLongitudinal,long>*) (soff+(sizeof(random_access_iterator<crs::TLongitudinal,long>)*i)))->~G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR();
            ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:226:53: error: expected primary-expression before ‘,’ token
          ((random_access_iterator<crs::TLongitudinal,long>*) (soff+(sizeof(random_access_iterator<crs::TLongitudinal,long>)*i)))->~G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR();
                                                     ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:226:54: error: expected primary-expression before ‘long’
          ((random_access_iterator<crs::TLongitudinal,long>*) (soff+(sizeof(random_access_iterator<crs::TLongitudinal,long>)*i)))->~G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR();
                                                      ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:226:54: error: expected ‘)’ before ‘long’
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:226:190: error: expected ‘)’ before ‘;’ token
 dinal,long>)*i)))->~G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR();
                                                                               ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:232:16: error: ‘random_access_iterator’ was not declared in this scope
        delete (random_access_iterator<crs::TLongitudinal,long>*) soff;
                ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:232:57: error: expected primary-expression before ‘,’ token
        delete (random_access_iterator<crs::TLongitudinal,long>*) soff;
                                                         ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:232:58: error: expected primary-expression before ‘long’
        delete (random_access_iterator<crs::TLongitudinal,long>*) soff;
                                                          ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:232:58: error: expected ‘)’ before ‘long’
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:235:10: error: ‘random_access_iterator’ was not declared in this scope
        ((random_access_iterator<crs::TLongitudinal,long>*) (soff))->~G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR();
          ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:235:51: error: expected primary-expression before ‘,’ token
        ((random_access_iterator<crs::TLongitudinal,long>*) (soff))->~G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR();
                                                   ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:235:52: error: expected primary-expression before ‘long’
        ((random_access_iterator<crs::TLongitudinal,long>*) (soff))->~G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR();
                                                    ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:235:52: error: expected ‘)’ before ‘long’
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:235:128: error: expected ‘)’ before ‘;’ token
 l,long>*) (soff))->~G__Trandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR();
                                                                               ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx: In function ‘int G__AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict_2646_0_4(G__value*, const char*, G__param*, int)’:
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:246:4: error: ‘random_access_iterator’ was not declared in this scope
    random_access_iterator<crs::TLongitudinal,long>* dest = (random_access_iterator<crs::TLongitudinal,long>*) G__getstructoffset();
    ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:246:45: error: expected primary-expression before ‘,’ token
    random_access_iterator<crs::TLongitudinal,long>* dest = (random_access_iterator<crs::TLongitudinal,long>*) G__getstructoffset();
                                             ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:246:46: error: expected primary-expression before ‘long’
    random_access_iterator<crs::TLongitudinal,long>* dest = (random_access_iterator<crs::TLongitudinal,long>*) G__getstructoffset();
                                              ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:247:10: error: ‘random_access_iterator’ does not name a type
    const random_access_iterator<crs::TLongitudinal,long>& obj = *dest;
          ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:248:28: error: ‘obj’ was not declared in this scope
    result7->ref = (long) (&obj);
                            ^~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx: In function ‘void G__setup_memvarrandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR()’:
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:348:6: error: ‘random_access_iterator’ was not declared in this scope
    { random_access_iterator<crs::TLongitudinal,long> *p; p=(random_access_iterator<crs::TLongitudinal,long>*)0x1000; if (p) { }
      ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:348:47: error: expected primary-expression before ‘,’ token
    { random_access_iterator<crs::TLongitudinal,long> *p; p=(random_access_iterator<crs::TLongitudinal,long>*)0x1000; if (p) { }
                                               ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:348:48: error: expected primary-expression before ‘long’
    { random_access_iterator<crs::TLongitudinal,long> *p; p=(random_access_iterator<crs::TLongitudinal,long>*)0x1000; if (p) { }
                                                ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:348:58: error: ‘p’ was not declared in this scope
    { random_access_iterator<crs::TLongitudinal,long> *p; p=(random_access_iterator<crs::TLongitudinal,long>*)0x1000; if (p) { }
                                                          ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:348:102: error: expected primary-expression before ‘,’ token
 TLongitudinal,long> *p; p=(random_access_iterator<crs::TLongitudinal,long>*)0x1000; if (p) { }
                                                                     ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:348:103: error: expected primary-expression before ‘long’
 Longitudinal,long> *p; p=(random_access_iterator<crs::TLongitudinal,long>*)0x1000; if (p) { }
                                                                     ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:348:103: error: expected ‘)’ before ‘long’
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx: In function ‘void G__cpp_setup_tagtableAutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict()’:
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:553:186: error: ‘random_access_iterator’ was not declared in this scope
 dictLN_random_access_iteratorlEcrscLcLTLongitudinalcOlonggR),sizeof(random_access_iterator<crs::TLongitudinal,long>),-1,262144,(char*)NULL,G__setup_memvarrandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR,G__setup_memfuncrandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR);
                                                                     ^~~~~~~~~~~~~~~~~~~~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:553:227: error: expected primary-expression before ‘,’ token
 ngitudinalcOlonggR),sizeof(random_access_iterator<crs::TLongitudinal,long>),-1,262144,(char*)NULL,G__setup_memvarrandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR,G__setup_memfuncrandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR);
                                                                     ^
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:553:228: error: expected primary-expression before ‘long’
 gitudinalcOlonggR),sizeof(random_access_iterator<crs::TLongitudinal,long>),-1,262144,(char*)NULL,G__setup_memvarrandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR,G__setup_memfuncrandom_access_iteratorlEcrscLcLTLongitudinalcOlonggR);
                                                                     ^~~~
/home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.cxx:553:228: error: expected ‘)’ before ‘long’
c++: error: /home/sam/Simulation/VENUS2-Gheisha/corsika-76900/src/utils/coast/CorsikaRead/AutoDict_random_access_iterator_crs__TLongitudinal_long__cxx_ACLiC_dict.o: No such file or directory
Error in <ACLiC>: Compilation failed!
Error: Function CorsikaPlotter4() is not defined in current scope  :0:
*** Interpreter error recovered ***

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fce2d913337 in __GI___waitpid (pid=8222, stat_loc=stat_loc
entry=0x7fffb1d8d768, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007fce2d87e047 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007fce2e6107c5 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x5578da2359a0) at /home/sam/Root/root_src/core/unix/src/TUnixSystem.cxx:2172
#3  TUnixSystem::StackTrace (this=0x5578da2359a0) at /home/sam/Root/root_src/core/unix/src/TUnixSystem.cxx:2419
#4  0x00007fce2e61294c in TUnixSystem::DispatchSignals (this=0x5578da2359a0, sig=kSigSegmentationViolation) at /home/sam/Root/root_src/core/unix/src/TUnixSystem.cxx:1294
#5  <signal handler called>
#6  0x00007fce2d8ae4d5 in _IO_new_fsetpos (fp=0x7fce2e508f10 <G__G__Meta_6_0_187(G__value*, char const*, G__param*, int)>, posp=0x5578da267a38) at iofsetpos.c:48
#7  0x00007fce2cf54490 in G__interpret_func (result7=result7
entry=0x7fffb1d90e10, funcname=0x5578da24a3a0 "~TParticleBlockEntry", libp=libp
entry=0x7fffb1d90e50, hash=<optimized out>, p_ifunc=0x5578da267a10, funcmatch=funcmatch
entry=1, memfunc_flag=<optimized out>) at /home/sam/Root/root_src/cint/cint/src/ifunc.cxx:6417
#8  0x00007fce2cf45b45 in G__getfunction (item=0x5578da23c9e0 "~TParticleBlockEntry()", known3=known3
entry=0x7fffb1d9b8ec, memfunc_flag=<optimized out>, memfunc_flag
entry=5) at /home/sam/Root/root_src/cint/cint/src/func.cxx:2660
#9  0x00007fce2cf9386d in G__free_tempobject () at /home/sam/Root/root_src/cint/cint/src/parse.cxx:8158
#10 0x00007fce2e5d519b in TCint::ProcessLine (this=0x5578da23bb20, line=0x7fce2e72fd8e "TRint::EndOfLineAction();", error=0x0) at /home/sam/Root/root_src/core/meta/src/TCint.cxx:542
#11 0x00007fce2e5d05f7 in TCint::ProcessLineSynch (this=0x5578da23bb20, line=0x7fce2e72fd8e "TRint::EndOfLineAction();", error=0x0) at /home/sam/Root/root_src/core/meta/src/TCint.cxx:631
#12 0x00007fce2eb2d796 in TRint::Run (this=0x5578da3c9220, retrn=<optimized out>) at /home/sam/Root/root_src/core/rint/src/TRint.cxx:418
#13 0x00005578d971f20c in main (argc=<optimized out>, argv=0x7fffb1d9dc28) at /home/sam/Root/root_src/main/src/rmain.cxx:29
===========================================================


The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00007fce2d8ae4d5 in _IO_new_fsetpos (fp=0x7fce2e508f10 <G__G__Meta_6_0_187(G__value*, char const*, G__param*, int)>, posp=0x5578da267a38) at iofsetpos.c:48
===========================================================


ls
Error: Symbol ls is not defined in current scope  (tmpfile):1:
*** Interpreter error recovered ***
.q

This is the CorsikaPlotter.cc i have used.

#include </home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaFileIO/crsRead/MCorsikaReader.h>

#include </home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/TSubBlock.h>
#include </home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/MRunHeader.h>
#include </home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/MEventHeader.h>
#include </home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/MEventEnd.h>
#include </home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/MParticleBlock.h>
#include </home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/MLongitudinalBlock.h>
#include </home/sam/Simulation/VENUS2-Gheisha/corsika-76900/coast/CorsikaIntern/crs/MParticle.h>

#include <TFile.h>
#include <TH1D.h>
#include <TNtupleD.h>

#include <iostream>
#include <sstream>
#include <map>
using namespace std;


// to hold data of one observation level
struct ObsLevel {
  TNtupleD* data;
  double x;
  double y;
  double x2;
  double y2;
  double w;
};
          



int
main (int argc, char **argv) 
{  
  if (argc<2) {
    cout << "  /home/sam/Simulation/VENUS2-Gheisha/DAT000002 " << endl;
    return 1;
  }
    
  string fname(argv[1]);
  crsRead::MCorsikaReader cr(fname, 3);
  
  string inputFile;
  if (fname.rfind('/')==string::npos) {
    inputFile = fname;
  } else {
    inputFile = fname.substr(fname.rfind('/')+1, 
                             fname.size()-fname.rfind('/'));
  }
  
  
  int ShowerCounter = 0;
  
  crs::MRunHeader Run;
  while (cr.GetRun (Run)) {
    
    crs::MEventHeader Shower;
    while (cr.GetShower(Shower)) {
      
      ++ShowerCounter;
      
      ostringstream oFileName;
      oFileName << inputFile.c_str() << "_"
                << Shower.GetEventNumber () << ".root";

      cout << " Writing summary to output file: " << oFileName.str() << endl;

      TFile oFile (oFileName.str ().c_str (), "RECREATE");
      
      const int nObsLevel = Shower.GetNObservationLevels();
      map<int, ObsLevel> obsLevel;
      
      for (int iObsLevel=1; iObsLevel<=nObsLevel; ++iObsLevel) { 
        
        double height = Shower.GetObservationHeight(iObsLevel-1);            
        cout << " init obs-level " << iObsLevel << " at h=" << height << endl;
        ObsLevel emptyLevel;
        ostringstream tTitle, tName;
        tTitle << "Data at level " << iObsLevel;
        tName << "data_" << iObsLevel;
        emptyLevel.data = new TNtupleD(tName.str().c_str(), tTitle.str().c_str(), "id:e:x:y:w");
        /*
          emptyLevel.xEl  = 0;
          emptyLevel.yEl  = 0;
          emptyLevel.wEl  = 0;
          emptyLevel.x2El = 0;
          emptyLevel.y2El = 0;
        */
        obsLevel[iObsLevel] = emptyLevel;

      } // end loop observation levels
      
      
      crs::TSubBlock Data;
      while (cr.GetData (Data)) {
        
        switch (Data.GetBlockType ()) {
          
            case crs::TSubBlock::ePARTDATA:
            {
              const crs::MParticleBlock& ParticleData = Data;
              crs::MParticleBlock::ParticleListConstIterator iEntry;
              for (iEntry = ParticleData.FirstParticle();
                   iEntry != ParticleData.LastParticle();
                   ++iEntry) {

		// DUMP
		//iEntry->Dump();
                
                if (iEntry->IsParticle()) {
                  
                  crs::MParticle iPart(*iEntry);
                  
                  const int id    = iPart.GetParticleID();
                  const int level = iPart.GetObservationLevel();
                  const double w  = iPart.GetWeight();
                  const double e  = iPart.GetKinEnergy();
                  const double x  = iPart.GetX();
                  const double y  = iPart.GetY();
                
		  if (obsLevel.count(level)==0) {
		    cout << " detected new obs-level " << level 
			 << ". Possibly INCLIN-Option " << endl;
		    ObsLevel emptyLevel;
		    ostringstream tTitle, tName;
		    tTitle << "Data at level " << level;
		    tName << "data_" << level;
		    obsLevel[level] = emptyLevel;
		    obsLevel[level].data = new TNtupleD(tName.str().c_str(), 
							tTitle.str().c_str(),
							"id:e:x:y:w");
		  }
		  
                  obsLevel[level].data->Fill(id, e, x, y, w);
                  obsLevel[level].x  += x*w;
                  obsLevel[level].y  += y*w;
                  obsLevel[level].x2 += x*x*w;
                  obsLevel[level].y2 += y*y*w;
                  obsLevel[level].w  += w;
                  
                }
                
              } // end particle loop
              
              break;
            }
            
            case crs::TSubBlock::eLONG:
              break;
              
            default:
              break;
        } // end data block
        
      } // loop data
      
      crs::MEventEnd ShowerSummary;
      cr.GetShowerSummary(ShowerSummary);
      const double Xmax = ShowerSummary.GetXmax();
      
      cout << "---------------------------------\n"
           << " Shower info:\n"
           << "  Xmax = " << Xmax << "\n";
      
      oFile.cd();
      for (map<int, ObsLevel>::iterator iLevel = obsLevel.begin();
           iLevel != obsLevel.end();
           ++iLevel) {
        
        cout << "   observation level: " << iLevel->first 
	     << " with " << iLevel->second.data->GetEntries() << " particles "
	     << iLevel->second.data->GetName()
	     << "\n";
        
	iLevel->second.data->Write();
        
        /*
          cout << "    particle id: " << iPId->first
          << " <x>=" << iPId->second.x/iPId->second.w
          << " <y>=" << iPId->second.y/iPId->second.w 
          << " <x_rms>=" << sqrt(iPId->second.x2/iPId->second.w-pow(iPId->second.x/iPId->second.w,2))
          << " <y_rms>=" << sqrt(iPId->second.y2/iPId->second.w-pow(iPId->second.y/iPId->second.w,2))
          << "\n";
        */
        
      } // loop observation levels
      
      oFile.Close();
      
    } // loop shower
    
  } // loop runs (usually just 1)    
  
  cout << " Read " << ShowerCounter << " showers from file " << endl;
  
  return 0;
}

Kindly help.

Hi @Chege ,

It seems there is no proper declaration/definition of the TParticleBlockEntry class. Are you missing a header or a part of your library?

Cheers,
Vincenzo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.