ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Folder Class Reference
Collaboration diagram for Folder:

Public Member Functions

 Folder (const DbConnection &theConnection, const FolderSpec &theFolder)
 
bool isValid () const
 
std::string description () const
 
const FolderSpecfolderSpec () const
 
cool::RecordSpecification foreignKeySpec ()
 
cool::RecordSpecification payloadSpec () const
 specification of the payload entries More...
 
bool isSingleVersion () const
 
std::string tag () const
 
const cool::IFolderPtr & ptr () const
 
cool::IObjectIteratorPtr objectIterator (bool) const
 
std::vector< cool::ChannelId > channels () const
 
std::vector< std::string > tags () const
 
 Folder (const DbConnection &theConnection, const FolderSpec &theFolder)
 
bool isValid () const
 
std::string description () const
 
const FolderSpecfolderSpec () const
 
cool::RecordSpecification foreignKeySpec ()
 
cool::RecordSpecification payloadSpec () const
 specification of the payload entries More...
 
bool isSingleVersion () const
 
std::string tag () const
 
const CoraCoolFolderPtrccPtr () const
 
const cool::IFolderPtr & ptr () const
 

Private Member Functions

bool checkWhetherCoraCool () const
 

Private Attributes

const DbConnectionm_connection
 
const FolderSpec m_folderSpec
 
cool::IFolderPtr m_folderPtr
 
CoraCoolFolderPtr m_sourceflc
 
bool m_isCoraCool
 

Detailed Description

Definition at line 117 of file MakeReferenceFile.cxx.

Constructor & Destructor Documentation

◆ Folder() [1/2]

Folder::Folder ( const DbConnection theConnection,
const FolderSpec theFolder 
)

< get the cool folder

Definition at line 139 of file MakeReferenceFile.cxx.

140  : m_connection(theConnection), m_folderSpec(theFolder), m_folderPtr{}
141 {
142  try
143  {
144  m_folderPtr = m_connection.dbPtr()->getFolder(theFolder.name);
145  }
146  catch (cool::Exception &e)
147  {
148  std::cout << " Could not get folder " << theFolder.name << std::endl;
149  }
150 }

◆ Folder() [2/2]

Folder::Folder ( const DbConnection theConnection,
const FolderSpec theFolder 
)

Member Function Documentation

◆ ccPtr()

const CoraCoolFolderPtr & Folder::ccPtr ( ) const

Definition at line 515 of file openCoraCool.cxx.

515  {
516  return m_sourceflc;
517 }

◆ channels()

std::vector< cool::ChannelId > Folder::channels ( ) const

Definition at line 205 of file MakeReferenceFile.cxx.

206 {
207  return m_folderPtr->listChannels();
208 }

◆ checkWhetherCoraCool()

bool Folder::checkWhetherCoraCool ( ) const
private

Definition at line 491 of file openCoraCool.cxx.

491  {
493 }

◆ description() [1/2]

std::string Folder::description ( ) const

Definition at line 177 of file MakeReferenceFile.cxx.

178 {
179  return (m_folderPtr->description());
180 }

◆ description() [2/2]

std::string Folder::description ( ) const

◆ folderSpec() [1/2]

const FolderSpec & Folder::folderSpec ( ) const

Definition at line 153 of file MakeReferenceFile.cxx.

154 {
155  return m_folderSpec;
156 }

◆ folderSpec() [2/2]

const FolderSpec& Folder::folderSpec ( ) const

◆ foreignKeySpec() [1/2]

cool::RecordSpecification Folder::foreignKeySpec ( )

Definition at line 496 of file openCoraCool.cxx.

496  {
497  if (m_sourceflc==nullptr) return cool::RecordSpecification();
498  return m_sourceflc->fkSpecification();
499 }

◆ foreignKeySpec() [2/2]

cool::RecordSpecification Folder::foreignKeySpec ( )

◆ isSingleVersion() [1/2]

bool Folder::isSingleVersion ( ) const

Definition at line 171 of file MakeReferenceFile.cxx.

172 {
173  return (cool::FolderVersioning::SINGLE_VERSION == m_folderPtr->versioningMode());
174 }

