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 installation of cmsstyle, it may collide with the virtual environment, so you may want to do

export PYTHONNOUSERSITE=True

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.1rc1.tar.gz (46.3 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.1rc1-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file cmsstyle-0.5.1rc1.tar.gz.

File metadata

  • Download URL: cmsstyle-0.5.1rc1.tar.gz
  • Upload date:
  • Size: 46.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cmsstyle-0.5.1rc1.tar.gz
Algorithm Hash digest
SHA256 2b40367e0fe4d0a469899129208215e8abd631d0a9ec7112f8afc72230d56066
MD5 ccfe30be11c455bd0ed5d6772dc5b10e
BLAKE2b-256 c5c7eb9c91bba0462e5528d0ddcaa7b9f85f003ec6373300228accea89809e8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmsstyle-0.5.1rc1.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.1rc1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for cmsstyle-0.5.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae44747a04ea40373567fa2b2139230c470152845d511d2c6283f5cb563784d
MD5 f6f4e3bef0b113637807aa97d13a2a74
BLAKE2b-256 e4b2cf47745b0b00f76cfa035b295a66d39b3d7ee28b912c9caa18caf30bcbe5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmsstyle-0.5.1rc1-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