Skip to content

Commit

Permalink
Get custom hit info type to work
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkl committed Sep 18, 2019
1 parent b47cc46 commit 2b6096f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 17 deletions.
3 changes: 3 additions & 0 deletions Reconstruction/RecDriftChamber/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ find_package(HepMC)
find_package(DD4hep)
find_package(Geant4)

gaudi_add_dictionary(RecDriftChamber src/components/dictionary.h src/components/dictionary.xml
LINK_LIBRARIES GaudiKernel ROOT)

gaudi_add_module(RecDriftChamberPlugins
src/components/*.cpp
INCLUDE_DIRS FWCore FastJet ROOT FWCore HepMC FCCEDM PODIO DD4hep DetInterface DetSegmentation Geant4 DetCommon RecInterface RecDriftChamber
Expand Down
18 changes: 1 addition & 17 deletions Reconstruction/RecDriftChamber/src/components/CreateDCHHits.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,7 @@
#include "TString.h"
#include "TVector3.h"

struct hitINFO {
double DCA;
double MC_x;
double MC_y;
double MC_z;
double EdepSum;
double TOF;
TVector3 hit_start;
TVector3 hit_end;
int layerId;
int wireId;
int trackNum;
unsigned long cellId;
double hitLength;
double radius;
double debug_zpos;
};
#include "dictionary.h"

class IGeoSvc;

Expand Down
20 changes: 20 additions & 0 deletions Reconstruction/RecDriftChamber/src/components/dictionary.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@


#include "TVector3.h"
struct hitINFO {
double DCA;
double MC_x;
double MC_y;
double MC_z;
double EdepSum;
double TOF;
TVector3 hit_start;
TVector3 hit_end;
int layerId;
int wireId;
int trackNum;
unsigned long cellId;
double hitLength;
double radius;
double debug_zpos;
};
6 changes: 6 additions & 0 deletions Reconstruction/RecDriftChamber/src/components/dictionary.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<lcgdict>
<class name="hitINFO" >
</class>
<class name="std::vector<hitINFO>" >
</class>
</lcgdict>

0 comments on commit 2b6096f

Please sign in to comment.