ral 0.0.1
Loading...
Searching...
No Matches
Track.h
Go to the documentation of this file.
1#include <cmath>
2#include <edm4hep/TrackCollection.h>
3#include <iostream>
5namespace k4::ral {
6namespace Track {
13ROOT::VecOps::RVec<int>
14getType(ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
21ROOT::VecOps::RVec<float>
22getChi2(ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
29ROOT::VecOps::RVec<int>
30getndf(ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
37ROOT::VecOps::RVec<int>
38getNholes(ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
45ROOT::VecOps::RVec<int> getType(const edm4hep::TrackCollection &collection);
52ROOT::VecOps::RVec<float> getChi2(const edm4hep::TrackCollection &collection);
59ROOT::VecOps::RVec<int> getndf(const edm4hep::TrackCollection &collection);
66ROOT::VecOps::RVec<int> getNholes(const edm4hep::TrackCollection &collection);
73int printType(ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
80int printChi2(ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
87int printndf(ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
94int printNholes(ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
101int printType(const edm4hep::TrackCollection &collection);
108int printChi2(const edm4hep::TrackCollection &collection);
115int printndf(const edm4hep::TrackCollection &collection);
122int printNholes(const edm4hep::TrackCollection &collection);
132ROOT::VecOps::RVec<bool>
134 ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
144ROOT::VecOps::RVec<bool>
146 ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
156ROOT::VecOps::RVec<bool>
158 ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
168ROOT::VecOps::RVec<bool>
170 ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
180ROOT::VecOps::RVec<bool> maskType(LogicalOperators::ComparisonOperator op,
181 int val,
182 const edm4hep::TrackCollection &collection);
192ROOT::VecOps::RVec<bool> maskChi2(LogicalOperators::ComparisonOperator op,
193 float val,
194 const edm4hep::TrackCollection &collection);
204ROOT::VecOps::RVec<bool> maskndf(LogicalOperators::ComparisonOperator op,
205 int val,
206 const edm4hep::TrackCollection &collection);
216ROOT::VecOps::RVec<bool> maskNholes(LogicalOperators::ComparisonOperator op,
217 int val,
218 const edm4hep::TrackCollection &collection);
227ROOT::VecOps::RVec<edm4hep::TrackData>
229 ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
238ROOT::VecOps::RVec<edm4hep::TrackData>
240 ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
249ROOT::VecOps::RVec<edm4hep::TrackData>
251 ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
260ROOT::VecOps::RVec<edm4hep::TrackData>
262 ROOT::VecOps::RVec<edm4hep::TrackData> &collection);
271edm4hep::TrackCollection selType(LogicalOperators::ComparisonOperator op,
272 int val,
273 const edm4hep::TrackCollection &collection);
282edm4hep::TrackCollection selChi2(LogicalOperators::ComparisonOperator op,
283 float val,
284 const edm4hep::TrackCollection &collection);
293edm4hep::TrackCollection selndf(LogicalOperators::ComparisonOperator op,
294 int val,
295 const edm4hep::TrackCollection &collection);
304edm4hep::TrackCollection selNholes(LogicalOperators::ComparisonOperator op,
305 int val,
306 const edm4hep::TrackCollection &collection);
314ROOT::VecOps::RVec<edm4hep::TrackData>
315sortType(ROOT::VecOps::RVec<edm4hep::TrackData> &collection,
316 bool reverse = false);
324ROOT::VecOps::RVec<edm4hep::TrackData>
325sortChi2(ROOT::VecOps::RVec<edm4hep::TrackData> &collection,
326 bool reverse = false);
334ROOT::VecOps::RVec<edm4hep::TrackData>
335sortndf(ROOT::VecOps::RVec<edm4hep::TrackData> &collection,
336 bool reverse = false);
344ROOT::VecOps::RVec<edm4hep::TrackData>
345sortNholes(ROOT::VecOps::RVec<edm4hep::TrackData> &collection,
346 bool reverse = false);
354edm4hep::TrackCollection sortType(edm4hep::TrackCollection &collection,
355 bool reverse = false);
363edm4hep::TrackCollection sortChi2(edm4hep::TrackCollection &collection,
364 bool reverse = false);
372edm4hep::TrackCollection sortndf(edm4hep::TrackCollection &collection,
373 bool reverse = false);
381edm4hep::TrackCollection sortNholes(edm4hep::TrackCollection &collection,
382 bool reverse = false);
383} // namespace Track
384} // namespace k4::ral
ComparisonOperator
Definition LogicalOperators.h:17
ROOT::VecOps::RVec< edm4hep::TrackData > selChi2(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Select a subgroup of Track based on the value of chi^2.
Definition Track.cc:383
ROOT::VecOps::RVec< bool > maskType(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Create boolean mask based on the value of type from each item in a collection of Track.
Definition Track.cc:161
ROOT::VecOps::RVec< edm4hep::TrackData > selNholes(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Select a subgroup of Track based on the value of number of holes.
Definition Track.cc:395
ROOT::VecOps::RVec< int > getType(ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Get type from each item in a collection of Track.
Definition Track.cc:5
ROOT::VecOps::RVec< edm4hep::TrackData > sortndf(ROOT::VecOps::RVec< edm4hep::TrackData > &collection, bool reverse)
Sort a collection of Track based on the value of degrees of freedom.
Definition Track.cc:447
ROOT::VecOps::RVec< edm4hep::TrackData > sortChi2(ROOT::VecOps::RVec< edm4hep::TrackData > &collection, bool reverse)
Sort a collection of Track based on the value of chi^2.
Definition Track.cc:436
int printType(ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Print type from each item in a collection of Track.
Definition Track.cc:88
ROOT::VecOps::RVec< edm4hep::TrackData > sortNholes(ROOT::VecOps::RVec< edm4hep::TrackData > &collection, bool reverse)
Sort a collection of Track based on the value of number of holes.
Definition Track.cc:458
ROOT::VecOps::RVec< float > getChi2(ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Get chi^2 from each item in a collection of Track.
Definition Track.cc:16
ROOT::VecOps::RVec< edm4hep::TrackData > selType(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Select a subgroup of Track based on the value of type.
Definition Track.cc:377
int printndf(ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Print degrees of freedom from each item in a collection of Track.
Definition Track.cc:106
ROOT::VecOps::RVec< int > getndf(ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Get degrees of freedom from each item in a collection of Track.
Definition Track.cc:27
ROOT::VecOps::RVec< edm4hep::TrackData > sortType(ROOT::VecOps::RVec< edm4hep::TrackData > &collection, bool reverse)
Sort a collection of Track based on the value of type.
Definition Track.cc:425
int printChi2(ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Print chi^2 from each item in a collection of Track.
Definition Track.cc:97
int printNholes(ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Print number of holes from each item in a collection of Track.
Definition Track.cc:115
ROOT::VecOps::RVec< bool > maskNholes(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Create boolean mask based on the value of number of holes from each item in a collection of Track.
Definition Track.cc:242
ROOT::VecOps::RVec< bool > maskndf(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Create boolean mask based on the value of degrees of freedom from each item in a collection of Track.
Definition Track.cc:215
ROOT::VecOps::RVec< bool > maskChi2(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Create boolean mask based on the value of chi^2 from each item in a collection of Track.
Definition Track.cc:188
ROOT::VecOps::RVec< edm4hep::TrackData > selndf(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Select a subgroup of Track based on the value of degrees of freedom.
Definition Track.cc:389
ROOT::VecOps::RVec< int > getNholes(ROOT::VecOps::RVec< edm4hep::TrackData > &collection)
Get number of holes from each item in a collection of Track.
Definition Track.cc:38
Definition CalorimeterHit.cc:2