1 /**************************************************************************
2 * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 // Comment describing what this class does needed!
18 // $Id: JConst.h,v 1.5 2008/05/08 15:19:52 djkim Exp $
20 ////////////////////////////////////////////////////
24 \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
26 \version $Revision: 1.5 $
27 \date $Date: 2008/05/08 15:19:52 $
29 ////////////////////////////////////////////////////
34 #define JUNUSED(expr) do { (void)(expr); } while (0)
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 //
44 #define kMaxNoRuns 100 // Maximum no of runs in a nanoDST file
45 #define kMaxNoEPBin 24
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;
55 //====================== particle types ============================================
56 const int kNumberOfParticleTypes = 10;
57 enum particleType {kJHadron, kJPion, kJKaon, kJProton, kJPhoton, kJDecayphoton, kJPizero, kJEta,kJHadronMC, kJJet, kJNone};
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"};
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,
71 kINT7TriggerBitJCorran, kJNTriggerBit
73 const int kRangeTriggerTableAlice = 50;
74 const int kRangeTriggerTableJCorran = 16;
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 };
82 const char* const kTriggerParticleTypeName[] =
83 {"TriggParticles","LeadingParticle","IsolatedParticle"};
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"};
91 enum EPType { kEPV0A, kEPV0C, kEPV0AC, kNEPType };
92 const int kNHarmonics = 5;
94 enum TEMC {kPbSc, kPbGl};