Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:12:45

0001 #include "Constants.h"
0002 
0003 namespace Constants{
0004     // std::vector<double> centrality_edges = {0, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0};
0005     // std::vector<double> centrality_edges = {0, 3, 6, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100};
0006     
0007     // note : as of Feb 12, 2025, centrality bin: 1-3, 4-6, 7-10, 11-15, and so forth.
0008     std::vector<double> centrality_edges    = {1, 4, 7, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61, 66, 71, 76, 81, 86, 91, 96, 100}; 
0009     std::map<int, std::string> centrality_text = {
0010         {0, "0-3"},
0011         {1, "3-6"},
0012         {2, "6-10"},
0013         {3, "10-15"},
0014         {4, "15-20"},
0015         {5, "20-25"},
0016         {6, "25-30"},
0017         {7, "30-35"},
0018         {8, "35-40"},
0019         {9, "40-45"},
0020         {10, "45-50"},
0021         {11, "50-55"},
0022         {12, "55-60"},
0023         {13, "60-65"},
0024         {14, "65-70"},
0025         {15, "70-75"},
0026         {16, "75-80"},
0027         {17, "80-85"},
0028         {18, "85-90"},
0029         {19, "90-95"},
0030         {20, "95-100"},
0031         {70, "0-70"}
0032     };
0033 
0034     // note : vtxZQA
0035     std::pair<double, double> cut_vtxZDiff = {-3.5, 4.5}; // note : MBDz - INTTz
0036     std::pair<double, double> cut_TrapezoidalFitWidth = {1.5, 10}; // {2, 7}; // {1.5, 5.5};
0037     std::pair<double, double> cut_TrapezoidalFWHM = {2, 14}; // {2.5, 7.8}; // {2,8};
0038     std::pair<double, double> cut_INTTvtxZError = {-10000, 100000};
0039 
0040     // note : for analysis
0041     std::pair<double, double> cut_GlobalMBDvtxZ = {-60, 60};
0042     std::pair<double, double> cut_AnaVtxZ = {-10, 10}; // note : used by vtxZDist.cpp
0043 
0044     int cut_InttBcoFullDIff_next = 61;
0045 
0046     int Semi_inclusive_bin = 14;
0047     int Semi_inclusive_interval = 70; // note : 70, for example
0048 
0049     int HighNClus = 500;
0050 
0051     // note : for the vtxZ reco. efficiency
0052     double VtxZEdge_min = -45; // note : cm // note : used by vtxZDist.cpp
0053     double VtxZEdge_max = 45; // note : cm  // note : used by vtxZDist.cpp
0054     int nVtxZBin = 30;                      // note : used by vtxZDist.cpp
0055 
0056     double cut_GoodRecoVtxZ = 1.; // note : cm // note : used by vtxZDist.cpp
0057 
0058     // note : for the column multiplicity correction
0059     // note : this is for the ZID
0060     int nZbin = 100;
0061     double Zmin = -25;
0062     double Zmax = 25;
0063 
0064     // note : almost no change
0065     double EtaEdge_min = -2.7; // note : used by RestDist.h
0066     double EtaEdge_max = 2.7;  // note : used by RestDist.h
0067     int nEtaBin = 27;          // note : used by RestDist.h
0068 
0069     // note : below should never be changed
0070     double typeA_sensor_half_length_incm = 0.8; // note : [cm]
0071     double typeB_sensor_half_length_incm = 1.0; // note : [cm] 
0072 
0073     int B0L0_index = 3;
0074     int B0L1_index = 4;
0075     int B1L0_index = 5;
0076     int B1L1_index = 6;
0077     int nLadder_inner = 12;
0078     int nLadder_outer = 16;
0079 
0080 
0081     std::map<int, double> centrality_Hist_Ymax ={
0082         {0, 1100},
0083         {1, 1000},
0084         {2, 900},
0085         {3, 700},
0086         {4, 600},
0087         {5, 500},
0088         {6, 400},
0089         {7, 310},
0090         {8, 240},
0091         {9, 190},
0092         {10, 150},
0093         {11, 150},
0094         {12, 100},
0095         {13, 70},
0096         {14, 50},
0097         {15, 50},
0098         {16, 50},
0099         {17, 50},
0100         {18, 50},
0101         {19, 50},
0102         {20, 50},
0103         {70, 360}
0104     };
0105 }