Skip to content

Commit

Permalink
[GCC 11] Fix error "this pointer is null" in L1Trigger/DTTrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider authored Aug 4, 2021
1 parent 82d279e commit 22398f2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions L1Trigger/DTTrigger/src/DTTrigTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,12 @@ void DTTrigTest::beginJob() {
}

void DTTrigTest::beginRun(const edm::Run& iRun, const edm::EventSetup& iEventSetup) {
if (!my_trig) {
my_trig->createTUs(iEventSetup);
if (my_debug)
cout << "[DTTrigTest] TU's Created" << endl;
}
if (!my_trig)
return;

my_trig->createTUs(iEventSetup);
if (my_debug)
cout << "[DTTrigTest] TU's Created" << endl;
}

void DTTrigTest::analyze(const Event& iEvent, const EventSetup& iEventSetup) {
Expand Down

0 comments on commit 22398f2

Please sign in to comment.