Skip to content

Commit 50efbc3

Browse files
anerokhisawenzel
authored andcommitted
Fix namespace naming: o2::Data
1 parent fecaaed commit 50efbc3

File tree

24 files changed

+41
-42
lines changed

24 files changed

+41
-42
lines changed

DataFormats/simulation/include/SimulationDataFormat/PrimaryChunk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
namespace o2
1818
{
19-
namespace Data
19+
namespace data
2020
{
2121

2222
// structure describing an entity of work

DataFormats/simulation/include/SimulationDataFormat/Stack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace base
3939
class Detector;
4040
}
4141

42-
namespace Data
42+
namespace data
4343
{
4444
/// This class handles the particle stack for the transport simulation.
4545
/// For the stack FILO functunality, it uses the STL stack. To store

DataFormats/simulation/src/SimulationDataLinkDef.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#pragma link off all classes;
2323
#pragma link off all functions;
2424

25-
#pragma link C++ class o2::Data::Stack + ;
25+
#pragma link C++ class o2::data::Stack + ;
2626
#pragma link C++ class o2::sim::StackParam+;
2727
#pragma link C++ class o2::conf::ConfigurableParamHelper<o2::sim::StackParam>+;
2828
#pragma link C++ class o2::MCTrackT < double > +;
@@ -48,9 +48,9 @@
4848
#pragma link C++ class std::vector<o2::TrackReference>+;
4949
#pragma link C++ class o2::dataformats::MCTruthContainer<o2::TrackReference>+;
5050

51-
#pragma link C++ struct o2::Data::SubEventInfo+;
52-
#pragma link C++ class std::vector<o2::Data::SubEventInfo>+;
53-
#pragma link C++ struct o2::Data::PrimaryChunk+;
51+
#pragma link C++ struct o2::data::SubEventInfo+;
52+
#pragma link C++ class std::vector<o2::data::SubEventInfo>+;
53+
#pragma link C++ struct o2::data::PrimaryChunk+;
5454

5555
#pragma link C++ class o2::steer::RunContext + ;
5656
#pragma link C++ class o2::steer::EventPart + ;

DataFormats/simulation/src/Stack.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
using std::cout;
3737
using std::endl;
3838
using std::pair;
39-
using namespace o2::Data;
39+
using namespace o2::data;
4040

4141
// small helper function to append to vector at arbitrary position
4242
template <typename T, typename I>
@@ -642,5 +642,5 @@ void Stack::fillParentIDs(std::vector<int>& parentids) const
642642
} while (mother != -1);
643643
}
644644

645-
FairGenericStack* Stack::CloneStack() const { return new o2::Data::Stack(*this); }
646-
ClassImp(o2::Data::Stack)
645+
FairGenericStack* Stack::CloneStack() const { return new o2::data::Stack(*this); }
646+
ClassImp(o2::data::Stack)

DataFormats/simulation/test/MCTrack.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ BOOST_AUTO_TEST_CASE(MCTrack_test)
7070
// unit tests on stack
7171
BOOST_AUTO_TEST_CASE(Stack_test)
7272
{
73-
o2::Data::Stack st;
73+
o2::data::Stack st;
7474
int a;
7575
TMCProcess proc;
7676
// add a 2 primary particles
@@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(Stack_test)
8686
}
8787

8888
{
89-
o2::Data::Stack* inst = nullptr;
89+
o2::data::Stack* inst = nullptr;
9090
TFile f("StackOut.root", "OPEN");
9191
f.GetObject("Stack", inst);
9292
BOOST_CHECK(inst->getPrimaries().size() == 2);

Detectors/EMCAL/simulation/src/Detector.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Bool_t Detector::ProcessHits(FairVolume* v)
172172
lightyield = CalculateLightYield(eloss, fMC->TrackStep(), fMC->TrackCharge());
173173
lightyield /= geom->GetSampling();
174174

175-
auto o2stack = static_cast<o2::Data::Stack*>(fMC->GetStack());
175+
auto o2stack = static_cast<o2::data::Stack*>(fMC->GetStack());
176176
const bool isDaughterOfSeenTrack = o2stack->isTrackDaughterOf(partID, mCurrentTrackID);
177177
if (!isDaughterOfSeenTrack || detID != mCurrentCellID || !mCurrentHit) {
178178
// Condition for new hit:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Bool_t Detector::ProcessHits(FairVolume* v)
312312
o2::fit::HitType* Detector::AddHit(float x, float y, float z, float time, float energy, Int_t trackId, Int_t detId)
313313
{
314314
mHits->emplace_back(x, y, z, time, energy, trackId, detId);
315-
auto stack = (o2::Data::Stack*)fMC->GetStack();
315+
auto stack = (o2::data::Stack*)fMC->GetStack();
316316
stack->addHit(GetDetId());
317317
return &(mHits->back());
318318
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ o2::v0::Hit* Detector::addHit(Int_t trackId, Int_t cellId, Int_t particleId,
147147
{
148148

149149
mHits->emplace_back(trackId, cellId, startPos, endPos, startMom, startE, endTime, eLoss, eTot, eDep);
150-
auto stack = (o2::Data::Stack*)fMC->GetStack();
150+
auto stack = (o2::data::Stack*)fMC->GetStack();
151151
stack->addHit(GetDetId());
152152
return &(mHits->back());
153153
}

Detectors/HMPID/simulation/src/Detector.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void Detector::InitializeO2Detector()
5353
bool Detector::ProcessHits(FairVolume* v)
5454
{
5555
TString volname = fMC->CurrentVolName();
56-
auto stack = (o2::Data::Stack*)fMC->GetStack();
56+
auto stack = (o2::data::Stack*)fMC->GetStack();
5757

5858
//Treat photons
5959
//photon (Ckov or feedback) hits on module PC (Hpad)

Detectors/ITSMFT/ITS/simulation/src/Detector.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ Bool_t Detector::ProcessHits(FairVolume* vol)
283283
return kFALSE; // RS: can this happen? This method must be called for sensors only?
284284

285285
// Is it needed to keep a track reference when the outer ITS volume is encountered?
286-
auto stack = (o2::Data::Stack*)fMC->GetStack();
286+
auto stack = (o2::data::Stack*)fMC->GetStack();
287287
if (fMC->IsTrackExiting() && (lay == 0 || lay == 6)) {
288288
// Keep the track refs for the innermost and outermost layers only
289289
o2::TrackReference tr(*fMC, GetDetId());

0 commit comments

Comments
 (0)