HerdSoftware  0.4.0
HWTrackingDetectorEventDisplay.h
Go to the documentation of this file.
1 /*
2  * HWTrackingDetectorEventDisplay.h
3  *
4  * Created on: 08 May 2019
5  * Author: Valerio Formato
6  */
7 
8 #ifndef HWTrackingDetectorEventDisplay_H_
9 #define HWTrackingDetectorEventDisplay_H_
10 
11 // HERD headers
15 
16 // ROOT headers
17 #include "TEvePointSet.h"
18 #include "TEveStraightLineSet.h"
19 #include "TEveTrack.h"
20 #include "TEveTrackPropagator.h"
21 
22 namespace Herd {
24 public:
25  HWTrackingDetectorEventDisplay(std::string name = "Tracker");
27 
28  template <class TrackingGeoParams>
29  void ImportClusters(const ClustersColl &clColl, const SidesArray<std::vector<TrackingGeoParams>> &geoParamsColl);
30  void SetRenderState(bool renderState);
31 
32  TEvePointSet *TrkHitsXZ;
33  TEvePointSet *TrkHitsYZ;
34  TEvePointSet *TrkHitsXY;
35 
36  TEveStraightLineSet *TrkHits3D;
37 
38 private:
39  // NOTE: This has to be specialized for each TrackingGeoParams type since their API is not exactly the same
40  template <class TrackingGeoParams>
41  std::pair<float, float> LineRange([[maybe_unused]] const Cluster &cl,
42  [[maybe_unused]] const TrackingGeoParams &geoParams) = delete;
43 };
44 } // namespace Herd
45 
46 #endif
Herd::Cluster
Tracker cluster object for transient data model.
Definition: Cluster.h:30
Herd::HWTrackingDetectorEventDisplay::TrkHitsXY
TEvePointSet * TrkHitsXY
Definition: HWTrackingDetectorEventDisplay.h:34
Herd::HWTrackingDetectorEventDisplay
Definition: HWTrackingDetectorEventDisplay.h:23
Herd::HWBaseEventDisplay
Definition: HWBaseEventDisplay.h:19
Herd
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
Track2D.h
Herd::HWTrackingDetectorEventDisplay::~HWTrackingDetectorEventDisplay
~HWTrackingDetectorEventDisplay()
Definition: HWTrackingDetectorEventDisplay.cpp:38
Herd::HWTrackingDetectorEventDisplay::TrkHitsXZ
TEvePointSet * TrkHitsXZ
Definition: HWTrackingDetectorEventDisplay.h:32
Herd::HWTrackingDetectorEventDisplay::TrkHitsYZ
TEvePointSet * TrkHitsYZ
Definition: HWTrackingDetectorEventDisplay.h:33
Herd::HWTrackingDetectorEventDisplay::TrkHits3D
TEveStraightLineSet * TrkHits3D
Definition: HWTrackingDetectorEventDisplay.h:36
Herd::HWTrackingDetectorEventDisplay::HWTrackingDetectorEventDisplay
HWTrackingDetectorEventDisplay(std::string name="Tracker")
Definition: HWTrackingDetectorEventDisplay.cpp:11
Herd::HWTrackingDetectorEventDisplay::ImportClusters
void ImportClusters(const ClustersColl &clColl, const SidesArray< std::vector< TrackingGeoParams >> &geoParamsColl)
Definition: HWTrackingDetectorEventDisplay.hpp:6
Herd::HWTrackingDetectorEventDisplay::LineRange
std::pair< float, float > LineRange([[maybe_unused]] const Cluster &cl, [[maybe_unused]] const TrackingGeoParams &geoParams)=delete
HWBaseEventDisplay.h
Herd::SidesArray
An array that accepts side as subscripts.
Definition: SidesArray.h:72
ClustersColl.h
Herd::HWTrackingDetectorEventDisplay::SetRenderState
void SetRenderState(bool renderState)
Definition: HWTrackingDetectorEventDisplay.cpp:45