Skip to content

Commit 356ad0e

Browse files
authored
Muon dev (#75)
* fix in MIDdetector.cc * added input file fot MIDdetector.cc * adding copy of MID input file when creating O2 tables * fixing copy of MID input file when creating O2 tables * fixing conditions for a track to have the MID information * fix in the p range of the MID response
1 parent 1b2483c commit 356ad0e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/MIDdetector.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ namespace o2 {
4040
printf("Object %s not found, quitting\n",Form("mAccEffMuonPID_%s",partLabel[iPart]));
4141
return kFALSE;
4242
}
43-
mMomMin[iPart] = TMath::Max(1.2, mAccEffMuonPID[iPart]->GetAxis(1)->GetXmin());
44-
mMomMax[iPart] = mAccEffMuonPID[iPart]->GetAxis(1)->GetXmax();
43+
mMomMin[iPart] = TMath::Max(1.2, mAccEffMuonPID[iPart]->GetAxis(1)->GetBinCenter(1));
44+
mMomMax[iPart] = mAccEffMuonPID[iPart]->GetAxis(1)->GetBinCenter(mAccEffMuonPID[iPart]->GetAxis(1)->GetNbins());
4545
}
4646

4747
printf("Setup of MIDdetector successfully completed\n");
@@ -55,8 +55,7 @@ namespace o2 {
5555

5656
auto pdg = std::abs(track.PID);
5757
auto part = pidmap[pdg];
58-
TVector3 v(track.XOuter, track.YOuter, track.ZOuter);
59-
return ((TMath::Abs(v.Eta()) < mEtaMax) && (track.P > mMomMin[part]));
58+
return ((TMath::Abs(track.Eta) < mEtaMax) && (track.P > mMomMin[part]));
6059

6160
}
6261

@@ -79,8 +78,7 @@ namespace o2 {
7978
}
8079

8180
//==========================================================================================================
82-
83-
81+
8482
} /** namespace delphes **/
8583

8684
} /** namespace o2 **/

0 commit comments

Comments
 (0)