Skip to content

Commit 078df08

Browse files
authored
Update DelphesO2LutWriter.cxx
1 parent abd591c commit 078df08

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ALICE3/Core/DelphesO2LutWriter.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ std::string DelphesO2LutWriter::LutBinning::toString() const
7373
return str;
7474
}
7575

76-
bool DelphesO2LutWriter::fatSolve(lutEntry_t& lutEntry,
76+
bool DelphesO2LutWriter::fatSolve(o2::delphes::DelphesO2TrackSmearer::lutEntry_t& lutEntry,
7777
float pt,
7878
float eta,
7979
const float mass,
@@ -147,7 +147,7 @@ bool DelphesO2LutWriter::fwdSolve(float*, float, float, float)
147147
}
148148
#endif
149149

150-
bool DelphesO2LutWriter::fwdPara(lutEntry_t& lutEntry, float pt, float eta, float mass, float Bfield)
150+
bool DelphesO2LutWriter::fwdPara(o2::delphes::DelphesO2TrackSmearer::lutEntry_t& lutEntry, float pt, float eta, float mass, float Bfield)
151151
{
152152
lutEntry.valid = false;
153153

@@ -230,7 +230,7 @@ void DelphesO2LutWriter::lutWrite(const char* filename, int pdg, float field, si
230230
}
231231

232232
// write header
233-
lutHeader_t lutHeader;
233+
o2::delphes::DelphesO2TrackSmearer::lutHeader_t lutHeader;
234234
// pid
235235
lutHeader.pdg = pdg;
236236
const TParticlePDG* particle = TDatabasePDG::Instance()->GetParticle(pdg);
@@ -245,7 +245,7 @@ void DelphesO2LutWriter::lutWrite(const char* filename, int pdg, float field, si
245245
return;
246246
}
247247
lutHeader.field = field;
248-
auto setMap = [](map_t& map, LutBinning b) {
248+
auto setMap = [](o2::delphes::DelphesO2TrackSmearer::map_t& map, LutBinning b) {
249249
map.log = b.log;
250250
map.nbins = b.nbins;
251251
map.min = b.min;
@@ -267,7 +267,7 @@ void DelphesO2LutWriter::lutWrite(const char* filename, int pdg, float field, si
267267
const int nrad = lutHeader.radmap.nbins;
268268
const int neta = lutHeader.etamap.nbins;
269269
const int npt = lutHeader.ptmap.nbins;
270-
lutEntry_t lutEntry;
270+
o2::delphes::DelphesO2TrackSmearer::lutEntry_t lutEntry;
271271

272272
// write entries
273273
int nCalls = 0;
@@ -319,7 +319,7 @@ void DelphesO2LutWriter::lutWrite(const char* filename, int pdg, float field, si
319319
retval = fwdSolve(lutEntry.covm, lutEntry.pt, lutEntry.eta, lutHeader.mass);
320320
}
321321
if (useDipole) { // Using the parametrization at the border of the barrel only for efficiency and momentum resolution
322-
lutEntry_t lutEntryBarrel;
322+
o2::delphes::DelphesO2TrackSmearer::lutEntry_t lutEntryBarrel;
323323
retval = fatSolve(lutEntryBarrel, lutEntry.pt, etaMaxBarrel, lutHeader.mass, itof, otof, q);
324324
lutEntry.valid = lutEntryBarrel.valid;
325325
lutEntry.covm[14] = lutEntryBarrel.covm[14];
@@ -339,7 +339,7 @@ void DelphesO2LutWriter::lutWrite(const char* filename, int pdg, float field, si
339339
LOGF(info, "Diagonalizing");
340340
diagonalise(lutEntry);
341341
LOGF(info, "Writing");
342-
lutFile.write(reinterpret_cast<char*>(&lutEntry), sizeof(lutEntry_t));
342+
lutFile.write(reinterpret_cast<char*>(&lutEntry), sizeof(o2::delphes::DelphesO2TrackSmearer::lutEntry_t));
343343
}
344344
}
345345
}
@@ -349,7 +349,7 @@ void DelphesO2LutWriter::lutWrite(const char* filename, int pdg, float field, si
349349
lutFile.close();
350350
}
351351

352-
void DelphesO2LutWriter::diagonalise(lutEntry_t& lutEntry)
352+
void DelphesO2LutWriter::diagonalise(o2::delphes::DelphesO2TrackSmearer::lutEntry_t& lutEntry)
353353
{
354354
static constexpr int kEig = 5;
355355
TMatrixDSym m(kEig);
@@ -399,7 +399,7 @@ TGraph* DelphesO2LutWriter::lutRead(const char* filename, int pdg, int what, int
399399
smearer.loadTable(pdg, filename);
400400
auto lutHeader = smearer.getLUTHeader(pdg);
401401
lutHeader->print();
402-
map_t lutMap;
402+
o2::delphes::DelphesO2TrackSmearer::map_t lutMap;
403403
switch (vs) {
404404
case kNch:
405405
lutMap = lutHeader->nchmap;

0 commit comments

Comments
 (0)