Skip to content

Commit ab5cf8a

Browse files
mfasDaktf
authored andcommitted
AliceO2-256: Fix dependency
- Add Matrix depencency for FairMCPoint - Reduce datatypes to primitive data types as arguments as indicated in the discussion of the PR
1 parent fe788b3 commit ab5cf8a

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

Detectors/EMCAL/base/include/EMCALBase/Point.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace AliceO2 {
3030
/// \param tof Time of the hit
3131
/// \param length Length of the segment
3232
/// \param EventId Event ID
33-
Point(Int_t shunt, Int_t primary, Int_t trackID, Int_t parentID, Int_t detID, Int_t initialEnergy, TVector3 pos, TVector3 mom,
33+
Point(Int_t shunt, Int_t primary, Int_t trackID, Int_t parentID, Int_t detID, Int_t initialEnergy, Double_t *pos, Double_t *mom,
3434
Double_t tof, Double_t eLoss, UInt_t EventId=0);
3535

3636
/// \brief Check whether the points are from the same parent and in the same detector volume

Detectors/EMCAL/base/src/Point.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Point::Point():
99
{
1010
}
1111

12-
Point::Point(Int_t shunt, Int_t primary, Int_t trackID, Int_t parentID, Int_t detID, Int_t initialEnergy, TVector3 pos, TVector3 mom,
12+
Point::Point(Int_t shunt, Int_t primary, Int_t trackID, Int_t parentID, Int_t detID, Int_t initialEnergy, Double_t *pos, Double_t *mom,
1313
Double_t tof, Double_t eLoss, UInt_t EventId):
1414
FairMCPoint(trackID, detID, pos, mom, tof, 0., eLoss, EventId),
1515
mShunt(shunt),

Detectors/EMCAL/simulation/include/EMCALSimulation/Detector.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ namespace AliceO2 {
2020

2121
virtual ~Detector();
2222

23-
virtual void Initialize();
23+
virtual void Initialize() final;
2424

25-
virtual Bool_t ProcessHits( FairVolume* v=0);
25+
virtual Bool_t ProcessHits( FairVolume* v=0) final;
2626

2727
Point *AddHit(Int_t shunt, Int_t trackID, Int_t parentID, Int_t primary, Double_t initialEnergy,
28-
Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length);
28+
Int_t detID, Double_t *pos, Double_t *mom, Double_t time, Double_t length);
2929

3030
virtual void Register();
3131

32-
virtual TClonesArray* GetCollection(Int_t iColl) const ;
32+
virtual TClonesArray* GetCollection(Int_t iColl) const final;
3333

34-
virtual void Reset();
34+
virtual void Reset() final;
3535

3636
protected:
3737

38-
virtual void CreateMaterials();
38+
virtual void CreateMaterials() final;
3939

4040
private:
4141

Detectors/EMCAL/simulation/src/Detector.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Bool_t Detector::ProcessHits( FairVolume* v) {
3535
}
3636

3737
Point *Detector::AddHit(Int_t shunt, Int_t trackID, Int_t parentID, Int_t primary, Double_t initialEnergy,
38-
Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t eLoss){
38+
Int_t detID, Double_t *pos, Double_t *mom, Double_t time, Double_t eLoss){
3939

4040
TClonesArray& refCollection = *mPointCollection;
4141
Int_t size = refCollection.GetEntriesFast();

cmake/O2Dependencies.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,10 @@ o2_define_bucket(
674674
DEPENDENCIES
675675
root_base_bucket
676676
fairroot_base_bucket
677+
MathCore
678+
Matrix
677679
ParBase
678-
680+
679681
INCLUDE_DIRECTORIES
680682
${FAIRROOT_INCLUDE_DIR}
681683
)
@@ -691,6 +693,7 @@ o2_define_bucket(
691693
RIO
692694
Graf
693695
Gpad
696+
Matrix
694697
EMCALBase
695698
DetectorsBase
696699
SimulationDataFormat
@@ -700,4 +703,3 @@ o2_define_bucket(
700703
${CMAKE_SOURCE_DIR}/Detectors/Base/include
701704
${CMAKE_SOURCE_DIR}/Detectors/EMCAL/base/include
702705
)
703-

0 commit comments

Comments
 (0)