ATLAS Offline Software
Loading...
Searching...
No Matches
CalibHeadOperations.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef CalibHeadOperations_h
6#define CalibHeadOperations_h
7
8// c - c++
9#include <string>
10#include <vector>
11
12namespace coral {
13 class IQuery;
14 class AttributeList;
15} // namespace coral
16
17namespace MuonCalib {
18
20
22 public:
23 //=====================constructor - destructor=================================
25 virtual ~CalibHeadOperations();
26 //=====================publlic member functions=================================
27 // Get latest HeadId
28 int GetLatestHeadId();
29 // Get header information
30 bool GetHeadInfo(int &head_id, int &lowrun, int &uprun, int &lowtime, int &uptime);
31 // Open data connection for given head_id. head_id=-1 => Get latest header
32 CalibDbConnection *GetDataConnection(int head_id = -1, bool write = false, const std::string &writer_connection = "",
33 const std::string &writer_user = "", const std::string &writer_password = "");
34 //=====================private data members=====================================
35 private:
36 // connections
38 }; // class
39
40} // namespace MuonCalib
41
42#endif
CalibDbConnection * GetDataConnection(int head_id=-1, bool write=false, const std::string &writer_connection="", const std::string &writer_user="", const std::string &writer_password="")
CalibHeadOperations(CalibDbConnection &db_conn)
bool GetHeadInfo(int &head_id, int &lowrun, int &uprun, int &lowtime, int &uptime)
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.