Skip to content

Commit de5637e

Browse files
dstoccoshahor02
authored andcommitted
Move MID MCLabel to DataFormatsMID
1 parent 353a5ec commit de5637e

File tree

18 files changed

+28
-24
lines changed

18 files changed

+28
-24
lines changed

DataFormats/Detectors/MUON/MID/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@
1111

1212
o2_add_library(
1313
DataFormatsMID
14-
SOURCES src/ColumnData.cxx src/Cluster.cxx src/CTF.cxx src/ROBoard.cxx
15-
src/Track.cxx src/MCClusterLabel.cxx
14+
SOURCES src/ColumnData.cxx
15+
src/Cluster.cxx
16+
src/CTF.cxx
17+
src/ROBoard.cxx
18+
src/Track.cxx
19+
src/MCClusterLabel.cxx
20+
src/MCLabel.cxx
1621
PUBLIC_LINK_LIBRARIES
1722
Boost::serialization O2::MathUtils O2::CommonDataFormat
1823
O2::SimulationDataFormat O2::DetectorsCommonDataFormats
@@ -26,4 +31,5 @@ o2_target_root_dictionary(
2631
include/DataFormatsMID/ROFRecord.h
2732
include/DataFormatsMID/Track.h
2833
include/DataFormatsMID/CTF.h
29-
include/DataFormatsMID/MCClusterLabel.h)
34+
include/DataFormatsMID/MCClusterLabel.h
35+
include/DataFormatsMID/MCLabel.h)

Detectors/MUON/MID/Simulation/include/MIDSimulation/MCLabel.h renamed to DataFormats/Detectors/MUON/MID/include/DataFormatsMID/MCLabel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file MIDSimulation/MCLabel.h
12+
/// \file DataFormatsMID/MCLabel.h
1313
/// \brief Label for MID
1414
/// \author Diego Stocco <Diego.Stocco at cern.ch>
1515
/// \date 27 February 2019
@@ -74,9 +74,9 @@ class MCLabel : public o2::MCCompLabel
7474
int getLastStrip() const { return get(sMaskStrip, sOffsetStripLast); }
7575

7676
/// Gets the line number
77-
static int getLine(int strip) { return strip / 4; }
77+
static int getLine(int strip) { return strip / 16; }
7878
/// Gets the strip number in line
79-
static int getStripInLine(int strip) { return strip % 4; }
79+
static int getStripInLine(int strip) { return strip % 16; }
8080
/// Gets the strip
8181
static int getStrip(int strip, int line) { return 16 * line + strip; }
8282

DataFormats/Detectors/MUON/MID/src/DataFormatsMIDLinkDef.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@
3131
#include "SimulationDataFormat/MCTruthContainer.h"
3232
#pragma link C++ class o2::mid::MCClusterLabel + ;
3333
#pragma link C++ class o2::dataformats::MCTruthContainer < o2::mid::MCClusterLabel> + ;
34+
#pragma link C++ class o2::mid::MCLabel + ;
35+
#pragma link C++ class o2::dataformats::MCTruthContainer < o2::mid::MCLabel> + ;
3436

3537
#endif

Detectors/MUON/MID/Simulation/src/MCLabel.cxx renamed to DataFormats/Detectors/MUON/MID/src/MCLabel.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file MID/Simulation/src/MCLabel.cxx
12+
/// \file MID/src/MCLabel.cxx
1313
/// \brief Implementation of MC label for MID
1414
/// \author Diego Stocco <Diego.Stocco at cern.ch>
1515
/// \date 27 February 2019
1616

17-
#include "MIDSimulation/MCLabel.h"
17+
#include "DataFormatsMID/MCLabel.h"
1818

1919
ClassImp(o2::mid::MCLabel);
2020

Detectors/MUON/MID/Simulation/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ o2_add_library(
2222
src/Geometry.cxx
2323
src/Hit.cxx
2424
src/Materials.cxx
25-
src/MCLabel.cxx
2625
src/PreClusterLabeler.cxx
2726
src/Stepper.cxx
2827
src/TrackLabeler.cxx
@@ -40,7 +39,6 @@ o2_target_root_dictionary(
4039
include/MIDSimulation/Digitizer.h
4140
include/MIDSimulation/DigitsMerger.h
4241
include/MIDSimulation/Hit.h
43-
include/MIDSimulation/MCLabel.h
4442
include/MIDSimulation/Stepper.h)
4543

4644
o2_data_file(COPY data DESTINATION Detectors/MID/simulation)

Detectors/MUON/MID/Simulation/include/MIDSimulation/Digitizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "MIDSimulation/ChamberResponse.h"
2828
#include "MIDSimulation/ChamberEfficiencyResponse.h"
2929
#include "MIDSimulation/Hit.h"
30-
#include "MIDSimulation/MCLabel.h"
30+
#include "DataFormatsMID/MCLabel.h"
3131

3232
namespace o2
3333
{

Detectors/MUON/MID/Simulation/include/MIDSimulation/DigitsMerger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "SimulationDataFormat/MCTruthContainer.h"
2121
#include "DataFormatsMID/ROFRecord.h"
2222
#include "DataFormatsMID/ColumnData.h"
23-
#include "MIDSimulation/MCLabel.h"
23+
#include "DataFormatsMID/MCLabel.h"
2424

2525
namespace o2
2626
{

Detectors/MUON/MID/Simulation/include/MIDSimulation/PreClusterLabeler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "SimulationDataFormat/MCTruthContainer.h"
2222
#include "SimulationDataFormat/MCCompLabel.h"
2323
#include "MIDClustering/PreCluster.h"
24-
#include "MIDSimulation/MCLabel.h"
24+
#include "DataFormatsMID/MCLabel.h"
2525

2626
namespace o2
2727
{

Detectors/MUON/MID/Simulation/src/MIDSimulationLinkDef.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@
2222
#pragma link C++ class o2::base::DetImpl < o2::mid::Detector> + ;
2323
#pragma link C++ class o2::mid::Hit + ;
2424
#pragma link C++ class std::vector < o2::mid::Hit> + ;
25-
#pragma link C++ class o2::mid::MCLabel + ;
26-
#pragma link C++ class o2::dataformats::MCTruthContainer < o2::mid::MCLabel> + ;
2725

2826
#endif

Detectors/MUON/MID/Workflow/include/MIDWorkflow/ColumnDataSpecsUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "SimulationDataFormat/MCTruthContainer.h"
3434
#include "DataFormatsMID/ColumnData.h"
3535
#include "DataFormatsMID/ROFRecord.h"
36-
#include "MIDSimulation/MCLabel.h"
36+
#include "DataFormatsMID/MCLabel.h"
3737

3838
namespace o2
3939
{

0 commit comments

Comments
 (0)