CMS 3D CMS Logo

List of all members | Public Member Functions
LStoreStorageMaker Class Reference
Inheritance diagram for LStoreStorageMaker:
StorageMaker

Public Member Functions

bool check (const std::string &proto, const std::string &path, const AuxSettings &, IOOffset *size=nullptr) const override
 
std::unique_ptr< Storageopen (const std::string &proto, const std::string &path, int mode, const AuxSettings &) const override
 
- Public Member Functions inherited from StorageMaker
virtual void stagein (const std::string &proto, const std::string &path, const AuxSettings &aux) const
 
 StorageMaker ()=default
 
virtual ~StorageMaker ()=default
 

Detailed Description

Definition at line 10 of file LStoreStorageMaker.cc.

Member Function Documentation

◆ check()

bool LStoreStorageMaker::check ( const std::string &  proto,
const std::string &  path,
const AuxSettings ,
IOOffset size = nullptr 
) const
inlineoverridevirtual

Reimplemented from StorageMaker.

Definition at line 36 of file LStoreStorageMaker.cc.

39  {
40  std::string fullpath = proto + ":" + path;
41  try {
42  LStoreFile fileObj(fullpath); // = LStoreFile (fullpath);
43  *size = fileObj.position(0, Storage::END);
44  } catch (cms::Exception &e) {
45  return false;
46  }
47  return true;
48  }

References MillePedeFileConverter_cfg::e, Storage::END, reco_skim_cfg_mod::fullpath, castor_dqm_sourceclient_file_cfg::path, LStoreFile::position(), findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ open()

std::unique_ptr<Storage> LStoreStorageMaker::open ( const std::string &  proto,
const std::string &  path,
int  mode,
const AuxSettings  
) const
inlineoverridevirtual

Open a storage object for the given URL (protocol + path), using the mode bits. No temporary files are downloaded.

Implements StorageMaker.

Definition at line 14 of file LStoreStorageMaker.cc.

17  {
18  std::string fullpath = proto + ":" + path;
19  return std::make_unique<LStoreFile>(fullpath, mode);
20  }

References reco_skim_cfg_mod::fullpath, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, castor_dqm_sourceclient_file_cfg::path, and AlCaHLTBitMon_QueryRunRegistry::string.

reco_skim_cfg_mod.fullpath
fullpath
Definition: reco_skim_cfg_mod.py:202
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
Storage::END
Definition: Storage.h:22
LStoreFile
Definition: LStoreFile.h:8
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cms::Exception
Definition: Exception.h:70
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37