]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Correlations/JCORRAN/AliJConst.h
PWGCF/Correlations converted to native cmake
[u/mrichter/AliRoot.git] / PWGCF / Correlations / JCORRAN / AliJConst.h
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  **************************************************************************/
15
16 // Comment describing what this class does needed!
17
18 // $Id: JConst.h,v 1.5 2008/05/08 15:19:52 djkim Exp $
19
20 ////////////////////////////////////////////////////
21 /*!
22   \file JConst.h
23   \brief
24   \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
25   \email: djkim@jyu.fi
26   \version $Revision: 1.5 $
27   \date $Date: 2008/05/08 15:19:52 $
28 */
29 ////////////////////////////////////////////////////
30
31 #ifndef JCONST_H
32 #define JCONST_H
33
34 #define JUNUSED(expr) do { (void)(expr); } while (0)
35
36 //
37 //  Constants
38 //
39 // for JHisto and PhxJHisto
40 #define kMaxNoCentrBin 10   // Maximum no of centrality bins defined in JCard.h
41 #define kMaxTriggParticleType 35           // 
42 #define kMaxJetType  32          // 
43 #define kPtDim 15           // 
44 #define kMaxNoRuns 100      // Maximum no of runs in a nanoDST file
45 #define kMaxNoEPBin 24
46
47 const double kJPi           = 3.14159265358979; //TMath::Pi();
48 const double kJTwoPi        = 2*kJPi;
49 const double kJToRadian     = kJPi/180.;
50 const double kJToDegree     = 180./kJPi;
51 const double kElectronMass = .51099906e-3;
52 const double kPionMass     = .1395675;
53
54
55 //====================== particle types ============================================
56 const int kNumberOfParticleTypes = 10;
57 enum particleType   {kJHadron, kJPion, kJKaon, kJProton, kJPhoton, kJDecayphoton, kJPizero, kJEta,kJHadronMC, kJJet, kJNone};
58
59 const char* const kParticleTypeStrName[kNumberOfParticleTypes] =
60                     {"hadron", "pion", "kaon", "proton", "photon", "decayphoton", "pizero", "eta", "hadronMC", "none"};
61 const char* const kParticleProtoType[kNumberOfParticleTypes] =
62                      {"AliJTrack", "AliJTrack", "AliJTrack", "AliJTrack", "AliJPhoton", "AliJPhoton", "AliJPiZero", "AliJPiZero", "None"};
63
64 //=======================JCorran trigger table definition===========================
65 //internal JCorran trigger mask  TBit=0 is MinBias, TBit=1 HighMultiplicityTrigger
66 enum TriggerBitJCorran   {kMinBiasTriggerBitJCorran, kHighMultTriggerBitJCorran,
67                           kEmc0TriggerBitJCorran,
68                           kEmc1GammaTriggerBitJCorran, kEmc1JetTriggerBitJCorran,
69                           kCentralTriggerBitJCorran,kSemiCentralTriggerBitJCorran,
70                           kFastOnlyBitJCorran,
71                                                   kINT7TriggerBitJCorran, kJNTriggerBit
72                           };  
73 const int kRangeTriggerTableAlice   = 50;
74 const int kRangeTriggerTableJCorran = 16;
75
76 //==================================================================================
77 enum fillType { kReal, kMixed, kEtaGap };
78 enum corrFillType {kAzimuthFill=0,kPionFill=1};
79 enum corrType { kTriggType, kAssocType, kXeType, kLongType, kCentrType, kZVertType, kMassType, kEtaGapType, kDiJetType, kRGapType, kNoType, kNcorrType };
80 enum TriggerParticleType { kTriggParticles, kLeadingParticle, kIsolatedParticle }; 
81
82 const char* const kTriggerParticleTypeName[] = 
83       {"TriggParticles","LeadingParticle","IsolatedParticle"};
84
85 // JETs =====
86 const int kNJetAlg = 10;
87 enum JetAlg   {kkt,kantikt,ksiscone,krecomE,krecomB,kcdfmidpoint,kjade,kd0run2cone,kGF,kSimpleCone};
88 const char* const kJetAlgStrName[kNJetAlg] =
89                     {"kt","antikt","siscone","recomE","recomB","cdfmidpoint","jade","d0run2cone","GF","SimpleCone"};
90
91 enum EPType { kEPV0A, kEPV0C, kEPV0AC, kNEPType };
92 const int kNHarmonics = 5;
93 // PHENIX  constants
94 enum TEMC {kPbSc, kPbGl}; 
95
96 #endif