Skip to content

Commit 826c7b7

Browse files
authored
Update FastTracker.h
1 parent 322d1d1 commit 826c7b7

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

ALICE3/Core/FastTracker.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class FastTracker
3535
virtual ~FastTracker() {}
3636

3737
void AddLayer(TString name, float r, float z, float x0, float xrho, float resRPhi = 0.0f, float resZ = 0.0f, float eff = 0.0f, int type = 0);
38-
DetLayer GetLayer(const int layer, bool ignoreBarrelLayers = true);
38+
DetLayer GetLayer(const int layer, bool ignoreBarrelLayers = true) const;
39+
int GetLayerIndex(const std::string name) const;
3940

4041
void AddSiliconALICE3v4(std::vector<float> pixelResolution);
4142
void AddSiliconALICE3v2(std::vector<float> pixelResolution);
@@ -55,6 +56,15 @@ class FastTracker
5556
// Definition of detector layers
5657
std::vector<DetLayer> layers;
5758
std::vector<std::vector<float>> hits; // bookkeep last added hits
59+
void SetRadiationLength(const std::string layerName, float x0) { layers[GetLayerIndex(layerName)].x0 = x0; }
60+
void SetRadius(const std::string layerName, float r) { layers[GetLayerIndex(layerName)].r = r; }
61+
void SetResolutionRPhi(const std::string layerName, float resRPhi) { layers[GetLayerIndex(layerName)].resRPhi = resRPhi; }
62+
void SetResolutionZ(const std::string layerName, float resZ) { layers[GetLayerIndex(layerName)].resZ = resZ; }
63+
void SetResolution(const std::string layerName, float resRPhi, float resZ)
64+
{
65+
SetResolutionRPhi(layerName, resRPhi);
66+
SetResolutionZ(layerName, resZ);
67+
}
5868

5969
// operational
6070
bool applyZacceptance; // check z acceptance or not
@@ -75,6 +85,17 @@ class FastTracker
7585
float avgRapidity;
7686
float lhcUPCScale;
7787
float upcBackgroundMultiplier;
88+
float fMinRadTrack = 132.;
89+
90+
// Setters and getters
91+
void SetIntegrationTime(float t) { integrationTime = t; }
92+
void SetMaxRadiusOfSlowDetectors(float r) { maxRadiusSlowDet = r; }
93+
void SetAvgRapidity(float y) { avgRapidity = y; }
94+
void SetdNdEtaCent(float d) { dNdEtaCent = d; }
95+
void SetLhcUPCscale(float s) { lhcUPCScale = s; }
96+
void SetBField(float b) { magneticField = b; }
97+
void SetMinRadTrack(float r) { fMinRadTrack = r; }
98+
// void SetAtLeastHits(int n) { fMinRadTrack = n; }
7899

79100
uint64_t covMatOK; // cov mat has negative eigenvals
80101
uint64_t covMatNotOK; // cov mat has negative eigenvals
@@ -84,6 +105,7 @@ class FastTracker
84105
int nSiliconPoints; // silicon-based space points added to track
85106
int nGasPoints; // tpc-based space points added to track
86107
std::vector<float> goodHitProbability;
108+
float GetGoodHitProb(int layer) const { return goodHitProbability[layer]; }
87109

88110
ClassDef(FastTracker, 1);
89111
};

0 commit comments

Comments
 (0)