hadd(1)
π hadd(1) β the General Commands Manual glow-up π
okay bestie, sit down, grab a strawberry π, because we're talking about hadd β yes, from the General Commands Manual, section 1, the real one. this is the tool that smooshes your ROOT files together and honestly? it eats. π
β¨ SYNOPSIS β¨
usage: hadd [-a] [-f] [-f[0-9]] [-fk] [-ff] [-k] [-L] [-Ltype] [-O] [-T]
[-v V] [-j J] [-dbg] [-d D] [-n N] [-cachesize CACHESIZE]
[-experimental-io-features EXPERIMENTAL_IO_FEATURES]
TARGET SOURCES
like, that's the whole vibe check right there. TARGET and SOURCES, bestie. that's the assignment. π
πΈ DESCRIPTION πΈ
so what does this little icon actually do? it adds histograms, trees and other objects from a list of ROOT files, and writes them all into a target ROOT file. that's it. that's the whole main character moment. π
the target file is newly created and it must not exist already. OR β if you pass -f (the "force" era) β it must not be one of the source files. no cap. don't be out here overwriting your own inputs, that's giving chaos. π
π OPTIONS π
one bullet per flag, we're not skipping a single one, periodt. β¨
-aβ append to the output. just keep adding, bestie. π«Ά-fβ force overwriting of the output file. bold. brave. slightly scary. π₯-f[0-9]β okay this one is the compression girlie. it gives you the ability to specify the compression algorithmiand leveljof the target file by passing the numberi*100 + j, e.g.-f505. the last digit (j) can be set from0= uncompressed to9= highly compressed. the first digit (i) is1for ZLIB,2for LZMA,4for LZ4 and5for ZSTD. the recommended numbers are101(ZLIB),207(LZMA),404(LZ4),505(ZSTD). the default value for this flag is101(kDefaultZLIB). seeROOT::RCompressionSettingandTFile::TFiledocumentation for more details. iykyk π-fkβ sets the target file to contain the baskets with the same compression as the input files (unless-Ois specified). it compresses the meta data using the compression level specified in the first input, or the compression setting afterfk(for example206when using-fk206). so extra, so valid. β¨-ffβ the compression level used is the one specified in the first input. simple. iconic. π-kβ skip corrupt or non-existent files, do not exit. she's resilient, she doesn't panic. π¦-Lβ read the list of objects fromFILEand either only merge or skip those objects depending on the value of-Ltype.FILEmust contain one object name per line, which cannot contain whitespaces or/. you can also passTDirectorynames, which apply to the entire directory content. lines beginning with#are ignored. if this flag is passed,-LtypeMUST be passed as well. non-negotiable, bestie. π¨-Ltypeβ sets the type of operation performed on the objects listed inFILEgiven with the-Lflag."SkipListed"will skip all the listed objects;"OnlyListed"will only merge those objects. if this flag is passed,-Lmust be passed as well. they're a package deal, a duo, a ship. π-Oβ re-optimize basket size when mergingTTree. glow-up for your baskets. π§Ί-Tβ do not merge Trees. sometimes you just gotta leave the trees alone. π³-vβ explicitly set the verbosity level:0requests no output,99is the default. choose your volume, bestie. π-jβ parallelize the execution inJprocesses. if the number of processes is not specified, use the system maximum. go big or go home. β‘-dbgβ enable verbosity. if-jwas specified, do not not delete partial files stored inside working directory. (yes, that's what it says. read it twice. we don't ask questions. π)-dβ carry out the partial multiprocess execution in the specified directory. put it somewhere cute. π-nβ open at mostNfiles at once (use0to request to use the system maximum). pacing herself, as she should. π§-cachesizeβ resize the prefetching cache use to speed up I/O operations (use0to disable). speed. I/O speed. obsessed. ποΈ-experimental-io-featuresβ used with an argument provided, enables the corresponding experimental feature for output trees. seeROOT::Experimental::EIOFeatures. β¨experimentalβ¨ bestie behavior.TARGETβ the target file. π―SOURCESβ the source files. π
π ARGUMENTS π
TARGETβ target file. this is where everything lands. the destination wedding. πSOURCESβ source files. these are the guests. bring all of them. π
heads up bestie: thatTARGETfile must not exist unless you're forcing it with-f, and even then it can't be one of theSOURCES. protect your data, queen. π«Ά
and that's the whole page, fr fr. this lil beauty lives at hadd(1) in the General Commands Manual β you found her, you read her, you slayed. πβ¨π go merge something gorgeous. π¦πΈ
π¦ where this page comes from
- arch rolling: root 6.40.04-1 Β· LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Clause-LBNL AND NCSA
- arch rolling: root-cuda 6.40.04-1 Β· LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Clause-LBNL AND NCSA
- epel 10: root 6.40.04-4.el10_3 Β· LGPL-2.1-or-later
- epel 9: root 6.40.04-4.el9 Β· LGPL-2.1-or-later
- fedora 43: root 6.40.04-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: root 6.38.04-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: root 6.40.04-1.fc44
- fedora 44: root 6.40.04-4.fc44 Β· LGPL-2.1-or-later
- nixos 26.05: root 6.40.00
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms