Skip to content
Snippets Groups Projects
Commit 764131f0 authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Make gHcDetectorMap global available

parent 0ab46de3
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,9 @@ THcDetectorMap::~THcDetectorMap() ...@@ -42,9 +42,9 @@ THcDetectorMap::~THcDetectorMap()
{ {
} }
//bool THcDetectorMap::compare(const ChaninMod *first, const ChaninMod *second) { bool THcDetectorMap::compare(const ChaninMod *first, const ChaninMod *second) {
// return((first->channel < second->channel)? true: false); return((first->channel < second->channel)? true: false);
//} }
struct Functor struct Functor
{ {
bool operator() (const THcDetectorMap::ChaninMod &first, const THcDetectorMap::ChaninMod &second) bool operator() (const THcDetectorMap::ChaninMod &first, const THcDetectorMap::ChaninMod &second)
......
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
#include "DllImport.h" #include "DllImport.h"
#endif #endif
// Global Analyzer variables. Defined in THaInterface implementation file. // Global Analyzer variables. Defined in THcInterface implementation file.
R__EXTERN class THcParmList* gHcParms; //List of global symbolic variables R__EXTERN class THcParmList* gHcParms; //List of global symbolic variables
R__EXTERN class THcDetectorMap* gHcDetectorMap; //Cached map file
#endif #endif
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include "THcHodoscope.h" #include "THcHodoscope.h"
#include "THaEvData.h" #include "THaEvData.h"
#include "THaDetMap.h" #include "THaDetMap.h"
#include "THcDetectorMap.h"
#include "THcGlobals.h"
#include "VarDef.h" #include "VarDef.h"
#include "VarType.h" #include "VarType.h"
#include "THaTrack.h" #include "THaTrack.h"
...@@ -69,7 +71,7 @@ THaAnalysisObject::EStatus THcHodoscope::Init( const TDatime& date ) ...@@ -69,7 +71,7 @@ THaAnalysisObject::EStatus THcHodoscope::Init( const TDatime& date )
// maximum number of hits after setting up the detector map // maximum number of hits after setting up the detector map
THcHitList::InitHitList(fDetMap, "THcHodoscopeHit", 100); THcHitList::InitHitList(fDetMap, "THcHodoscopeHit", 100);
if( gHcDetectorMap->FillMap("detectorname",fDetMap) < 0 ) { if( gHcDetectorMap->FillMap(fDetMap, "detectorname") < 0 ) {
Error( Here(here), "Error filling detectormap for %s.", Error( Here(here), "Error filling detectormap for %s.",
"detectorname"); "detectorname");
return kInitError; return kInitError;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment