Warning, file /include/DDEve/HitActors.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef DDEVE_HITACTORS_H
0014 #define DDEVE_HITACTORS_H
0015
0016
0017 #include "DDEve/EventHandler.h"
0018 #include "DDEve/DisplayConfiguration.h"
0019
0020
0021 class THF2;
0022 class TEveElement;
0023 class TEvePointSet;
0024 class TEveBoxSet;
0025
0026
0027 namespace dd4hep {
0028
0029
0030
0031
0032
0033
0034
0035 struct EtaPhiHistogramActor : public DDEveHitActor {
0036 TH2F* histogram;
0037
0038 EtaPhiHistogramActor(TH2F* h) : DDEveHitActor(), histogram(h) {}
0039
0040 virtual void operator()(const DDEveHit& hit);
0041 };
0042
0043
0044
0045
0046
0047
0048
0049 struct PointsetCreator : public DDEveHitActor {
0050 TEvePointSet* pointset {nullptr};
0051 float threshold {0};
0052 float deposit {0};
0053 int count {0};
0054
0055 PointsetCreator(const std::string& collection, size_t length);
0056
0057 PointsetCreator(const std::string& collection, size_t length, const DisplayConfiguration::Config& cfg);
0058
0059 virtual ~PointsetCreator();
0060
0061 TEveElement* element() const;
0062
0063 virtual void operator()(const DDEveHit& hit);
0064 };
0065
0066
0067
0068
0069
0070
0071
0072 struct BoxsetCreator : public DDEveHitActor {
0073 TEveBoxSet* boxset {0};
0074 float emax = 1e12, towerH = 1e12, deposit = 0e0;
0075 int count {0};
0076
0077 BoxsetCreator(const std::string& collection, size_t length);
0078
0079 BoxsetCreator(const std::string& collection, size_t length, const DisplayConfiguration::Config& cfg);
0080
0081 virtual ~BoxsetCreator();
0082
0083 TEveElement* element() const;
0084
0085 virtual void operator()(const DDEveHit& hit);
0086 };
0087
0088
0089
0090
0091
0092
0093
0094 struct TowersetCreator : public BoxsetCreator {
0095
0096 TowersetCreator(const std::string& collection, size_t length)
0097 : BoxsetCreator(collection,length) {}
0098
0099 TowersetCreator(const std::string& collection, size_t length, const DisplayConfiguration::Config& cfg)
0100 : BoxsetCreator(collection, length, cfg) {}
0101
0102 virtual ~TowersetCreator() {}
0103
0104 virtual void operator()(const DDEveHit& hit);
0105 };
0106
0107 }
0108
0109
0110 #endif
0111