Skip to content

Commit 35e5784

Browse files
akhatunakhatun
authored andcommitted
[PWGUD] update for memory usage
1 parent d939269 commit 35e5784

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

PWGUD/AQC/udQC.cxx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,13 @@ struct UDQC {
191191
aod::Zdcs& zdcs, aod::Calos& calos,
192192
aod::V0s const& v0s, aod::Cascades const& cascades)
193193
{
194-
LOGF(debug, "<UDQC. Collision %d", collision.globalIndex());
195-
LOGF(debug, "<UDQC> Start %i", abcrs.size());
194+
//LOGF(debug, "<UDQC. Collision %d", collision.globalIndex());
195+
//LOGF(debug, "<UDQC> Start %i", abcrs.size());
196196

197+
198+
if (!tracks.size()) return;
199+
if (collision.numContrib() < 1) return;
200+
197201
bool isDGcandidate = true;
198202
registry.get<TH1>(HIST("collisions/Stat"))->Fill(0., isDGcandidate * 1.);
199203

@@ -248,15 +252,15 @@ struct UDQC {
248252

249253
if (track.tpcSignal() > maxdEdxTPC) {
250254
maxdEdxTPC = track.tpcSignal();
251-
LOGF(debug, "<UDQC> New maxdEdx TPC %f", maxdEdxTPC);
255+
// LOGF(debug, "<UDQC> New maxdEdx TPC %f", maxdEdxTPC);
252256
}
253257

254258
// TOF hit?
255259
if (track.hasTOF()) {
256260
registry.get<TH2>(HIST("tracks/dEdxTOF"))->Fill(track.p() / track.sign(), track.beta());
257261
if (track.tofSignal() > maxdEdxTOF) {
258262
maxdEdxTOF = track.tofSignal();
259-
LOGF(debug, "<UDQC> New maxdEdx TOF %f", maxdEdxTOF);
263+
//LOGF(debug, "<UDQC> New maxdEdx TOF %f", maxdEdxTOF);
260264
}
261265

262266
// No vertex track with TOF hit?
@@ -281,7 +285,7 @@ struct UDQC {
281285
if (collision.numContrib() > 0) {
282286
rgtrwTOF /= collision.numContrib();
283287
}
284-
LOGF(debug, "<UDQC> PV tracks with TOF: %f [1]", rgtrwTOF);
288+
//LOGF(debug, "<UDQC> PV tracks with TOF: %f [1]", rgtrwTOF);
285289
registry.get<TH2>(HIST("collisions/tResvsrTOFTracks"))->Fill(collision.collisionTimeRes(), rgtrwTOF);
286290
registry.get<TH2>(HIST("collisions/tResvsTOFTrkNoPV"))->Fill(collision.collisionTimeRes(), norgtrwTOF);
287291

@@ -429,7 +433,7 @@ struct UDQC {
429433
}
430434
// define Lorentz vector to create invariant mass
431435
lvtmp.SetPtEtaPhiM(track.pt(), track.eta(), track.phi(), mass2Use);
432-
LOGF(debug, "mass %f track pt %f/%f eta %f/%f", mass2Use, track.pt(), lvtmp.Perp(), track.eta(), lvtmp.Eta());
436+
//LOGF(debug, "mass %f track pt %f/%f eta %f/%f", mass2Use, track.pt(), lvtmp.Perp(), track.eta(), lvtmp.Eta());
433437
if (track.pt() <= diffCuts.minPt() || track.pt() >= diffCuts.maxPt()) {
434438
goodpts = false;
435439
}
@@ -521,7 +525,7 @@ struct UDQC {
521525
registry.get<TH2>(HIST("DG/etaminus"))->Fill(track.eta(), track.phi());
522526
}
523527

524-
LOGF(debug, "dEdx TPC %f TOF %i %f", track.tpcSignal(), track.hasTOF(), track.hasTOF() ? track.tofSignal() : 0.);
528+
// LOGF(debug, "dEdx TPC %f TOF %i %f", track.tpcSignal(), track.hasTOF(), track.hasTOF() ? track.tofSignal() : 0.);
525529
if (collision.numContrib() == 2) {
526530
registry.get<TH2>(HIST("DG/dEdxTPC"))->Fill(track.tpcInnerParam() / track.sign(), track.tpcSignal());
527531
registry.get<TH1>(HIST("DG/trkDCAxy"))->Fill(track.dcaXY());
@@ -562,7 +566,7 @@ struct UDQC {
562566
void processCleanFIT1(CC const& collision, BCs const& bct0s,
563567
aod::FT0s const& /*ft0s*/, aod::FV0As const& /*fv0as*/, aod::FDDs const& /*fdds*/)
564568
{
565-
LOGF(debug, "<CleanFit. Collision %d", collision.globalIndex());
569+
//LOGF(debug, "<CleanFit. Collision %d", collision.globalIndex());
566570

567571
// test influence of BCrange width using a series of NDtcoll
568572
float ampFV0A, ampFT0A, ampFT0C, ampFDDA, ampFDDC;
@@ -618,7 +622,7 @@ struct UDQC {
618622
void processCleanFIT2(CC const& collision, BCs const& bct0s,
619623
aod::FT0s const& /*ft0s*/, aod::FV0As const& /*fv0as*/, aod::FDDs const& /*fdds*/)
620624
{
621-
LOGF(debug, "<CleanFit. Collision %d", collision.globalIndex());
625+
//LOGF(debug, "<CleanFit. Collision %d", collision.globalIndex());
622626
uint64_t bcnum = 0;
623627
if (collision.has_foundBC()) {
624628
auto collbc = collision.foundBC_as<BCs>();
@@ -677,7 +681,7 @@ struct UDQC {
677681
// ...............................................................................................................
678682
void processFV0(aod::FV0As const& fv0s, BCs const&)
679683
{
680-
LOGF(info, "<FV0Signals> %d", fv0s.size());
684+
//LOGF(info, "<FV0Signals> %d", fv0s.size());
681685
if (fv0s.size() <= 0) {
682686
return;
683687
}
@@ -695,7 +699,7 @@ struct UDQC {
695699
// ...............................................................................................................
696700
void processFT0(aod::FT0s const& ft0s, aod::FT0sCorrected const& ft0scorr, BCs const&)
697701
{
698-
LOGF(debug, "<processFT0> %d", ft0s.size());
702+
//LOGF(debug, "<processFT0> %d", ft0s.size());
699703
for (auto const& collision : ft0scorr) {
700704

701705
if (collision.t0ACorrectedValid()) {
@@ -729,7 +733,7 @@ struct UDQC {
729733
// ...............................................................................................................
730734
void processFDD(aod::FDDs const& fdds, BCs const&)
731735
{
732-
LOGF(debug, "<FDDSignals> %d", fdds.size());
736+
//LOGF(debug, "<FDDSignals> %d", fdds.size());
733737

734738
for (auto fdd : fdds) {
735739

@@ -751,7 +755,7 @@ struct UDQC {
751755
// ...............................................................................................................
752756
void processZDC(aod::Zdc const& zdc)
753757
{
754-
LOGF(debug, "<ZDCSignals> %d", zdc.size());
758+
//LOGF(debug, "<ZDCSignals> %d", zdc.size());
755759

756760
// Zdc energies
757761
registry.get<TH2>(HIST("ZdcEnergies"))->Fill(0., zdc.energyZEM1());

0 commit comments

Comments
 (0)