Belle II Software  release-06-02-00
CDCDatabaseImporter.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #pragma once
9 
10 #include <string>
11 #include <TObject.h>
12 
13 namespace Belle2 {
23 
24  public:
25 
32  {
33  }
34 
38  CDCDatabaseImporter(int fexp, int frun, int lexp, int lrun):
39  m_firstExperiment(fexp), m_firstRun(frun),
40  m_lastExperiment(lexp), m_lastRun(lrun)
41  {
42  }
43 
44 
49  {}
50 
54  void importChannelMap(std::string fileName);
60 
64  void importFEElectronics(std::string fileName);
69 
73  void importEDepToADC(std::string fileName);
78 
82  void importTimeZero(std::string fileName);
87  void printTimeZero();
88 
92  void importADCDeltaPedestal(std::string fileName);
93 
98 
104 
108  void importBadWire(std::string fileName);
113  void printBadWire();
114 
118  void importPropSpeed(std::string fileName);
124 
128  void importTimeWalk(std::string fileName);
134 
138  void importXT(std::string fileName);
143  void printXT();
144 
148  void importSigma(std::string fileName);
153  void printSigma();
154 
158  void importFFactor(std::string fileName);
163  void printFFactor();
164 
168  void importDisplacement(std::string fileName);
169 
175 
179  void importWirPosAlign(std::string fileName);
185 
189  void importWirPosMisalign(std::string fileName);
195 
203  void importCDCWireHitRequirements(const std::string& jsonFileName) const;
209 
211  void importCDCCrossTalkLibrary(const std::string& rootFileName) const;
212 
215 
217  void testCDCCrossTalkLibrary(bool spotChecks = false) const;
218 
219  private:
220 
227  int m_lastRun;
229  };
230 
232 } // Belle2 namespace
CDC database importer.
CDCDatabaseImporter(int fexp, int frun, int lexp, int lrun)
Constructor.
void printFFactor()
Get the fudge factor table from the database and print it.
void printEDepToADC()
Get edep-to-adc params.
void importWirPosMisalign(std::string fileName)
Import wire misalignment table to the database.
void printTimeWalk()
Get the time-walk coeff.
void printSigma()
Get the sigma table from the database and print it.
void printDisplacement()
Get the displacement of wire position from the database and print it.
void importADCDeltaPedestal(std::string fileName)
Import ADC delta pedestal table to the data base specifying the text data.
void printCDCWireHitRequirements() const
Get CDCWireHits cut values from the database and print them.
void printPropSpeed()
Get the propspeed table from the database and print it.
void importDisplacement(std::string fileName)
Import displacement of wire position to the database.
void importBadWire(std::string fileName)
Import badwire table to the data base.
void importADCDeltaPedestal()
Import ADC delta pedestal with all 0.
void importFFactor(std::string fileName)
Import fudge factor table to the database.
void printWirPosMisalign()
Get the wire misalignment table from the database and print it.
void importCDCCrossTalkLibrary(const std::string &rootFileName) const
Import crosstalk library prepared in rootFileName.
void printXT()
Get the xt table from the database and print it.
void importSigma(std::string fileName)
Import sigma table to the database.
void printChannelMap()
Get the channel map from the database and print it.
void printADCDeltaPedestal()
Get the ADC delta pedestal table from the database and print it.
int m_lastExperiment
Last experiment.
void printBadWire()
Get the badwire table from the database and print it.
void printTimeZero()
Get the t0 table from the database and print it.
void importPropSpeed(std::string fileName)
Import propspeed table to the database.
void importChannelMap(std::string fileName)
Import channel map to the data base.
void importEDepToADC(std::string fileName)
Import edep-to-adc params.
CDCDatabaseImporter()
Default constructor.
void printCDCCrossTalkLibrary() const
Print the content of the crosstalk library.
void importXT(std::string fileName)
Import xt table to the database.
void printFEElectronics()
Get FEE params.
void printWirPosAlign()
Get the wire alignment table from the database and print it.
void testCDCCrossTalkLibrary(bool spotChecks=false) const
Do some basic testing of the CDCCrossTalkLibrary.
void importFEElectronics(std::string fileName)
Import FEE params.
int m_firstExperiment
CDC geometory parameter.
void importTimeZero(std::string fileName)
Import t0 table to the data base.
virtual ~CDCDatabaseImporter()
Destructor.
void importWirPosAlign(std::string fileName)
Import wire alignment table to the database.
void importTimeWalk(std::string fileName)
Import time-walk coeff.
void importCDCWireHitRequirements(const std::string &jsonFileName) const
Import CDCWireHits cut values to the database.
Abstract base class for different kinds of events.