Belle II Software  release-05-01-25
CDCDatabaseImporter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Makoto Uchida *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <string>
13 #include <TObject.h>
14 
15 namespace Belle2 {
24  class CDCDatabaseImporter {
25 
26  public:
27 
34  {
35  }
36 
40  CDCDatabaseImporter(int fexp, int frun, int lexp, int lrun):
41  m_firstExperiment(fexp), m_firstRun(frun),
42  m_lastExperiment(lexp), m_lastRun(lrun)
43  {
44  }
45 
46 
50  virtual ~CDCDatabaseImporter()
51  {}
52 
56  void importChannelMap(std::string fileName);
61  void printChannelMap();
62 
66  void importFEElectronics(std::string fileName);
70  void printFEElectronics();
71 
75  void importEDepToADC(std::string fileName);
79  void printEDepToADC();
80 
84  void importTimeZero(std::string fileName);
89  void printTimeZero();
90 
94  void importADCDeltaPedestal(std::string fileName);
95 
100 
105  void printADCDeltaPedestal();
106 
110  void importBadWire(std::string fileName);
115  void printBadWire();
116 
120  void importPropSpeed(std::string fileName);
125  void printPropSpeed();
126 
130  void importTimeWalk(std::string fileName);
135  void printTimeWalk();
136 
140  void importXT(std::string fileName);
145  void printXT();
146 
150  void importSigma(std::string fileName);
155  void printSigma();
156 
160  void importFFactor(std::string fileName);
165  void printFFactor();
166 
170  void importDisplacement(std::string fileName);
171 
176  void printDisplacement();
177 
181  void importWirPosAlign(std::string fileName);
186  void printWirPosAlign();
187 
191  void importWirPosMisalign(std::string fileName);
196  void printWirPosMisalign();
197 
205  void importCDCWireHitRequirements(const std::string& jsonFileName) const;
210  void printCDCWireHitRequirements() const;
211 
213  void importCDCCrossTalkLibrary(const std::string& rootFileName) const;
214 
216  void printCDCCrossTalkLibrary() const;
217 
219  void testCDCCrossTalkLibrary(bool spotChecks = false) const;
220 
221  private:
222 
226  int m_firstExperiment;
227  int m_firstRun;
228  int m_lastExperiment;
229  int m_lastRun;
231  };
232 
234 } // Belle2 namespace
Belle2::CDCDatabaseImporter::importWirPosMisalign
void importWirPosMisalign(std::string fileName)
Import wire misalignment table to the database.
Belle2::CDCDatabaseImporter::CDCDatabaseImporter
CDCDatabaseImporter()
Default constructor.
Definition: CDCDatabaseImporter.h:39
Belle2::CDCDatabaseImporter::printADCDeltaPedestal
void printADCDeltaPedestal()
Get the ADC delta pedestal table from the database and print it.
Belle2::CDCDatabaseImporter::printCDCWireHitRequirements
void printCDCWireHitRequirements() const
Get CDCWireHits cut values from the database and print them.
Belle2::CDCDatabaseImporter::printXT
void printXT()
Get the xt table from the database and print it.
Belle2::CDCDatabaseImporter::importFEElectronics
void importFEElectronics(std::string fileName)
Import FEE params.
Belle2::CDCDatabaseImporter::importXT
void importXT(std::string fileName)
Import xt table to the database.
Belle2::CDCDatabaseImporter::printFFactor
void printFFactor()
Get the fudge factor table from the database and print it.
Belle2::CDCDatabaseImporter::importPropSpeed
void importPropSpeed(std::string fileName)
Import propspeed table to the database.
Belle2::CDCDatabaseImporter::m_firstExperiment
int m_firstExperiment
CDC geometory parameter.
Definition: CDCDatabaseImporter.h:234
Belle2::CDCDatabaseImporter::importWirPosAlign
void importWirPosAlign(std::string fileName)
Import wire alignment table to the database.
Belle2::CDCDatabaseImporter::printFEElectronics
void printFEElectronics()
Get FEE params.
Belle2::CDCDatabaseImporter::~CDCDatabaseImporter
virtual ~CDCDatabaseImporter()
Destructor.
Definition: CDCDatabaseImporter.h:58
Belle2::CDCDatabaseImporter::printPropSpeed
void printPropSpeed()
Get the propspeed table from the database and print it.
Belle2::CDCDatabaseImporter::printDisplacement
void printDisplacement()
Get the displacement of wire position from the database and print it.
Belle2::CDCDatabaseImporter::m_firstRun
int m_firstRun
First run.
Definition: CDCDatabaseImporter.h:235
Belle2::CDCDatabaseImporter::printTimeWalk
void printTimeWalk()
Get the time-walk coeff.
Belle2::CDCDatabaseImporter::printCDCCrossTalkLibrary
void printCDCCrossTalkLibrary() const
Print the content of the crosstalk library.
Belle2::CDCDatabaseImporter::printWirPosMisalign
void printWirPosMisalign()
Get the wire misalignment table from the database and print it.
Belle2::CDCDatabaseImporter::m_lastExperiment
int m_lastExperiment
Last experiment.
Definition: CDCDatabaseImporter.h:236
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CDCDatabaseImporter::printBadWire
void printBadWire()
Get the badwire table from the database and print it.
Belle2::CDCDatabaseImporter::testCDCCrossTalkLibrary
void testCDCCrossTalkLibrary(bool spotChecks=false) const
Do some basic testing of the CDCCrossTalkLibrary.
Belle2::CDCDatabaseImporter::importTimeWalk
void importTimeWalk(std::string fileName)
Import time-walk coeff.
Belle2::CDCDatabaseImporter::printChannelMap
void printChannelMap()
Get the channel map from the database and print it.
Belle2::CDCDatabaseImporter::printWirPosAlign
void printWirPosAlign()
Get the wire alignment table from the database and print it.
Belle2::CDCDatabaseImporter::printEDepToADC
void printEDepToADC()
Get edep-to-adc params.
Belle2::CDCDatabaseImporter::importChannelMap
void importChannelMap(std::string fileName)
Import channel map to the data base.
Belle2::CDCDatabaseImporter::printTimeZero
void printTimeZero()
Get the t0 table from the database and print it.
Belle2::CDCDatabaseImporter::printSigma
void printSigma()
Get the sigma table from the database and print it.
Belle2::CDCDatabaseImporter::importCDCCrossTalkLibrary
void importCDCCrossTalkLibrary(const std::string &rootFileName) const
Import crosstalk library prepared in rootFileName.
Belle2::CDCDatabaseImporter::importADCDeltaPedestal
void importADCDeltaPedestal()
Import ADC delta pedestal with all 0.
Belle2::CDCDatabaseImporter::importBadWire
void importBadWire(std::string fileName)
Import badwire table to the data base.
Belle2::CDCDatabaseImporter::importFFactor
void importFFactor(std::string fileName)
Import fudge factor table to the database.
Belle2::CDCDatabaseImporter::importTimeZero
void importTimeZero(std::string fileName)
Import t0 table to the data base.
Belle2::CDCDatabaseImporter::importEDepToADC
void importEDepToADC(std::string fileName)
Import edep-to-adc params.
Belle2::CDCDatabaseImporter::importSigma
void importSigma(std::string fileName)
Import sigma table to the database.
Belle2::CDCDatabaseImporter::importDisplacement
void importDisplacement(std::string fileName)
Import displacement of wire position to the database.
Belle2::CDCDatabaseImporter::m_lastRun
int m_lastRun
Last run.
Definition: CDCDatabaseImporter.h:237
Belle2::CDCDatabaseImporter::importCDCWireHitRequirements
void importCDCWireHitRequirements(const std::string &jsonFileName) const
Import CDCWireHits cut values to the database.