O2-DQ User Interface 1.0.0
Loading...
Searching...
No Matches
tempMixingLibrary.h
Go to the documentation of this file.
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// Contact: iarsene@cern.ch, i.c.arsene@fys.uio.no
13//
14#include <TString.h>
15#include "PWGDQ/Core/MixingHandler.h"
16#include "PWGDQ/Core/VarManager.h"
17
18namespace o2::aod
19{
20namespace dqmixing
21{
22void SetUpMixing(MixingHandler* mh, const char* mixingVarible);
23} // namespace dqmixing
24} // namespace o2::aod
25
26void o2::aod::dqmixing::SetUpMixing(MixingHandler* mh, const char* mixingVarible)
27{
28
29 std::string nameStr = mixingVarible;
30 if (!nameStr.compare("Centrality1")) {
31 std::vector<float> fCentLimsHashing = {0.0f, 20.0f, 40.0f, 60.0f, 90.0f};
32 mh->AddMixingVariable(VarManager::kCentVZERO, fCentLimsHashing.size(), fCentLimsHashing);
33 }
34 if (!nameStr.compare("Centrality2")) {
35 std::vector<float> fCentLimsHashing = {0.0f, 10.0f, 20.0f, 40.0f, 60.0f, 90.0f};
36 mh->AddMixingVariable(VarManager::kCentVZERO, fCentLimsHashing.size(), fCentLimsHashing);
37 }
38 if (!nameStr.compare("Centrality3")) {
39 std::vector<float> fCentLimsHashing = {0.0f, 10.0f, 20.0f, 30.0f, 40.0f, 50.0f, 70.0f, 90.0f};
40 mh->AddMixingVariable(VarManager::kCentVZERO, fCentLimsHashing.size(), fCentLimsHashing);
41 }
42 if (!nameStr.compare("Centrality4")) {
43 std::vector<float> fCentLimsHashing = {0.0f, 10.0f, 20.0f, 30.0f, 40.0f, 50.0f, 60.0f, 70.0f, 80.0f, 90.0f};
44 mh->AddMixingVariable(VarManager::kCentVZERO, fCentLimsHashing.size(), fCentLimsHashing);
45 }
46 if (!nameStr.compare("Centrality5")) {
47 std::vector<float> fCentLimsHashing = {0.0f, 5.0f, 10.0f, 20.0f, 30.0f, 40.0f, 50.0f, 60.0f, 70.0f, 80.0f, 90.0f};
48 mh->AddMixingVariable(VarManager::kCentVZERO, fCentLimsHashing.size(), fCentLimsHashing);
49 }
50 if (!nameStr.compare("Centrality6")) {
51 std::vector<float> fCentLimsHashing = {0.0f, 2.5f, 5.0f, 7.5f, 10.0f, 20.0f, 30.0f, 40.0f, 50.0f, 60.0f, 70.0f, 80.0f, 90.0f};
52 mh->AddMixingVariable(VarManager::kCentVZERO, fCentLimsHashing.size(), fCentLimsHashing);
53 }
54
55 if (!nameStr.compare("Vtx1")) {
56 std::vector<float> fZLimsHashing = {-10.0f, 0.0f, 10.0f};
57 mh->AddMixingVariable(VarManager::kVtxZ, fZLimsHashing.size(), fZLimsHashing);
58 }
59 if (!nameStr.compare("Vtx2")) {
60 std::vector<float> fZLimsHashing = {-10.0f, -5.0f, 0.0f, 5.0f, 10.0f};
61 mh->AddMixingVariable(VarManager::kVtxZ, fZLimsHashing.size(), fZLimsHashing);
62 }
63 if (!nameStr.compare("Vtx3")) {
64 std::vector<float> fZLimsHashing = {-10.0f, -7.5f, -5.0f, -2.5f, 0.0f, 2.5f, 5.0f, 7.5f, 10.0f};
65 mh->AddMixingVariable(VarManager::kVtxZ, fZLimsHashing.size(), fZLimsHashing);
66 }
67}
void SetUpMixing(MixingHandler *mh, const char *mixingVarible)