◆ isSingleVersion() [2/2]

bool Folder::isSingleVersion ( ) const

◆ isValid() [1/2]

bool Folder::isValid ( ) const

Definition at line 165 of file MakeReferenceFile.cxx.

166 {
167  bool result = (m_folderPtr != nullptr);
168  return result;
169 }

◆ isValid() [2/2]

bool Folder::isValid ( ) const

◆ objectIterator()

cool::IObjectIteratorPtr Folder::objectIterator ( bool  uselastIOV = false) const

Definition at line 195 of file MakeReferenceFile.cxx.

196 {
197  // iovs to browse
198  const auto hi = cool::ValidityKeyMax;
199  const auto lo = uselastIOV ? (hi-1) : cool::ValidityKeyMin;
201  return m_folderPtr->browseObjects(lo, hi, channelSelection, m_folderSpec.tag);
202 }

◆ payloadSpec() [1/2]

cool::RecordSpecification Folder::payloadSpec ( ) const

specification of the payload entries

Definition at line 183 of file MakeReferenceFile.cxx.

184 {
185  return m_folderPtr->payloadSpecification();
186 }

◆ payloadSpec() [2/2]

cool::RecordSpecification Folder::payloadSpec ( ) const

specification of the payload entries

◆ ptr() [1/2]

const cool::IFolderPtr & Folder::ptr ( ) const

Definition at line 159 of file MakeReferenceFile.cxx.

160 {
161  return m_folderPtr;
162 }

◆ ptr() [2/2]

const cool::IFolderPtr& Folder::ptr ( ) const

◆ tag() [1/2]

std::string Folder::tag ( ) const

Definition at line 189 of file MakeReferenceFile.cxx.

190 {
191  return m_folderSpec.tag;
192 }

◆ tag() [2/2]

std::string Folder::tag ( ) const

◆ tags()

std::vector< std::string > Folder::tags ( ) const

Definition at line 211 of file MakeReferenceFile.cxx.

212 {
213  return m_folderPtr->listTags();
214 }

Member Data Documentation

◆ m_connection

const DbConnection & Folder::m_connection
private

Definition at line 134 of file MakeReferenceFile.cxx.

◆ m_folderPtr

cool::IFolderPtr Folder::m_folderPtr
private

Definition at line 136 of file MakeReferenceFile.cxx.

◆ m_folderSpec

const FolderSpec Folder::m_folderSpec
private

Definition at line 135 of file MakeReferenceFile.cxx.

◆ m_isCoraCool

bool Folder::m_isCoraCool
private

Definition at line 446 of file openCoraCool.cxx.

◆ m_sourceflc

CoraCoolFolderPtr Folder::m_sourceflc
private

Definition at line 445 of file openCoraCool.cxx.


The documentation for this class was generated from the following files:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
Folder::m_connection
const DbConnection & m_connection
Definition: MakeReferenceFile.cxx:134
get_generator_info.result
result
Definition: get_generator_info.py:21
makeDTCalibBlob_pickPhase.theFolder
theFolder
Definition: makeDTCalibBlob_pickPhase.py:383
Folder::description
std::string description() const
Definition: MakeReferenceFile.cxx:177
Cut::all
@ all
Definition: SUSYToolsAlg.cxx:67
isCoraCoolDescriptor
bool isCoraCoolDescriptor(const std::string &descriptor)
Definition: openCoraCool.cxx:351
Folder::m_sourceflc
CoraCoolFolderPtr m_sourceflc
Definition: openCoraCool.cxx:445
FolderSpec::tag
const std::string tag
Definition: MakeReferenceFile.cxx:111
Folder::m_folderSpec
const FolderSpec m_folderSpec
Definition: MakeReferenceFile.cxx:135
COOLRates.channelSelection
channelSelection
Definition: COOLRates.py:1176
Folder::m_folderPtr
cool::IFolderPtr m_folderPtr
Definition: MakeReferenceFile.cxx:136
DbConnection::dbPtr
cool::IDatabasePtr dbPtr() const
Definition: MakeReferenceFile.cxx:97