2 #include "TDatabasePDG.h"
14 if (
first->clone)
continue;
16 list<LxTrack*>::iterator j =
i;
22 if (second->
clone)
continue;
30 firstRay->
tx - firstPoint->
x / firstPoint->
z;
32 secondRay->
tx - secondPoint->
x / secondPoint->
z;
33 bool distanceOk =
true;
36 scaltype deltaX = firstPoint->
x - secondPoint->
x;
37 scaltype deltaY = firstPoint->
y - secondPoint->
y;
38 scaltype distance =
sqrt(deltaX * deltaX + deltaY * deltaY);
39 distanceOk = distance >= 50.0;
42 first->distanceOk =
first->distanceOk || distanceOk;
44 bool oppCharged = firstParticleCharge * secondParticleCharge < 0;
45 first->oppCharged =
first->oppCharged || oppCharged;
47 bool triggering = distanceOk && oppCharged;
48 first->triggering =
first->triggering || triggering;
50 trigging = trigging || triggering;
54 #ifdef MAKE_TRIGGERING_HISTOS
60 if (recoTrack->
clone)
continue;
64 mcTrack ? TDatabasePDG::Instance()->GetParticle(mcTrack->
pdg)->GetName()
67 if (!particleName.empty()
68 && (particleName.back() ==
'+' || particleName.back() ==
'-'))
69 particleName.pop_back();
71 map<string, unsigned int>::iterator j =
72 particlesCountAll.find(particleName);
74 if (j != particlesCountAll.end())
77 particlesCountAll[particleName] = 1;
80 j = particlesCountDist.find(particleName);
82 if (j != particlesCountDist.end())
85 particlesCountDist[particleName] = 1;
89 j = particlesCountSign.find(particleName);
91 if (j != particlesCountSign.end())
94 particlesCountSign[particleName] = 1;
98 j = particlesCountTrig.find(particleName);
100 if (j != particlesCountTrig.end())
103 particlesCountTrig[particleName] = 1;
106 if (0 == mcTrack)
continue;
108 if (13 != mcTrack->
pdg && -13 != mcTrack->
pdg)
continue;
110 triggeringAllTracksVertices->Fill(
114 triggeringDistTracksVertices->Fill(
118 triggeringSignTracksVertices->Fill(
122 triggeringTrigTracksVertices->Fill(
126 #endif //MAKE_TRIGGERING_HISTOS