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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f40694c153072048e31a83cbc7c15c9bb24c8d674026224e4ca62e269b58266
|
|
| MD5 |
9165918b3e75cf5ddeca68b0a8b41631
|
|
| BLAKE2b-256 |
ff436e413b8689af32b1d98f5a741d6f4cfcdfc83d3295b0cef10b34c35ce33a
|
Provenance
The following attestation bundles were made for cmsstyle-0.5.0.tar.gz:
Publisher:
cd.yml on cms-cat/cmsstyle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cmsstyle-0.5.0.tar.gz -
Subject digest:
6f40694c153072048e31a83cbc7c15c9bb24c8d674026224e4ca62e269b58266 - Sigstore transparency entry: 719696702
- Sigstore integration time:
-
Permalink:
cms-cat/cmsstyle@0fd11b2207450c7b62f208f9fe11cccbb679c49d -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/cms-cat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@0fd11b2207450c7b62f208f9fe11cccbb679c49d -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eda97ceb049bc85a86cab438d56d6755c66ce1c561f3505e713fc498e69a28f0
|
|
| MD5 |
3632afaefd008c873aa48198918342c6
|
|
| BLAKE2b-256 |
f91231f15a639fbc2cf89c001caa03014f667618317dc7fd03f8afef56b3ab84
|
Provenance
The following attestation bundles were made for cmsstyle-0.5.0-py3-none-any.whl:
Publisher:
cd.yml on cms-cat/cmsstyle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cmsstyle-0.5.0-py3-none-any.whl -
Subject digest:
eda97ceb049bc85a86cab438d56d6755c66ce1c561f3505e713fc498e69a28f0 - Sigstore transparency entry: 719696706
- Sigstore integration time:
-
Permalink:
cms-cat/cmsstyle@0fd11b2207450c7b62f208f9fe11cccbb679c49d -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/cms-cat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@0fd11b2207450c7b62f208f9fe11cccbb679c49d -
Trigger Event:
release
-
Statement type: