Skip to content

Commit 729f18c

Browse files
committed
remove files
1 parent ac02403 commit 729f18c

6 files changed

Lines changed: 12 additions & 148 deletions

File tree

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
82 83 80 81 89 91 88 90 93 95 92 94 4 6 5 7 8 10 9 11 78 79 76 77 74 75 72 73 85 87 84 86 0 2 1 3 16 17 18 19 71 70 69 68 63 62 61 60 12 13 14 15 20 21 22 23 67 66 65 64 51 49 50 48 38 36 39 37 25 24 27 26 29 28 31 30 59 57 58 56 55 53 54 52 46 44 47 45 42 40 43 41 33 32 35 34 117 119 116 118 113 115 112 114 124 126 125 127 128 130 129 131 106 107 104 105 193 195 192 194 109 111 108 110 120 122 121 123 196 197 198 199 140 141 142 143 102 103 100 101 98 99 96 97 132 133 134 135 136 137 138 139 187 186 185 184 183 182 181 180 145 144 147 146 148 149 151 150 191 190 189 188 211 210 209 208 171 169 170 168 158 156 159 157 206 204 207 205
22
153 152 155 154 179 177 178 176 175 173 174 172 162 160 163 161 166 164 167 165
3-

Detectors/FIT/FT0/base/include/FT0Base/Geometry.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Geometry
4343

4444
///
4545
TVector3 centerMCP(int imcp) { return mMCP[imcp]; }
46-
TVector3 tiltMCP(int imcp) { return mAngels[imcp]; }
46+
TVector3 tiltMCP(int imcp) { return mAngles[imcp]; }
4747

4848
static constexpr int Nchannels = 229; // number of LUT channels
4949
static constexpr int Nsensors = 208; // number of channels
@@ -56,12 +56,6 @@ class Geometry
5656
static constexpr o2::detectors::DetID::ID getDetID() { return o2::detectors::DetID::FT0; }
5757
void setAsideModules();
5858
void setCsideModules();
59-
const char* getSymbolicName(int index) const
60-
{
61-
/// return symbolic name of sensor
62-
LOG(INFO) << o2::base::GeometryManager::getSymbolicName(getDetID(), index);
63-
return o2::base::GeometryManager::getSymbolicName(getDetID(), index);
64-
}
6559
TGeoPNEntry* getPNEntry(int index) const
6660
{
6761
/// Get a pointer to the TGeoPNEntry of a chip identified by 'index'
@@ -71,8 +65,7 @@ class Geometry
7165

7266
private:
7367
TVector3 mMCP[52];
74-
TVector3 mAngels[28];
75-
static std::string sSensorName; ///< Sensor name
68+
TVector3 mAngles[28];
7669

7770
ClassDefNV(Geometry, 2);
7871
};

Detectors/FIT/FT0/base/src/Geometry.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void Geometry::setCsideModules()
108108
ac[i] *= 180 / TMath::Pi();
109109
bc[i] *= 180 / TMath::Pi();
110110
gc[i] = -1 * ac[i];
111-
mAngels[i].SetXYZ(ac[i], bc[i], gc[i]);
111+
mAngles[i].SetXYZ(ac[i], bc[i], gc[i]);
112112
mMCP[i + NCellsA].SetXYZ(xc2[i], yc2[i], zc2[i]);
113113
}
114114
}

Detectors/FIT/FT0/calibration/include/FT0Calibration/FT0CollectCalibInfo.h

Lines changed: 0 additions & 118 deletions
This file was deleted.

Detectors/FIT/FT0/macros/FT0Misaligner.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ void FT0Misaligner(const std::string& ccdbHost = "http://ccdb-test.cern.ch:8080"
3232

3333
// FT0 detector
3434
//set A side
35-
std::string symNameA = "/cave_1/barrel_1/FT0A_1";
35+
std::string symNameA = "FT0A";
3636
pars = generateMisalignment(xA, yA, zA, psiA, thetaA, phiA);
3737
params.emplace_back(symNameA.c_str(), -1, pars[0], pars[1], pars[2], pars[3], pars[4], pars[5], glo);
3838
//set C side
39-
std::string symNameC = "/cave_1/barrel_1/FT0C_1";
39+
std::string symNameC = "FT0C";
4040
pars = generateMisalignment(xC, yC, zC, psiC, thetaC, phiC);
4141
params.emplace_back(symNameC.c_str(), -1, pars[0], pars[1], pars[2], pars[3], pars[4], pars[5], glo);
4242

@@ -47,7 +47,7 @@ void FT0Misaligner(const std::string& ccdbHost = "http://ccdb-test.cern.ch:8080"
4747
map<string, string> metadata; // can be empty
4848
api.init(ccdbHost.c_str()); // or http://localhost:8080 for a local installation
4949
// store abitrary user object in strongly typed manner
50-
// api.storeAsTFileAny(&params, path, metadata, tmin, tmax);
50+
api.storeAsTFileAny(&params, path, metadata, tmin, tmax);
5151
}
5252

5353
if (!fileName.empty()) {

Detectors/FIT/FT0/simulation/src/Detector.cxx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -361,39 +361,29 @@ void Detector::addAlignableVolumes() const
361361
}
362362

363363
TString volPath = Form("/cave_1/barrel_1");
364-
TString symName = Form("/cave_1/barrel_1");
365-
LOG(INFO) << symName << " <-> " << volPath;
366364
//set A side
367365
TString volPathA = volPath + Form("/FT0A_1");
368-
TString symNameA = symName + Form("/FT0A_1");
366+
TString symNameA = "FT0A";
369367
LOG(INFO) << symNameA << " <-> " << volPathA;
370368
if (!gGeoManager->SetAlignableEntry(symNameA.Data(), volPathA.Data())) {
371369
LOG(FATAL) << "Unable to set alignable entry ! " << symNameA << " : " << volPathA;
372370
}
373371
//set C side
374372
TString volPathC = volPath + Form("/FT0C_1");
375-
TString symNameC = symName + Form("/FT0C_1");
373+
TString symNameC = "FT0C";
376374
LOG(INFO) << symNameC << " <-> " << volPathC;
377375
if (!gGeoManager->SetAlignableEntry(symNameC.Data(), volPathC.Data())) {
378376
LOG(FATAL) << "Unable to set alignable entry ! " << symNameA << " : " << volPathA;
379377
}
380378
TString volPathMod, symNameMod;
381-
for (Int_t imod = 0; imod < 24; imod++) {
382-
volPathMod = volPathA + Form("/0MOD_%d", imod);
383-
symNameMod = symNameA + Form("/0MOD_%d", imod);
379+
for (Int_t imod = 0; imod < Geometry::NCellsA + Geometry::NCellsC; imod++) {
380+
TString volPath = (imod < Geometry::NCellsA) ? volPathA : volPathC;
381+
volPathMod = volPath + Form("/0MOD_%d", imod);
382+
symNameMod = Form("0MOD_%d", imod);
384383
if (!gGeoManager->SetAlignableEntry(symNameMod.Data(), volPathMod.Data())) {
385384
LOG(FATAL) << (Form("Alignable entry %s not created. Volume path %s not valid", symNameMod.Data(), volPathMod.Data()));
386385
}
387386
}
388-
389-
for (Int_t imod = 24; imod < 52; imod++) {
390-
volPathMod = volPathC + Form("/0MOD_%d", imod);
391-
symNameMod = symNameC + Form("/0MOD_%d", imod);
392-
if (!gGeoManager->SetAlignableEntry(symNameMod.Data(), volPathMod.Data())) {
393-
LOG(FATAL) << (Form("Alignable entry %s not created. Volume path %s not valid", symNameMod.Data(), volPathMod.Data()));
394-
}
395-
}
396-
return;
397387
}
398388

399389
// Class wrapper for construction of FT0-A support structure

0 commit comments

Comments
 (0)