AliPhysics  8d00e07 (8d00e07)
AliEMCalTriggerBinningFactory.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
17 #include <map>
18 #include <vector>
19 #include <TMath.h>
20 #include <TArrayD.h>
21 
22 namespace EMCalTriggerPtAnalysis {
23 
24 AliEMCalTriggerBinningFactory::AliEMCalTriggerBinningFactory() {
25  /*
26  * See header file for details
27  */
28 }
29 
30 void AliEMCalTriggerBinningFactory::Create(AliEMCalTriggerBinningComponent* const data) {
31  /*
32  * See header file for details
33  */
34  if(!data->GetBinning("pt")) data->SetBinning("pt", new DefaultPtBinning);
35  if(!data->GetBinning("eta")) data->SetBinning("eta", new DefaultEtaBinning);
36  if(!data->GetBinning("phi")) data->SetBinning("phi", new TLinearBinning(100, 0., 2*TMath::Pi()));
37  if(!data->GetBinning("zvertex")) data->SetBinning("zvertex", new DefaultZVertexBinning);
38  if(!data->GetBinning("centrality")) data->SetBinning("centrality", new TLinearBinning(5, 0., 100.));
39 }
40 
41 AliEMCalTriggerBinningFactory::MarkusPtBinning::MarkusPtBinning():
43 {
44  /*
45  * See header file for details
46  */
47  SetMinimum(0);
48  AddStep(2.5, 0.1);
49  AddStep(7., 0.25);
50  AddStep(10., 0.5);
51  AddStep(15., 1.);
52  AddStep(20., 2.5);
53  AddStep(30., 5.);
54  AddStep(100., 10.);
55  AddStep(200., 20.);
56 }
57 
58 AliEMCalTriggerBinningFactory::DefaultPtBinning::DefaultPtBinning() :
60 {
61  /*
62  * See header file for details
63  */
64  SetMinimum(0);
65  AddStep(1, 0.05);
66  AddStep(2, 0.1);
67  AddStep(4, 0.2);
68  AddStep(7, 0.5);
69  AddStep(16, 1);
70  AddStep(36, 2);
71  AddStep(40, 4);
72  AddStep(50, 5);
73  AddStep(100, 10);
74  AddStep(200, 20);
75 }
76 
77 } /* namespace EMCalTriggerPtAnalysis */
Class creating a linear binning, used in the histogram manager.
Helper class creating user defined custom binning.
Analysis of high- tracks in triggered events.