#include <JpsiUpsilonCommon.h>
|
static double | getPt (const xAOD::TrackParticle *, const xAOD::TrackParticle *) |
|
static double | getPt (const xAOD::TrackParticle *trk1, const xAOD::TrackParticle *trk2, const xAOD::TrackParticle *trk3) |
|
static double | getPt (const xAOD::TrackParticle *, const xAOD::TrackParticle *, const xAOD::TrackParticle *, const xAOD::TrackParticle *) |
|
static bool | isContainedIn (const xAOD::TrackParticle *, const std::vector< const xAOD::TrackParticle * > &) |
|
static bool | isContainedIn (const xAOD::TrackParticle *, const xAOD::MuonContainer *) |
|
static bool | cutRangeOR (const std::vector< double > &values, double min, double max) |
|
static bool | cutRange (double value, double min, double max) |
|
static bool | cutAcceptGreaterOR (const std::vector< double > &values, double min) |
|
static bool | cutAcceptGreater (double value, double min) |
|
static Analysis::CleanUpVertex | ClosestRefPV (xAOD::BPhysHelper &, const xAOD::VertexContainer *, const Analysis::PrimaryVertexRefitter *) |
|
template<size_t N> |
static bool | isContainedIn (const xAOD::TrackParticle *, const std::array< const xAOD::TrackParticle *, N > &) |
|
static void | RelinkVertexTracks (const std::vector< const xAOD::TrackParticleContainer * > &trkcols, xAOD::Vertex *vtx) |
|
static void | RelinkVertexMuons (const std::vector< const xAOD::MuonContainer * > &muoncols, xAOD::Vertex *vtx) |
|
Definition at line 39 of file JpsiUpsilonCommon.h.
◆ ClosestRefPV()
Definition at line 94 of file JpsiUpsilonCommon.cxx.
100 std::vector<const xAOD::Vertex*> tocleanup;
101 if(pvRefitter) tocleanup.reserve(importedPVerticesCollection->
size());
102 bool vertexrefitted =
false;
103 for (
const xAOD::Vertex* PV : *importedPVerticesCollection) {
106 if(refPV) tocleanup.push_back(refPV);
109 TVector3 posV(helperpos.x(), helperpos.y(), helperpos.z());
110 TVector3 nV = bHelper.
totalP().Unit();
111 TVector3 dposV = posPV-posV;
112 double dposVnV = dposV*nV;
113 double d = std::sqrt(std::abs(dposV.Mag2()-dposVnV*dposVnV));
117 vertexrefitted = (vtx_closest == refPV);
120 for(
auto ptr : tocleanup){
121 if(
ptr != vtx_closest)
delete ptr;
◆ cutAcceptGreater()
bool Analysis::JpsiUpsilonCommon::cutAcceptGreater |
( |
double |
value, |
|
|
double |
min |
|
) |
| |
|
static |
◆ cutAcceptGreaterOR()
bool Analysis::JpsiUpsilonCommon::cutAcceptGreaterOR |
( |
const std::vector< double > & |
values, |
|
|
double |
min |
|
) |
| |
|
static |
◆ cutRange()
bool Analysis::JpsiUpsilonCommon::cutRange |
( |
double |
value, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
|
static |
◆ cutRangeOR()
bool Analysis::JpsiUpsilonCommon::cutRangeOR |
( |
const std::vector< double > & |
values, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
|
static |
◆ getPt() [1/3]
◆ getPt() [2/3]
◆ getPt() [3/3]
◆ isContainedIn() [1/3]
◆ isContainedIn() [2/3]
◆ isContainedIn() [3/3]
Definition at line 62 of file JpsiUpsilonCommon.cxx.
63 bool isContained(
false);
65 for (muItr=theColl->
begin(); muItr!=theColl->
end(); ++muItr) {
66 auto& link = ( *muItr )->inDetTrackParticleLink();
67 if ( link.isValid() && ( *link == theTrack ) ) {isContained=
true;
break;}
◆ RelinkVertexMuons()
Definition at line 148 of file JpsiUpsilonCommon.cxx.
153 auto size = mlinksold.size();
155 for(
size_t i = 0;
i<
size;
i++){
158 auto itr =
std::find(mucol->begin(), mucol->end(), mylink);
159 if(itr != mucol->end()){
160 auto mylink=mlinksold[
i];
161 mylink.setStorableObject(*mucol,
true);
162 newmulinks.push_back( mylink );
167 if(
size != newmulinks.size()){
168 throw std::runtime_error(
"JpsiUpsilonCommon::RelinkVertexMuons: Could not relink all tracks");
170 muonLinksDecor(*vtx) = std::move(newmulinks);
◆ RelinkVertexTracks()
Definition at line 126 of file JpsiUpsilonCommon.cxx.
127 std::vector<ElementLink<DataVector<xAOD::TrackParticle> > > newLinkVector;
129 for(
size_t i = 0;
i<
size;
i++){
132 auto itr =
std::find(trkcol->begin(), trkcol->end(), mylink);
133 if(itr != trkcol->end()){
135 mylink.setStorableObject(*trkcol,
true);
136 newLinkVector.push_back( mylink );
141 if(
size != newLinkVector.size()){
142 throw std::runtime_error(
"JpsiUpsilonCommon::RelinkVertexTracks: Could not relink all tracks");
The documentation for this class was generated from the following files:
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Class describing a TrackParticle.