We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb06ad3 commit ce5861fCopy full SHA for ce5861f
DPG/Tasks/TPC/utilsTpcSkimsTableCreator.h
@@ -43,16 +43,11 @@ enum {
43
template <typename CollisionType>
44
inline bool isEventSelected(const CollisionType& collision, const int applyEvSel)
45
{
46
- if (applyEvSel == EventSelectionRun2) {
47
- if (!collision.sel7()) {
48
- return false;
49
- }
50
- } else if (applyEvSel == EventSelectionRun3) {
51
- if (!collision.sel8()) {
52
53
+ if ((applyEvSel == EventSelectionRun2 && !collision.sel7()) || (applyEvSel == EventSelectionRun3 && !collision.sel8())) {
+ return false;
+ } else {
+ return true;
54
}
55
- return true;
56
};
57
58
/// Random downsampling trigger function using Tsalis/Hagedorn spectra fit (sqrt(s) = 62.4 GeV to 13 TeV)
0 commit comments