KaliVeda
Toolkit for HIC analysis
KVGeoImportINDRA.cpp
1 #include "KVGeoImportINDRA.h"
2 #include "KVDataAnalyser.h"
3 
5 
6 
7 
10 KVDetector* KVGeoImportINDRA::instantiate_new_detector(const TString& det_name, bool)
11 {
12  // Deduce plugin for new detector from name
13 
14  KVString _name(det_name);
15  _name.Begin("_");
16  TPluginHandler* ph = LoadPlugin("KVDetector", _name.Next());
17  auto d = (KVDetector*)ph->ExecPlugin(0);
18  d->SetName(det_name);
19  return d;
20 }
21 
22 
23 
26 
27 void KVGeoImportINDRA::ImportGeometry(std::vector<INDRAGeometryBuilder::theta_phi> CSI_COORDS)
28 {
29  // Use the known (theta,phi) positions of the centre of each CsI/phoswich in order to scan the array
30 
32 
34  std::cout << "\xd" << "Info in <KVGeoImport::ImportGeometry>: tested " << count << " directions" << std::flush;
35  for (auto& coord : CSI_COORDS) ImportGeometry_test_trajectory(coord.first, coord.second);
37  std::cout << "Info in <KVGeoImport::ImportGeometry>: tested " << count << " directions" << std::endl;
38  else
39  std::cout << std::endl;
40 
42 }
43 
44 
45 
46 
#define d(i)
static Bool_t IsRunningBatchAnalysis()
Specialised geometry importer for INDRA.
void ImportGeometry(std::vector< INDRAGeometryBuilder::theta_phi >)
Use the known (theta,phi) positions of the centre of each CsI/phoswich in order to scan the array.
void ImportGeometry_test_trajectory(double theta, double phi)
Definition: KVGeoImport.cpp:84
void ImportGeometry_setup_geo()
Definition: KVGeoImport.cpp:99
void ImportGeometry_init_import()
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73
void Begin(TString delim) const
Definition: KVString.cpp:565
KVString Next(Bool_t strip_whitespace=kFALSE) const
Definition: KVString.cpp:695
Longptr_t ExecPlugin(int nargs)
ClassImp(TPyArg)