16#include "ReadCosmicRayData/StripMapper.h"
21 CosmicRayDataSetID = dataset;
29 if(CosmicRayDataSetID ==
"CR201909") {
31 TString dir = gSystem->ExpandPathName(
"$READCOSMICRAYDATAROOT");
32 dir +=
"/dat/CR201909/";
35 TString mapname = dir;
37 std::string titleline;
40 const int nsheet[nlayer] = {1, 2, 2};
42 int nstrip[nlayer][nview] = {{856, 1173}, {630, 1077}, {832, 1395}};
45 for(
int ilayer = 0; ilayer < nlayer; ilayer++) {
46 for(
int isheet = 0; isheet < nsheet[ilayer]; isheet++) {
47 for(
int iview = 0; iview < nview; iview++) {
49 int layerid = ilayer + 1;
50 int sheetid = isheet + 1;
53 mapname +=
"mapping_L";
57 if(iview == 0) mapname +=
"_x.csv";
58 else mapname +=
"_v.csv";
59 std::cout <<
"StripMapper::FillMap, reading " << mapname << std::endl;
63 std::cout <<
"StripMapper::FillMap, file not there!" << std::endl;
67 std::getline(input, titleline);
77 for(
int istrip = 0; istrip < nstrip[ilayer][iview]; istrip++) {
82 >> mapping[istrip][ilayer][isheet][iview][0]
83 >> mapping[istrip][ilayer][isheet][iview][1]
84 >> mapping[istrip][ilayer][isheet][iview][2];
104 return mapping[strip][layer][sheet][type][0];
108 return mapping[strip][layer][sheet][type][1];
112 return mapping[strip][layer][sheet][type][2];
int GetFEB(int stripid, int striptype, int layerid, int sheetid)
int GetTIGER(int stripid, int striptype, int layerid, int sheetid)
StripMapper(TString name)
int GetGEMROC(int stripid, int striptype, int layerid, int sheetid)