16 #ifndef QUALITYCONTROL_TRENDINGTASKITSTHR_H 17 #define QUALITYCONTROL_TRENDINGTASKITSTHR_H 19 #include "ITS/TrendingTaskConfigITS.h" 30 #include <unordered_map> 34 class DatabaseInterface;
59 void configure(std::string name,
60 const boost::property_tree::ptree& config)
override;
61 void initialize(
Trigger, framework::ServiceRegistry&)
override;
62 void update(
Trigger, framework::ServiceRegistry&)
override;
63 void finalize(
Trigger, framework::ServiceRegistry&)
override;
66 void SetLegendStyle(TLegend* leg);
67 void SetGraphStyle(TGraph* g,
int col,
int mkr);
68 void SetGraphNameAndAxes(TGraph* g, std::string name, std::string title,
69 std::string xtitle, std::string ytitle,
double ymin,
70 double ymax, std::vector<std::string> runlist);
71 void PrepareLegend(TLegend* leg,
int layer);
85 std::unique_ptr<TTree> mTrend;
86 std::vector<std::string> runlist;
87 Int_t ntreeentries = 0;
88 std::unordered_map<std::string, std::unique_ptr<Reductor>> mReductors;
90 const int col[7] = { 1, 2, 3, 4, 5, 6, 7 };
91 const int mkr[3] = { 8, 29, 34 };
92 static constexpr
int NLAYERS = 3;
93 static constexpr
int NTRENDSTHR = 3;
94 const int nStaves[NLAYERS] = { 12, 16, 20 };
95 const std::string trendtitles[NTRENDSTHR] = {
"Threshold mean",
96 "Threshold rms",
"Dead pixel" };
97 const std::string trendnames[NTRENDSTHR] = {
"mean",
"rms",
"deadpix" };
98 const std::string ytitles[NTRENDSTHR] = {
99 "Threshold mean (DAC)",
"Threshold rms (DAC)",
"# Dead Pixels" 105 #endif // QUALITYCONTROL_TRENDINGTASKITSTHR_H Definition: Triggers.h:42
Definition: AggregatorRunner.h:59
Skeleton of a post-processing task.
Definition: PostProcessingInterface.h:35
The interface to the MonitorObject's repository.
Definition: DatabaseInterface.h:35
TrendingTask configuration structure.
Definition: TrendingTaskConfigITS.h:28
Definition: PostProcessingConfig.h:23
A post-processing task which trends values, stores them in a TTree and produces plots.
Definition: TrendingTaskITSThr.h:53