ATLAS Offline Software
EMInsituDatabaseEntry.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
15 
17 
18 #ifndef EMINSITUDATABASEENTRY_H
19 #define EMINSITUDATABASEENTRY_H
20 
21 #include <string>
22 #include <vector>
23 
24 #include "TROOT.h"
25 
26 // do I really need a magic number?
27 #define EMInsituDatabase_EMClusterErrorsMatrixID 1327
28 
29 // class TDirectory;
30 
32 
34 {
35  public:
38 
40  EMInsituDatabaseEntry(const std::string& dbaseID);
41 
46 
49 
51  bool setMatrix(const EMClusterErrorsMatrix &apClusterErrorsMatrix);
53  bool getMatrix(EMClusterErrorsMatrix &apClusterErrorsMatrix) const;
54 
56  void setDatabaseID(std::string dbaseID);
58  const std::string& getDatabaseID() const;
59 
61  {
62  if (!m_vecInt_Info.empty()) return m_vecInt_Info[0];
63  return -1;
64  }
65 
66  void getBasicInformation(std::string &dbaseID, unsigned int &nSize_Strings, unsigned int &nSize_FloatInfo, unsigned int &nSize_IntInfo);
67 
68  // /** clear all information*/
69  void clear();
70 
72 
73  void debugPrint() const; // dump the contents to stdout for debugging
74 
75  protected:
76  // TDirectory *fTransient; //! current directory
77 
78 // Int_t m_ID;
79  std::string m_DatabaseID;
80  std::vector<std::string> m_vecString;
81  std::vector<Float_t> m_vecFloat_Data;
82  std::vector<Int_t> m_vecInt_Data;
83  std::vector<Float_t> m_vecFloat_Info;
84  std::vector<Int_t> m_vecInt_Info;
85 
86  // ClassDef(EMInsituDatabaseEntry, 1);
87 };
88 
89 
90 // I think we don't need storegate stuff
91 // #ifndef EMInsituRepresentation_OutsideAthena_h
92 // #include "CLIDSvc/CLASS_DEF.h"
93 // CLASS_DEF( Insitu::EMInsituDatabaseEntry , 180555189 , 1 )
94 // #endif
95 
96 #endif
EMInsituDatabaseEntry::~EMInsituDatabaseEntry
~EMInsituDatabaseEntry()=default
Default Destructor.
EMInsituDatabaseEntry::setMatrix
bool setMatrix(const EMClusterErrorsMatrix &apClusterErrorsMatrix)
Fill this APEMClusterErrorsEntry from given APEMClusterErrorsMatrix.
Definition: EMInsituDatabaseEntry.cxx:27
EMInsituDatabaseEntry::operator=
EMInsituDatabaseEntry & operator=(const EMInsituDatabaseEntry &ob)=default
= operator
EMInsituDatabaseEntry::m_vecInt_Info
std::vector< Int_t > m_vecInt_Info
Definition: EMInsituDatabaseEntry.h:84
EMInsituDatabaseEntry::EMInsituDatabaseEntry
EMInsituDatabaseEntry()
Default Constructor.
Definition: EMInsituDatabaseEntry.cxx:13
EMInsituDatabaseEntry::m_vecFloat_Data
std::vector< Float_t > m_vecFloat_Data
Definition: EMInsituDatabaseEntry.h:81
EMInsituDatabaseEntry::clone
EMInsituDatabaseEntry * clone() const
Definition: EMInsituDatabaseEntry.cxx:168
EMInsituDatabaseEntry::getDatabaseID
const std::string & getDatabaseID() const
Getting DatabaseID.
Definition: EMInsituDatabaseEntry.cxx:150
EMInsituDatabaseEntry::m_vecInt_Data
std::vector< Int_t > m_vecInt_Data
Definition: EMInsituDatabaseEntry.h:82
EMInsituDatabaseEntry::clear
void clear()
clear all information
Definition: EMInsituDatabaseEntry.cxx:157
EMInsituDatabaseEntry::whichTypeAmI
int whichTypeAmI()
Definition: EMInsituDatabaseEntry.h:60
EMInsituDatabaseEntry::m_vecFloat_Info
std::vector< Float_t > m_vecFloat_Info
Definition: EMInsituDatabaseEntry.h:83
EMInsituDatabaseEntry::m_DatabaseID
std::string m_DatabaseID
Definition: EMInsituDatabaseEntry.h:79
EMInsituDatabaseEntry
Definition: EMInsituDatabaseEntry.h:34
EMInsituDatabaseEntry::m_vecString
std::vector< std::string > m_vecString
Definition: EMInsituDatabaseEntry.h:80
EMInsituDatabaseEntry::debugPrint
void debugPrint() const
Definition: EMInsituDatabaseEntry.cxx:181
EMClusterErrorsMatrix
Definition: EMClusterErrorsMatrix.h:26
EMInsituDatabaseEntry::EMInsituDatabaseEntry
EMInsituDatabaseEntry(const EMInsituDatabaseEntry &ob)=default
Copy Constructor.
EMInsituDatabaseEntry::getBasicInformation
void getBasicInformation(std::string &dbaseID, unsigned int &nSize_Strings, unsigned int &nSize_FloatInfo, unsigned int &nSize_IntInfo)
Definition: EMInsituDatabaseEntry.cxx:173
EMInsituDatabaseEntry::getMatrix
bool getMatrix(EMClusterErrorsMatrix &apClusterErrorsMatrix) const
Fill APEfficiencyMatrix from this APEMClusterErrorsEntry object.
Definition: EMInsituDatabaseEntry.cxx:73
EMInsituDatabaseEntry::setDatabaseID
void setDatabaseID(std::string dbaseID)
Setting DatabaseID.
Definition: EMInsituDatabaseEntry.cxx:143