Skip to content
Snippets Groups Projects
Commit 3a978099 authored by Jan de Cuveland's avatar Jan de Cuveland Committed by Florian Uhlig
Browse files

Remove the CbmSourceType enum

This change corresponds to Pascal's request at
computing/cbmroot!455 (comment 13399)
parent 5ba64644
No related branches found
No related tags found
1 merge request!455Migrate from TimesliceMulti* classes to TimesliceAutoSource
......@@ -118,7 +118,6 @@ void run_unpack_online(std::string publisher = "localhost", Int_t serverHttpPort
// ----- CbmSourceTsArchive -------------------------------------------
auto source = new CbmSourceTsArchive(publisher.data());
source->SetCbmSourceType(CbmSourceTsArchive::eCbmSourceType::kOnline);
auto unpack = source->GetRecoUnpack();
unpack->SetUnpackConfig(trdconfig);
// ------------------------------------------------------------------------
......
......@@ -192,7 +192,6 @@ void run_unpack_tsa(std::string infile = "test.tsa", UInt_t runid = 0, const cha
// ----- CbmSourceTsArchive -------------------------------------------
auto source = new CbmSourceTsArchive(infile.data());
source->SetCbmSourceType(CbmSourceTsArchive::eCbmSourceType::kOffline);
auto unpack = source->GetRecoUnpack();
unpack->SetDoPerfProfiling(doPerfProfiling);
unpack->SetOutputFilename(perfProfFileName);
......
......@@ -29,16 +29,6 @@
class CbmSourceTsArchive : public FairSource {
public:
/**
* @brief Enum for switch of source type
* @remark This is a temporary fix as long as in the original FairSource::Source_Type kFILE leads to skipping the first Timeslice
*/
enum class eCbmSourceType : uint16_t
{
kOnline = 0, // Use when running with an online source (published data)
kOffline // Use when running with tsa files as source
};
/** @brief Constructor
** @param fileName Name of (single) input file.
**
......@@ -74,11 +64,6 @@ public:
**/
virtual Source_Type GetSourceType() { return fSourceType; }
/** @brief Get the Cbm Source type
** @return eCbmSourceType
**/
eCbmSourceType GetCbmSourceType() { return fCbmSourceType; }
/**
* @brief Get the Reco Unpack
* Access the CbmRecoUnpack class to add unpacker configs
......@@ -112,9 +97,6 @@ public:
/** @brief Set the Source Type @param type */
void SetSourceType(Source_Type type) { fSourceType = type; }
/** @brief Set the Cbm Source Type @param type @remark temporary fix see enum */
void SetCbmSourceType(eCbmSourceType type) { fCbmSourceType = type; }
/** @brief Provide dummy implementation of this virtual function as not relevant in our case **/
Bool_t SpecifyRunId() { return kTRUE; }
......@@ -125,9 +107,6 @@ private:
/** @brief type of source that is currently used @remark currently we use kONLINE as default, since, kFILE skipps the first TS probably due to obsolete reasons (to be checked PR072021) */
Source_Type fSourceType = Source_Type::kONLINE;
/** @brief type of source that is currently used in the CBM definition @remark temprorary fix for the issue described in the comments of the enum */
eCbmSourceType fCbmSourceType = eCbmSourceType::kOffline;
/** Time-slice source interface **/
fles::TimesliceSource* fTsSource = nullptr; //!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment