#include <PndSttTubeIdMapCreatorRoot.h>
PndSttTubeIdMapCreatorRoot::PndSttTubeIdMapCreatorRoot |
( |
| ) |
|
PndSttTubeIdMapCreatorRoot::~PndSttTubeIdMapCreatorRoot |
( |
| ) |
|
|
virtual |
int PndSttTubeIdMapCreatorRoot::GetRow |
( |
TString & |
name | ) |
|
|
protected |
Definition at line 79 of file PndSttTubeIdMapCreatorRoot.cxx.
References i, pos, and val.
Referenced by CreateTubeMap().
80 std::string nameString(
name.Data());
82 std::vector<std::string> stringVector = sep.GetStringVector();
83 auto i = std::find_if(stringVector.begin(), stringVector.end(),[&](
const std::string&
val){
auto found =
val.find(
"strawLayer");
return found != std::string::npos;});
84 int pos = std::distance (stringVector.begin(),
i);
85 int strawLayer = std::stoi(stringVector[pos+1]);
Double_t val[nBoxes][nFEBox]
int PndSttTubeIdMapCreatorRoot::GetSector |
( |
TString & |
name | ) |
|
|
protected |
Definition at line 45 of file PndSttTubeIdMapCreatorRoot.cxx.
References i, pos, and val.
Referenced by CreateTubeMap().
46 std::string nameString(
name.Data());
48 std::vector<std::string> stringVector = sep.GetStringVector();
50 auto i = std::find_if(stringVector.begin(), stringVector.end(),[&](
const std::string&
val){
auto found =
val.find(
"sector");
return found != std::string::npos;});
51 int pos = std::distance (stringVector.begin(),
i);
53 int halfSide = std::stoi(stringVector[pos-1]);
54 int sectorId = std::stoi(stringVector[pos+1]);
60 if (halfSide == 0 && sectorId == 0)
62 else if (halfSide == 0 && sectorId == 1)
64 else if (halfSide == 0 && sectorId == 2)
66 else if (halfSide == 1 && sectorId == 0)
68 else if (halfSide == 1 && sectorId == 1)
70 else if (halfSide == 1 && sectorId == 2)
Double_t val[nBoxes][nFEBox]
The documentation for this class was generated from the following files: