Skip to content

Commit

Permalink
Add relevant masks for QA (AliceO2Group#3657)
Browse files Browse the repository at this point in the history
* Add relevant masks for QA

* Please consider the following formatting changes (#178)

---------

Co-authored-by: David Dobrigkeit Chinellato <david.dobrigkeit.chinellato.cern.ch>
Co-authored-by: ALICE Builder <[email protected]>
  • Loading branch information
ddobrigk and alibuild authored Oct 20, 2023
1 parent 8ddb0dd commit 4ba1b14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Common/DataModel/Multiplicity.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,17 @@ DECLARE_SOA_COLUMN(MultBCFT0C, multBCFT0C, float); //!
DECLARE_SOA_COLUMN(MultBCFV0A, multBCFV0A, float); //!
DECLARE_SOA_COLUMN(MultBCTVX, multBCTVX, bool); //!
DECLARE_SOA_COLUMN(MultBCFV0OrA, multBCFV0OrA, bool); //!
DECLARE_SOA_COLUMN(MultBCV0triggerBits, multBCV0triggerBits, uint8_t); //!
DECLARE_SOA_COLUMN(MultBCTriggerMask, multBCTriggerMask, uint64_t); //! CTP trigger mask
} // namespace multDebug
DECLARE_SOA_TABLE(MultsBC, "AOD", "MULTBC", //!
multBC::MultBCFT0A,
multBC::MultBCFT0C,
multBC::MultBCFV0A,
multBC::MultBCTVX,
multBC::MultBCFV0OrA);
multBC::MultBCFV0OrA,
multBC::MultBCV0triggerBits,
multBC::MultBCTriggerMask);
using MultBC = MultsBC::iterator;

} // namespace o2::aod
Expand Down
5 changes: 4 additions & 1 deletion Common/TableProducer/multiplicityExtraTable.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,14 @@ struct MultiplicityExtraTable {
float multFT0C = 0.f;
float multFT0A = 0.f;
float multFV0A = 0.f;
uint8_t multFV0TriggerBits = 0;
uint64_t multBCTriggerMask = bc.triggerMask();

if (bc.has_ft0()) {
auto ft0 = bc.ft0();
std::bitset<8> triggers = ft0.triggerMask();
Tvx = triggers[o2::fit::Triggers::bitVertex];
multFV0TriggerBits = static_cast<uint8_t>(triggers.to_ulong());

// calculate T0 charge
for (auto amplitude : ft0.amplitudeA()) {
Expand All @@ -66,7 +69,7 @@ struct MultiplicityExtraTable {
} // fv0
}

multBC(multFT0A, multFT0C, multFV0A, Tvx, isFV0OrA);
multBC(multFT0A, multFT0C, multFV0A, Tvx, isFV0OrA, multFV0TriggerBits, multBCTriggerMask);
}
};

Expand Down

0 comments on commit 4ba1b14

Please sign in to comment.