Skip to content

Commit d4c9eb0

Browse files
committed
Merge branch 'master' into fixes-Common
2 parents ef6995d + 10c4a50 commit d4c9eb0

File tree

17 files changed

+901
-410
lines changed

17 files changed

+901
-410
lines changed

Common/DataModel/Multiplicity.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ DECLARE_SOA_TABLE(MultBCs, "AOD", "MULTBC", //!
285285
bc::Flags);
286286
using MultBC = MultBCs::iterator;
287287

288+
DECLARE_SOA_TABLE(MultBcSel, "AOD", "MULTBCSEL", //! BC selection bits joinable with multBCs
289+
evsel::Selection);
290+
288291
// crosslinks
289292
namespace mult
290293
{

Common/TableProducer/multiplicityExtraTable.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const int nBCsPerOrbit = o2::constants::lhc::LHCMaxBunches;
4141

4242
struct MultiplicityExtraTable {
4343
Produces<aod::MultBCs> multBC;
44+
Produces<aod::MultBcSel> multBcSel;
4445
Produces<aod::MultNeighs> multNeigh;
4546

4647
Produces<aod::Mults2BC> mult2bc;
@@ -85,7 +86,7 @@ struct MultiplicityExtraTable {
8586

8687
using BCsWithRun3Matchings = soa::Join<aod::BCs, aod::Timestamps, aod::Run3MatchedToBCSparse>;
8788

88-
void processBCs(soa::Join<BCsWithRun3Matchings, aod::BCFlags> const& bcs, aod::FV0As const&, aod::FT0s const&, aod::FDDs const&, aod::Zdcs const&, soa::Join<aod::Collisions, aod::EvSels> const& collisions)
89+
void processBCs(soa::Join<BCsWithRun3Matchings, aod::BCFlags, aod::BcSels> const& bcs, aod::FV0As const&, aod::FT0s const&, aod::FDDs const&, aod::Zdcs const&, soa::Join<aod::Collisions, aod::EvSels> const& collisions)
8990
{
9091
//+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+-<*>-+
9192
// determine saved BCs and corresponding new BC table index
@@ -260,6 +261,8 @@ struct MultiplicityExtraTable {
260261
multFV0TriggerBits, multFT0TriggerBits, multFDDTriggerBits, multBCTriggerMask, collidingBC,
261262
bc.timestamp(),
262263
bc.flags());
264+
265+
multBcSel(bc.selection_raw());
263266
}
264267
}
265268

Common/Tasks/centralityStudy.cxx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ struct centralityStudy {
9696
Configurable<bool> rejectITSinROFpileupStandard{"rejectITSinROFpileupStandard", false, "reject collisions in case of in-ROF ITS pileup (standard)"};
9797
Configurable<bool> rejectITSinROFpileupStrict{"rejectITSinROFpileupStrict", false, "reject collisions in case of in-ROF ITS pileup (strict)"};
9898
Configurable<bool> rejectCollInTimeRangeNarrow{"rejectCollInTimeRangeNarrow", false, "reject if extra colls in time range (narrow)"};
99+
Configurable<bool> rejectZNAC{"rejectZNAC", false, "reject if !(kIsBBZNA && kIsBBZNC)"};
99100

100101
Configurable<bool> selectUPCcollisions{"selectUPCcollisions", false, "select collisions tagged with UPC flag"};
101102

@@ -224,6 +225,13 @@ struct centralityStudy {
224225

225226
if (doprocessBCs) {
226227
histos.add("hBCSelection", "hBCSelection", kTH1D, {{20, -0.5, 19.5f}});
228+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(1, "All BCs");
229+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(2, "Colliding BCs");
230+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(3, "TVX");
231+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(4, "FV0OrA");
232+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(5, "upc rej");
233+
histos.get<TH1>(HIST("hBCSelection"))->GetXaxis()->SetBinLabel(6, "zdc rej");
234+
227235
histos.add("hFT0C_BCs", "hFT0C_BCs", kTH1D, {axisMultUltraFineFT0C});
228236
histos.add("hFT0M_BCs", "hFT0M_BCs", kTH1D, {axisMultUltraFineFT0M});
229237
histos.add("hFV0A_BCs", "hFV0A_BCs", kTH1D, {axisMultUltraFineFV0A});
@@ -830,27 +838,31 @@ struct centralityStudy {
830838
genericProcessCollision(collision);
831839
}
832840

833-
void processBCs(soa::Join<aod::BC2Mults, aod::MultBCs>::iterator const& multbc, soa::Join<aod::MultsRun3, aod::MFTMults, aod::MultsExtra, aod::MultSelections, aod::CentFT0Cs, aod::MultsGlobal> const&)
841+
void processBCs(soa::Join<aod::BC2Mults, aod::MultBCs, aod::MultBcSel>::iterator const& multbc, soa::Join<aod::MultsRun3, aod::MFTMults, aod::MultsExtra, aod::MultSelections, aod::CentFT0Cs, aod::MultsGlobal> const&)
834842
{
835843
// process BCs, calculate FT0C distribution
836844
// conditionals suggested by FIT team (Jacek O. et al)
837845
histos.fill(HIST("hBCSelection"), 0); // all BCs
846+
838847
if (selectCollidingBCs && !multbc.multCollidingBC())
839848
return;
840849
histos.fill(HIST("hBCSelection"), 1); // colliding
850+
841851
if (selectTVX && !multbc.multTVX())
842852
return;
843853
histos.fill(HIST("hBCSelection"), 2); // TVX
854+
844855
if (selectFV0OrA && !multbc.multFV0OrA())
845856
return;
846857
histos.fill(HIST("hBCSelection"), 3); // FV0OrA
858+
847859
if (vertexZwithT0 < 100.0f) {
848860
if (!multbc.multFT0PosZValid())
849861
return;
850862
if (TMath::Abs(multbc.multFT0PosZ()) > vertexZwithT0)
851863
return;
852864
}
853-
histos.fill(HIST("hBCSelection"), 4); // FV0OrA
865+
histos.fill(HIST("hBCSelection"), 4); // FT0PosZ
854866

855867
if (multbc.multFT0C() < upcRejection.maxFT0CforZNACselection &&
856868
multbc.multZNA() < upcRejection.minZNACsignal &&
@@ -865,8 +877,11 @@ struct centralityStudy {
865877
multbc.multFDDA() < upcRejection.minFDDAsignal) {
866878
return;
867879
}
868-
869-
histos.fill(HIST("hBCSelection"), 5); // znac
880+
histos.fill(HIST("hBCSelection"), 5); // znac amp
881+
if (rejectZNAC && !multbc.selection_bit(o2::aod::evsel::kIsBBZNA) && !multbc.selection_bit(o2::aod::evsel::kIsBBZNC)) {
882+
return;
883+
}
884+
histos.fill(HIST("hBCSelection"), 6); // znac time
870885

871886
// if we got here, we also finally fill the FT0C histogram, please
872887
histos.fill(HIST("hFT0C_BCs"), multbc.multFT0C() * scaleSignalFT0C);

Common/Tools/EventSelectionModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <DataFormatsCTP/Configuration.h>
2828
#include <DataFormatsCTP/Scalers.h>
2929
#include <DataFormatsFT0/Digit.h>
30+
#include <DataFormatsITSMFT/DPLAlpideParam.h>
3031
#include <DataFormatsITSMFT/TimeDeadMap.h>
3132
#include <DataFormatsParameters/AggregatedRunInfo.h>
3233
#include <DataFormatsParameters/GRPLHCIFData.h>
@@ -35,7 +36,6 @@
3536
#include <Framework/HistogramRegistry.h>
3637
#include <Framework/HistogramSpec.h>
3738
#include <Framework/Logger.h>
38-
#include <ITSMFTBase/DPLAlpideParam.h>
3939
#include <ITSMFTReconstruction/ChipMappingITS.h>
4040

4141
#include <TH1.h>

DPG/Tasks/AOTEvent/eventSelectionQa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <CommonConstants/LHCConstants.h>
2323
#include <CommonDataFormat/BunchFilling.h>
2424
#include <CommonDataFormat/TimeStamp.h>
25+
#include <DataFormatsITSMFT/DPLAlpideParam.h>
2526
#include <DataFormatsITSMFT/TimeDeadMap.h>
2627
#include <DataFormatsParameters/AggregatedRunInfo.h>
2728
#include <DataFormatsParameters/GRPLHCIFData.h>
@@ -35,7 +36,6 @@
3536
#include <Framework/InitContext.h>
3637
#include <Framework/OutputObjHeader.h>
3738
#include <Framework/runDataProcessing.h>
38-
#include <ITSMFTBase/DPLAlpideParam.h>
3939
#include <ITSMFTReconstruction/ChipMappingITS.h>
4040
#include <ReconstructionDataFormats/Vertex.h>
4141

DPG/Tasks/AOTEvent/rofOccupancyQa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <CCDB/BasicCCDBManager.h>
2121
#include <CommonConstants/LHCConstants.h>
22+
#include <DataFormatsITSMFT/DPLAlpideParam.h>
2223
#include <DataFormatsParameters/AggregatedRunInfo.h>
2324
#include <Framework/AnalysisDataModel.h>
2425
#include <Framework/AnalysisHelpers.h>
@@ -30,7 +31,6 @@
3031
#include <Framework/InitContext.h>
3132
#include <Framework/OutputObjHeader.h>
3233
#include <Framework/runDataProcessing.h>
33-
#include <ITSMFTBase/DPLAlpideParam.h>
3434

3535
#include <cmath>
3636
#include <cstdint>

0 commit comments

Comments
 (0)