An open API service indexing awesome lists of open source software.

https://github.com/sdtelectronics/rootmacros

CERN Root Macros For Visualization and Discrete Data Analysis
https://github.com/sdtelectronics/rootmacros

root-cern

Last synced: 12 months ago
JSON representation

CERN Root Macros For Visualization and Discrete Data Analysis

Awesome Lists containing this project

README

          

# CERN Root Macros
Macros For Visualization and Discrete Data Analysis On [CERN Root](https://root.cern/)

## Demos

### util.h
---
Utilities for plotting & helper functions, etc. Include to access all macros available in this project.

#### DrawP()
`shared_ptr* DrawP(shared_ptr objPtr, const char* opt = nullptr)`

### stemP.cc
---
Draw functions with stem plot style.

#### stemP()

`std::shared_ptr stemP(const TF1& func, const char* opt = "aps", double ll = 0, double ul = 0)`

Parameters

* func Function plotted
* opt Draw options ***For TGraph***
* lo Minimum value on X axis
* ul Maximum value on X axis
![Sa Function plotted by stemP](https://github.com/SdtElectronic/RootMacros/blob/master/ScrShot/sa.png "stemP Demo")

`DrawP(stemP(TF1("sa", "sin(x)/(x)", -12, 12)))`

### intP.cc
---
Create a TF1 which is the integral of a function.

#### intP()

![integral of gaus function](https://github.com/SdtElectronic/RootMacros/blob/master/ScrShot/intP.png "intP Demo")

### FFTP.cc
---

#### class TFFT

![FFT of sine function](https://github.com/SdtElectronic/RootMacros/blob/master/ScrShot/FFT.png "FFT Demo")