Skip to content

Commit ef2cc90

Browse files
committed
Add copyright notice
1 parent 5477673 commit ef2cc90

File tree

3 files changed

+43
-13
lines changed

3 files changed

+43
-13
lines changed

Common/Tools/Multiplicity/macros/runCalibration.C

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
void runCalibration(TString lInputFileName = "results/AR_544122_glauberNBD_ancestorMode2_hFT0C_BCs.root", double anchorPointPercentage = 90.0, double matchRange = 200.0, bool doNpartNcoll = false)
2-
{
3-
TFile* file = new TFile(lInputFileName.Data(), "READ");
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
//
12+
13+
/// @brief function to calibrate centrality
14+
/// @param lInputFileName name of input file.
15+
/// @param anchorPointPercentage anchor point percentage to use
16+
/// @param matchRange width of region in which data/glauber matching is to be done in rolling anchoring test
17+
/// @param doNpartNcoll wether or not to attempt calculating Npart, Ncoll in centrality bins
18+
void runCalibration( TString lInputFileName = "results/AR_544122_glauberNBD_ancestorMode2_hFT0C_BCs.root", double anchorPointPercentage = 90.0, double matchRange = 200.0, bool doNpartNcoll = false){
19+
TFile *file = new TFile(lInputFileName.Data(), "READ");
420
file->ls();
521

622
TH1F* hData = (TH1F*)file->Get("hV0MUltraFine");

Common/Tools/Multiplicity/macros/runGlauberFit.C

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
//
12+
113
#include "multCalibrator.h"
214
#include "multGlauberNBDFitter.h"
315

@@ -61,16 +73,15 @@ Double_t GetBoundaryForPercentile(TH1* histo, Double_t lPercentileRequested)
6173
return lReturnValue;
6274
}
6375

64-
// master fit function
65-
// parameters:
66-
// --- input file name (from the grid, typically centrality-studies task)
67-
// --- histogram name: histogram to use within the input file
68-
// --- ancestor mode: 0: truncation, 1: rounding, 2: effective / non-integer (default: 2)
69-
// --- free k: keep k value free (default Pb-Pb: fixed at 1.5)
70-
// --- use dMu/dNanc: allow for a varying production of Nch vs ancestor if Nancestor is large. Models detector saturation in effective manner.
71-
// --- free f: keep f value free (default Pb-Pb: fixed at 0.8)
72-
// --- f value: the value to use for fixed f
73-
76+
/// @brief master glauber fit function
77+
/// @param lInputFileName input file name (from the grid, typically centrality-studies task)
78+
/// @param histogramName histogram name: histogram to use within the input file
79+
/// @param ancestorMode ancestor mode: 0: truncation, 1: rounding, 2: effective / non-integer (default: 2)
80+
/// @param lFreek free k: keep k value free (default Pb-Pb: fixed at 1.5)
81+
/// @param use_dMu_dNanc use dMu/dNanc: allow for a varying production of Nch vs ancestor if Nancestor is large. Models detector saturation in effective manner.
82+
/// @param lFreef free f: keep f value free (default Pb-Pb: fixed at 0.8)
83+
/// @param lfvalue f value: the value to use for fixed f
84+
/// @param outputFile name of output file
7485
int runGlauberFit(TString lInputFileName = "AnalysisResultsLHC24ar.root", TString histogramName = "hFT0C_BCs", int ancestorMode = 2, Bool_t lFreek = kFALSE, Bool_t use_dMu_dNanc = kFALSE, Bool_t lFreef = kFALSE, Float_t lfvalue = 0.800, TString outputFile = "output.root")
7586
{
7687
gStyle->SetLineScalePS(1);

Common/Tools/Multiplicity/macros/saveCorrelation.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
// into the 2D correlation histogram necessary for the ALICE machinery
1414
// that performs Glauber + NBD fits.
1515

16+
/// @brief function to save Npart x Ncoll correlation to file for glauber fits
17+
/// @param filename input TGlauberMC ntuple file
18+
/// @param outputFile output file for Npart x Ncoll correlation TH2D
1619
void saveCorrelation(TString filename = "gmc-PbPb-snn68.21-md0.40-nd-1.0-rc1-smax99.0.root", TString outputFile = "basehistos.root")
1720
{
1821
TFile* fin = new TFile(filename.Data(), "READ");

0 commit comments

Comments
 (0)