Skip to content

WeiMXi/DataRemake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Run as an ROOT macro

root -q dataRemake.cpp

Compile

One PC that installed ROOT can compile use:

vim dataReMake.cpp # change IS_MACRO to false
g++ -o dataRemake dataRemake.cpp $(root-config --libs --cflags) -O3
# just run it
./dataRemake

Skip some channels

One can add any no "U" or "D" symbol at the beginning of the corresponding line, then the two channels will be skipped.

For example:

D,1,1,296,323
#D,1,2,297,330
#D,1,3,295,320
user@PC:~/MyCodes/dataremake$ root -q dataRemake.cpp 
Processing dataRemake.cpp...
Program Started!
----------------------------------------------------
2 #D,1,2,297,330 is skipped!
3 #D,1,3,295,320 is skipped!
Reading Mapping2Detector.csv finished!
----------------------------------------------------
Sorting ...
[==================================================] 100 % ☀ 🎓
Writing remain data to 0111test_tunning01_single OUTPUT.root ...
[==================================================] 100 % ☀ 🎓
RealTime: 0.98 s, CpuTime: 0.97 s
(int) 0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages