Skip to content

Instantly share code, notes, and snippets.

@f-ilic
Last active May 26, 2017 08:16
Show Gist options
  • Save f-ilic/788f985cab5682f6b4b9495cfefa905b to your computer and use it in GitHub Desktop.
Save f-ilic/788f985cab5682f6b4b9495cfefa905b to your computer and use it in GitHub Desktop.

TProfile2Poly

Addition of TProfile2Poly class. It is analogous to TH2D/TProfile2D; except it allows the creation of profiles of histograms that have polygonal bins. Just for a quick recap some of the functionality includes:

  • Creatation of bins that allow filling with Fill()
  • Setting the error being calculated as either kERRORSPREAD or kERRORMEAN
  • Setting the bin content to either the Average or Error in Z for plotting purposes (SetContentToAverage() / SetContentToAverage())
  • Merging whole Profile2Polys

Tutorial

Two tutorials outlining the use of the added class can be found at:

  • root/tutorials/hist/tprofile2polyRealistic.C
  • root/tutorials/hist/tprofile2polyRealisticModuleError.C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment