ral 0.0.1
Loading...
Searching...
No Matches
TrackerHit3D.h
Go to the documentation of this file.
1#include <cmath>
2#include <edm4hep/TrackerHit3DCollection.h>
3#include <iostream>
5namespace k4::ral {
6namespace TrackerHit3D {
13ROOT::VecOps::RVec<int>
14getType(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
21ROOT::VecOps::RVec<int>
22getQuality(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
29ROOT::VecOps::RVec<unsigned long long>
30getCellID(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
37ROOT::VecOps::RVec<float>
38getEDep(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
45ROOT::VecOps::RVec<float>
46getTime(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
53ROOT::VecOps::RVec<int>
54getType(const edm4hep::TrackerHit3DCollection &collection);
61ROOT::VecOps::RVec<int>
62getQuality(const edm4hep::TrackerHit3DCollection &collection);
69ROOT::VecOps::RVec<unsigned long long>
70getCellID(const edm4hep::TrackerHit3DCollection &collection);
77ROOT::VecOps::RVec<float>
78getEDep(const edm4hep::TrackerHit3DCollection &collection);
85ROOT::VecOps::RVec<float>
86getTime(const edm4hep::TrackerHit3DCollection &collection);
93int printType(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
100int printQuality(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
107int printCellID(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
114int printEDep(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
121int printTime(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
128int printType(const edm4hep::TrackerHit3DCollection &collection);
135int printQuality(const edm4hep::TrackerHit3DCollection &collection);
142int printCellID(const edm4hep::TrackerHit3DCollection &collection);
149int printEDep(const edm4hep::TrackerHit3DCollection &collection);
156int printTime(const edm4hep::TrackerHit3DCollection &collection);
166ROOT::VecOps::RVec<bool>
168 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
178ROOT::VecOps::RVec<bool>
180 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
190ROOT::VecOps::RVec<bool>
191maskCellID(LogicalOperators::ComparisonOperator op, unsigned long long val,
192 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
202ROOT::VecOps::RVec<bool>
204 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
214ROOT::VecOps::RVec<bool>
216 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
226ROOT::VecOps::RVec<bool>
228 const edm4hep::TrackerHit3DCollection &collection);
238ROOT::VecOps::RVec<bool>
240 const edm4hep::TrackerHit3DCollection &collection);
250ROOT::VecOps::RVec<bool>
251maskCellID(LogicalOperators::ComparisonOperator op, unsigned long long val,
252 const edm4hep::TrackerHit3DCollection &collection);
262ROOT::VecOps::RVec<bool>
264 const edm4hep::TrackerHit3DCollection &collection);
274ROOT::VecOps::RVec<bool>
276 const edm4hep::TrackerHit3DCollection &collection);
285ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
287 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
296ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
298 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
307ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
308selCellID(LogicalOperators::ComparisonOperator op, unsigned long long val,
309 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
318ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
320 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
329ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
331 ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection);
340edm4hep::TrackerHit3DCollection
342 const edm4hep::TrackerHit3DCollection &collection);
351edm4hep::TrackerHit3DCollection
353 const edm4hep::TrackerHit3DCollection &collection);
362edm4hep::TrackerHit3DCollection
363selCellID(LogicalOperators::ComparisonOperator op, unsigned long long val,
364 const edm4hep::TrackerHit3DCollection &collection);
373edm4hep::TrackerHit3DCollection
375 const edm4hep::TrackerHit3DCollection &collection);
384edm4hep::TrackerHit3DCollection
386 const edm4hep::TrackerHit3DCollection &collection);
394ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
395sortType(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection,
396 bool reverse = false);
404ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
405sortQuality(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection,
406 bool reverse = false);
414ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
415sortCellID(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection,
416 bool reverse = false);
424ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
425sortEDep(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection,
426 bool reverse = false);
434ROOT::VecOps::RVec<edm4hep::TrackerHit3DData>
435sortTime(ROOT::VecOps::RVec<edm4hep::TrackerHit3DData> &collection,
436 bool reverse = false);
444edm4hep::TrackerHit3DCollection
445sortType(edm4hep::TrackerHit3DCollection &collection, bool reverse = false);
453edm4hep::TrackerHit3DCollection
454sortQuality(edm4hep::TrackerHit3DCollection &collection, bool reverse = false);
462edm4hep::TrackerHit3DCollection
463sortCellID(edm4hep::TrackerHit3DCollection &collection, bool reverse = false);
471edm4hep::TrackerHit3DCollection
472sortEDep(edm4hep::TrackerHit3DCollection &collection, bool reverse = false);
480edm4hep::TrackerHit3DCollection
481sortTime(edm4hep::TrackerHit3DCollection &collection, bool reverse = false);
482} // namespace TrackerHit3D
483} // namespace k4::ral
ComparisonOperator
Definition LogicalOperators.h:17
ROOT::VecOps::RVec< unsigned long long > getCellID(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Get detector cell ID from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:27
int printCellID(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Print detector cell ID from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:132
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > sortEDep(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection, bool reverse)
Sort a collection of TrackerHit3D based on the value of eDep.
Definition TrackerHit3D.cc:574
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > selCellID(LogicalOperators::ComparisonOperator op, unsigned long long val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Select a subgroup of TrackerHit3D based on the value of detector cell ID.
Definition TrackerHit3D.cc:487
ROOT::VecOps::RVec< int > getType(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Get type from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:5
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > sortType(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection, bool reverse)
Sort a collection of TrackerHit3D based on the value of type.
Definition TrackerHit3D.cc:535
ROOT::VecOps::RVec< bool > maskType(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Create boolean mask based on the value of type from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:205
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > sortCellID(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection, bool reverse)
Sort a collection of TrackerHit3D based on the value of detector cell ID.
Definition TrackerHit3D.cc:561
int printTime(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Print time of the hit from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:150
ROOT::VecOps::RVec< float > getEDep(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Get eDep from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:38
ROOT::VecOps::RVec< bool > maskCellID(LogicalOperators::ComparisonOperator op, unsigned long long val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Create boolean mask based on the value of detector cell ID from each item in a collection of TrackerH...
Definition TrackerHit3D.cc:259
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > selType(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Select a subgroup of TrackerHit3D based on the value of type.
Definition TrackerHit3D.cc:475
ROOT::VecOps::RVec< bool > maskQuality(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Create boolean mask based on the value of type from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:232
ROOT::VecOps::RVec< bool > maskTime(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Create boolean mask based on the value of time of the hit from each item in a collection of TrackerHi...
Definition TrackerHit3D.cc:313
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > sortTime(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection, bool reverse)
Sort a collection of TrackerHit3D based on the value of time of the hit.
Definition TrackerHit3D.cc:587
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > selTime(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Select a subgroup of TrackerHit3D based on the value of time of the hit.
Definition TrackerHit3D.cc:499
int printEDep(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Print eDep from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:141
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > selQuality(LogicalOperators::ComparisonOperator op, int val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Select a subgroup of TrackerHit3D based on the value of type.
Definition TrackerHit3D.cc:481
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > selEDep(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Select a subgroup of TrackerHit3D based on the value of eDep.
Definition TrackerHit3D.cc:493
ROOT::VecOps::RVec< bool > maskEDep(LogicalOperators::ComparisonOperator op, float val, ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Create boolean mask based on the value of eDep from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:286
ROOT::VecOps::RVec< float > getTime(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Get time of the hit from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:49
int printType(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Print type from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:114
int printQuality(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Print type from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:123
ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > sortQuality(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection, bool reverse)
Sort a collection of TrackerHit3D based on the value of quality.
Definition TrackerHit3D.cc:548
ROOT::VecOps::RVec< int > getQuality(ROOT::VecOps::RVec< edm4hep::TrackerHit3DData > &collection)
Get quality from each item in a collection of TrackerHit3D.
Definition TrackerHit3D.cc:16
Definition CalorimeterHit.cc:2