Skip to content

TPC: Add simple raw data filter for krypton clusters#7672

Merged
shahor02 merged 2 commits intoAliceO2Group:devfrom
wiechula:RawReaderCRU
Nov 20, 2021
Merged

TPC: Add simple raw data filter for krypton clusters#7672
shahor02 merged 2 commits intoAliceO2Group:devfrom
wiechula:RawReaderCRU

Conversation

@wiechula
Copy link
Collaborator

No description provided.

@wiechula
Copy link
Collaborator Author

@davidrohr , @shahor02 , the error looks unrelated. Can this be merged?

Comment on lines +50 to +67
enum class BranchType {
Krypton,
Digits,
};

const std::unordered_map<std::string, BranchType> BranchTypeMap{
{"krypton", BranchType::Krypton},
{"digits", BranchType::Digits},
};

const std::unordered_map<BranchType, std::string> BranchName{
{BranchType::Krypton, "TPCBoxCluster"},
{BranchType::Digits, "TPCDigit"},
};

const std::unordered_map<BranchType, std::string> TreeName{
{BranchType::Krypton, "Clusters"},
{BranchType::Digits, "o2sim"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wiechula there are extra , at the end of each block. The compiler does not complain but I think it is better to remove them.

Copy link
Collaborator Author

@wiechula wiechula Nov 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shahor02 as far as I know it is allowed since C99. I would like to keep it, sine it looks more symmetric and makes adding new elements a bit easier.
I think it is also used in other places in o2.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thought looks a bit awkward...

@shahor02 shahor02 merged commit 124dece into AliceO2Group:dev Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants