Skip to main content

No project description provided

Project description

cmsstyle

Holding repo for CMS plotting style ROOT macros guidelines available at https://cms-analysis.docs.cern.ch/guidelines/plotting/general/

Both python and C++ implementations available.

Installation

Python:

pip install cmsstyle

Once this is done, the import cmsstyle should work from any location.

C++:

git clone https://github.com/cms-cat/cmsstyle.git
cd cmsstyle
source scripts/setup_cmstyle

For the C++ to work from inside ROOT (and any location), it is recommended to add something like the following to the rootlogon.C macro (or equivalent):

  std::string var = string(gROOT->GetMacroPath())+":"+gSystem->Getenv("CMSSTYLE_DIR")+"/src";
  gROOT->SetMacroPath(var.c_str());
  std::cout<<"Adding the ${CMSSTYLE_DIR}/src to the macro path"<<std::endl;
}

In fact a similar configuration may be achieved by modifying the ${HOME}/.rootrc instead.

Installation inside the CMSSW

If you use a CMSSW that supports the scram-venv you may use that to achieve the installation of the python package with pip already locally, as described in this page using the following instructions:

cmsenv

pip install cmstyle

It should be remarked that after installation of the venv (done by scram-venv) that step is no longer needed, but the working directory should be used always in the virtual enviroment (that should be already setup when doing the commonly required cmsenv command.

Remark that if you have a local installacion of cmsstyle, it may collide with the virtual environment, so you may want to do

to prevent the conflicts.

In the case of the C++ code, it is possible to add the code as source code but downloading the packages as mentioned above. Keep in mind that the repository does not follows the required structure for CMSSW packages, so you may encounter difficulties to integrate. Do not hesitate to contact us for the use case.

Documentation

Documentation for the Python implementation is available at cmsstyle.readthedocs.io. C++ implementation is analogous.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmsstyle-0.5.0.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmsstyle-0.5.0-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file cmsstyle-0.5.0.tar.gz.

File metadata

  • Download URL: cmsstyle-0.5.0.tar.gz
  • Upload date:
  • Size: 45.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cmsstyle-0.5.0.tar.gz
Algorithm Hash digest
SHA256 6f40694c153072048e31a83cbc7c15c9bb24c8d674026224e4ca62e269b58266
MD5 9165918b3e75cf5ddeca68b0a8b41631
BLAKE2b-256 ff436e413b8689af32b1d98f5a741d6f4cfcdfc83d3295b0cef10b34c35ce33a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmsstyle-0.5.0.tar.gz:

Publisher: cd.yml on cms-cat/cmsstyle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cmsstyle-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: cmsstyle-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cmsstyle-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eda97ceb049bc85a86cab438d56d6755c66ce1c561f3505e713fc498e69a28f0
MD5 3632afaefd008c873aa48198918342c6
BLAKE2b-256 f91231f15a639fbc2cf89c001caa03014f667618317dc7fd03f8afef56b3ab84

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmsstyle-0.5.0-py3-none-any.whl:

Publisher: cd.yml on cms-cat/cmsstyle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page