---
name: "prepareHistFactory"
section: "1"
platform: "linux"
package: "root"
version: "6.40.04-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/prepareHistFactory"
---

# prepareHistFactory(1)

create a working directory for the HistFactory tools

## NAME

prepareHistFactory - create a working directory for the HistFactory tools

## SYNOPSIS

**prepareHistFactory \[dir\_name\]**

## DESCRIPTION

**prepareHistFactory** is a simple script that prepares a working area (and creates the directory dir\_name if specified). Within the directory dir\_name, it creates a results/, data/, and config/ directory relative to the given path. It also copies the HistFactorySchema.dtd and example XML files into the config/ directory.  Additionally, it copies a root file into the data/ directory for use with the examples. Once this is done, one is ready to run the example **hist2workspace input.xml** or edit the XML files for a new project.

## ORIGINAL AUTHORS

**Dominique Tardif**\
  and **Kyle Cranmer**

## COPYRIGHT

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
