ral 0.0.1
Loading...
Searching...
No Matches
Vertex.h
Go to the documentation of this file.
1#include <Math/Vector3D.h>
2#include <cmath>
3#include <edm4hep/ReconstructedParticleCollection.h>
4#include <edm4hep/VertexCollection.h>
5#include <iostream>
7namespace k4::ral {
8namespace Vertex {
15ROOT::VecOps::RVec<int>
16getType(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
23ROOT::VecOps::RVec<float>
24getChi2(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
31ROOT::VecOps::RVec<int>
32getNdf(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
39ROOT::VecOps::RVec<int>
40getAlgorithmType(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
47ROOT::VecOps::RVec<float>
48getR(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
55ROOT::VecOps::RVec<float>
56getX(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
63ROOT::VecOps::RVec<float>
64getY(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
71ROOT::VecOps::RVec<float>
72getZ(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
79ROOT::VecOps::RVec<int> getType(const edm4hep::VertexCollection &collection);
86ROOT::VecOps::RVec<float> getChi2(const edm4hep::VertexCollection &collection);
93ROOT::VecOps::RVec<int> getNdf(const edm4hep::VertexCollection &collection);
100ROOT::VecOps::RVec<int>
101getAlgorithmType(const edm4hep::VertexCollection &collection);
108ROOT::VecOps::RVec<float> getR(const edm4hep::VertexCollection &collection);
115ROOT::VecOps::RVec<float> getX(const edm4hep::VertexCollection &collection);
122ROOT::VecOps::RVec<float> getY(const edm4hep::VertexCollection &collection);
129ROOT::VecOps::RVec<float> getZ(const edm4hep::VertexCollection &collection);
136int printType(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
143int printChi2(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
150int printNdf(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
157int printAlgorithmType(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
164int printR(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
171int printX(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
178int printY(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
185int printZ(ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
192int printType(const edm4hep::VertexCollection &collection);
199int printChi2(const edm4hep::VertexCollection &collection);
206int printNdf(const edm4hep::VertexCollection &collection);
213int printAlgorithmType(const edm4hep::VertexCollection &collection);
220int printR(const edm4hep::VertexCollection &collection);
227int printX(const edm4hep::VertexCollection &collection);
234int printY(const edm4hep::VertexCollection &collection);
241int printZ(const edm4hep::VertexCollection &collection);
251ROOT::VecOps::RVec<bool>
253 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
263ROOT::VecOps::RVec<bool>
265 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
275ROOT::VecOps::RVec<bool>
277 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
287ROOT::VecOps::RVec<bool>
289 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
299ROOT::VecOps::RVec<bool>
301 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
311ROOT::VecOps::RVec<bool>
313 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
323ROOT::VecOps::RVec<bool>
325 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
335ROOT::VecOps::RVec<bool>
337 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
347ROOT::VecOps::RVec<bool> maskType(LogicalOperators::ComparisonOperator op,
348 int val,
349 const edm4hep::VertexCollection &collection);
359ROOT::VecOps::RVec<bool> maskChi2(LogicalOperators::ComparisonOperator op,
360 float val,
361 const edm4hep::VertexCollection &collection);
371ROOT::VecOps::RVec<bool> maskNdf(LogicalOperators::ComparisonOperator op,
372 int val,
373 const edm4hep::VertexCollection &collection);
383ROOT::VecOps::RVec<bool>
385 const edm4hep::VertexCollection &collection);
395ROOT::VecOps::RVec<bool> maskR(LogicalOperators::ComparisonOperator op,
396 float val,
397 const edm4hep::VertexCollection &collection);
407ROOT::VecOps::RVec<bool> maskX(LogicalOperators::ComparisonOperator op,
408 float val,
409 const edm4hep::VertexCollection &collection);
419ROOT::VecOps::RVec<bool> maskY(LogicalOperators::ComparisonOperator op,
420 float val,
421 const edm4hep::VertexCollection &collection);
431ROOT::VecOps::RVec<bool> maskZ(LogicalOperators::ComparisonOperator op,
432 float val,
433 const edm4hep::VertexCollection &collection);
442ROOT::VecOps::RVec<edm4hep::VertexData>
444 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
453ROOT::VecOps::RVec<edm4hep::VertexData>
455 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
464ROOT::VecOps::RVec<edm4hep::VertexData>
466 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
475ROOT::VecOps::RVec<edm4hep::VertexData>
477 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
486ROOT::VecOps::RVec<edm4hep::VertexData>
488 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
497ROOT::VecOps::RVec<edm4hep::VertexData>
499 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
508ROOT::VecOps::RVec<edm4hep::VertexData>
510 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
519ROOT::VecOps::RVec<edm4hep::VertexData>
521 ROOT::VecOps::RVec<edm4hep::VertexData> &collection);
530edm4hep::VertexCollection selType(LogicalOperators::ComparisonOperator op,
531 int val,
532 const edm4hep::VertexCollection &collection);
541edm4hep::VertexCollection selChi2(LogicalOperators::ComparisonOperator op,
542 float val,
543 const edm4hep::VertexCollection &collection);
552edm4hep::VertexCollection selNdf(LogicalOperators::ComparisonOperator op,
553 int val,
554 const edm4hep::VertexCollection &collection);
563edm4hep::VertexCollection
565 const edm4hep::VertexCollection &collection);
574edm4hep::VertexCollection selR(LogicalOperators::ComparisonOperator op,
575 float val,
576 const edm4hep::VertexCollection &collection);
585edm4hep::VertexCollection selX(LogicalOperators::ComparisonOperator op,
586 float val,
587 const edm4hep::VertexCollection &collection);
596edm4hep::VertexCollection selY(LogicalOperators::ComparisonOperator op,
597 float val,
598 const edm4hep::VertexCollection &collection);
607edm4hep::VertexCollection selZ(LogicalOperators::ComparisonOperator op,
608 float val,
609 const edm4hep::VertexCollection &collection);
617ROOT::VecOps::RVec<edm4hep::VertexData>
618sortType(ROOT::VecOps::RVec<edm4hep::VertexData> &collection,
619 bool reverse = false);
627ROOT::VecOps::RVec<edm4hep::VertexData>
628sortChi2(ROOT::VecOps::RVec<edm4hep::VertexData> &collection,
629 bool reverse = false);
637ROOT::VecOps::RVec<edm4hep::VertexData>
638sortNdf(ROOT::VecOps::RVec<edm4hep::VertexData> &collection,
639 bool reverse = false);
647ROOT::VecOps::RVec<edm4hep::VertexData>
648sortAlgorithmType(ROOT::VecOps::RVec<edm4hep::VertexData> &collection,
649 bool reverse = false);
657ROOT::VecOps::RVec<edm4hep::VertexData>
658sortR(ROOT::VecOps::RVec<edm4hep::VertexData> &collection,
659 bool reverse = false);
667ROOT::VecOps::RVec<edm4hep::VertexData>
668sortX(ROOT::VecOps::RVec<edm4hep::VertexData> &collection,
669 bool reverse = false);
677ROOT::VecOps::RVec<edm4hep::VertexData>
678sortY(ROOT::VecOps::RVec<edm4hep::VertexData> &collection,
679 bool reverse = false);
687ROOT::VecOps::RVec<edm4hep::VertexData>
688sortZ(ROOT::VecOps::RVec<edm4hep::VertexData> &collection,
689 bool reverse = false);
697edm4hep::VertexCollection sortType(edm4hep::VertexCollection &collection,
698 bool reverse = false);
706edm4hep::VertexCollection sortChi2(edm4hep::VertexCollection &collection,
707 bool reverse = false);
715edm4hep::VertexCollection sortNdf(edm4hep::VertexCollection &collection,
716 bool reverse = false);
724edm4hep::VertexCollection
725sortAlgorithmType(edm4hep::VertexCollection &collection, bool reverse = false);
733edm4hep::VertexCollection sortR(edm4hep::VertexCollection &collection,
734 bool reverse = false);
742edm4hep::VertexCollection sortX(edm4hep::VertexCollection &collection,
743 bool reverse = false);
751edm4hep::VertexCollection sortY(edm4hep::VertexCollection &collection,
752 bool reverse = false);
760edm4hep::VertexCollection sortZ(edm4hep::VertexCollection &collection,
761 bool reverse = false);
770ROOT::VecOps::RVec<edm4hep::ReconstructedParticleData> getParticles(
771 edm4hep::VertexData &item,
772 ROOT::VecOps::RVec<edm4hep::ReconstructedParticleData> &relatedCollection);
779edm4hep::ReconstructedParticleCollection
780getParticles(const edm4hep::Vertex &item);
781} // namespace Vertex
782} // namespace k4::ral
ComparisonOperator
Definition LogicalOperators.h:17
ROOT::VecOps::RVec< edm4hep::VertexData > sortAlgorithmType(ROOT::VecOps::RVec< edm4hep::VertexData > &collection, bool reverse)
Sort a collection of Vertex based on the value of algorithm type.
Definition Vertex.cc:895
int printZ(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Print z coordinate from each item in a collection of Vertex.
Definition Vertex.cc:252
ROOT::VecOps::RVec< edm4hep::VertexData > selR(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Select a subgroup of Vertex based on the value of distance to origin.
Definition Vertex.cc:790
ROOT::VecOps::RVec< edm4hep::VertexData > sortNdf(ROOT::VecOps::RVec< edm4hep::VertexData > &collection, bool reverse)
Sort a collection of Vertex based on the value of degrees of freedom.
Definition Vertex.cc:884
ROOT::VecOps::RVec< float > getX(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Get x coordinate from each item in a collection of Vertex.
Definition Vertex.cc:62
int printChi2(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Print chi^2 from each item in a collection of Vertex.
Definition Vertex.cc:198
ROOT::VecOps::RVec< edm4hep::VertexData > selX(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Select a subgroup of Vertex based on the value of x coordinate.
Definition Vertex.cc:796
ROOT::VecOps::RVec< float > getZ(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Get z coordinate from each item in a collection of Vertex.
Definition Vertex.cc:88
ROOT::VecOps::RVec< edm4hep::VertexData > sortY(ROOT::VecOps::RVec< edm4hep::VertexData > &collection, bool reverse)
Sort a collection of Vertex based on the value of b.
Definition Vertex.cc:933
int printType(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Print type from each item in a collection of Vertex.
Definition Vertex.cc:189
ROOT::VecOps::RVec< bool > maskR(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Create boolean mask based on the value of distance to origin from each item in a collection of Vertex...
Definition Vertex.cc:442
ROOT::VecOps::RVec< float > getR(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Get distance to origin from each item in a collection of Vertex.
Definition Vertex.cc:49
ROOT::VecOps::RVec< float > getChi2(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Get chi^2 from each item in a collection of Vertex.
Definition Vertex.cc:16
ROOT::VecOps::RVec< float > getY(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Get y coordinate from each item in a collection of Vertex.
Definition Vertex.cc:75
int printR(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Print distance to origin from each item in a collection of Vertex.
Definition Vertex.cc:225
ROOT::VecOps::RVec< bool > maskY(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Create boolean mask based on the value of y coordinate from each item in a collection of Vertex.
Definition Vertex.cc:496
ROOT::VecOps::RVec< bool > maskZ(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Create boolean mask based on the value of z coordinate from each item in a collection of Vertex.
Definition Vertex.cc:523
ROOT::VecOps::RVec< edm4hep::VertexData > sortX(ROOT::VecOps::RVec< edm4hep::VertexData > &collection, bool reverse)
Sort a collection of Vertex based on the value of b.
Definition Vertex.cc:920
ROOT::VecOps::RVec< bool > maskX(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Create boolean mask based on the value of x coordinate from each item in a collection of Vertex.
Definition Vertex.cc:469
ROOT::VecOps::RVec< edm4hep::VertexData > selAlgorithmType(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Select a subgroup of Vertex based on the value of algorithm type.
Definition Vertex.cc:784
ROOT::VecOps::RVec< int > getAlgorithmType(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Get algorithm type from each item in a collection of Vertex.
Definition Vertex.cc:38
ROOT::VecOps::RVec< edm4hep::VertexData > sortType(ROOT::VecOps::RVec< edm4hep::VertexData > &collection, bool reverse)
Sort a collection of Vertex based on the value of type.
Definition Vertex.cc:862
int printY(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Print y coordinate from each item in a collection of Vertex.
Definition Vertex.cc:243
ROOT::VecOps::RVec< int > getNdf(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Get degrees of freedom from each item in a collection of Vertex.
Definition Vertex.cc:27
ROOT::VecOps::RVec< bool > maskChi2(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Create boolean mask based on the value of chi^2 from each item in a collection of Vertex.
Definition Vertex.cc:361
ROOT::VecOps::RVec< bool > maskType(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Create boolean mask based on the value of type from each item in a collection of Vertex.
Definition Vertex.cc:334
ROOT::VecOps::RVec< bool > maskNdf(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Create boolean mask based on the value of degrees of freedom from each item in a collection of Vertex...
Definition Vertex.cc:388
int printAlgorithmType(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Print algorithm type from each item in a collection of Vertex.
Definition Vertex.cc:216
ROOT::VecOps::RVec< bool > maskAlgorithmType(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Create boolean mask based on the value of algorithm type from each item in a collection of Vertex.
Definition Vertex.cc:415
ROOT::VecOps::RVec< edm4hep::VertexData > sortZ(ROOT::VecOps::RVec< edm4hep::VertexData > &collection, bool reverse)
Sort a collection of Vertex based on the value of z coordinate.
Definition Vertex.cc:946
ROOT::VecOps::RVec< edm4hep::VertexData > selChi2(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Select a subgroup of Vertex based on the value of chi^2.
Definition Vertex.cc:772
ROOT::VecOps::RVec< edm4hep::VertexData > sortR(ROOT::VecOps::RVec< edm4hep::VertexData > &collection, bool reverse)
Sort a collection of Vertex based on the value of distance to origin.
Definition Vertex.cc:907
ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > getParticles(edm4hep::VertexData &item, ROOT::VecOps::RVec< edm4hep::ReconstructedParticleData > &relatedCollection)
Get the collection of ReconstructedParticle related to a Vertex.
Definition Vertex.cc:1142
ROOT::VecOps::RVec< edm4hep::VertexData > selZ(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Select a subgroup of Vertex based on the value of z coordinate.
Definition Vertex.cc:808
ROOT::VecOps::RVec< edm4hep::VertexData > selType(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Select a subgroup of Vertex based on the value of type.
Definition Vertex.cc:766
int printNdf(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Print degrees of freedom from each item in a collection of Vertex.
Definition Vertex.cc:207
ROOT::VecOps::RVec< edm4hep::VertexData > sortChi2(ROOT::VecOps::RVec< edm4hep::VertexData > &collection, bool reverse)
Sort a collection of Vertex based on the value of chi^2.
Definition Vertex.cc:873
int printX(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Print x coordinate from each item in a collection of Vertex.
Definition Vertex.cc:234
ROOT::VecOps::RVec< edm4hep::VertexData > selY(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Select a subgroup of Vertex based on the value of y coordinate.
Definition Vertex.cc:802
ROOT::VecOps::RVec< int > getType(ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Get type from each item in a collection of Vertex.
Definition Vertex.cc:5
ROOT::VecOps::RVec< edm4hep::VertexData > selNdf(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::VertexData > &collection)
Select a subgroup of Vertex based on the value of degrees of freedom.
Definition Vertex.cc:778
Definition CalorimeterHit.cc:2