16 #ifndef QUALITYCONTROL_TRENDINGTASKITSFHR_H 17 #define QUALITYCONTROL_TRENDINGTASKITSFHR_H 19 #include "ITS/TrendingTaskConfigITS.h" 31 #include <unordered_map> 35 class DatabaseInterface;
60 void configure(std::string name,
61 const boost::property_tree::ptree& config)
override;
62 void initialize(
Trigger, framework::ServiceRegistry&)
override;
63 void update(
Trigger, framework::ServiceRegistry&)
override;
64 void finalize(
Trigger, framework::ServiceRegistry&)
override;
68 void SetLegendStyle(TLegend* leg);
69 void SetGraphStyle(TGraph* g,
int col,
int mkr);
70 void SetGraphNameAndAxes(TGraph* g, std::string name, std::string title,
71 std::string xtitle, std::string ytitle,
double ymin,
72 double ymax, std::vector<std::string> runlist);
73 void PrepareLegend(TLegend* leg,
int layer);
85 Int_t ntreeentries = 0;
87 std::vector<std::string> runlist;
88 std::unique_ptr<TTree> mTrend;
89 std::unordered_map<std::string, std::unique_ptr<Reductor>> mReductors;
91 const int col[7] = { 1, 2, 3, 4, 5, 6, 7 };
92 const int mkr[3] = { 8, 29, 34 };
93 static constexpr
int NLAYERS = 3;
94 static constexpr
int NTRENDSFHR = 4;
95 const int nStaves[NLAYERS] = { 12, 16, 20 };
96 const std::string trendtitles[NTRENDSFHR] = {
"Fake-hit rate",
97 "Stddev Fake-hit rate",
"Number of Active chips",
"Occupancy" };
98 const std::string trendnames[NTRENDSFHR] = {
"mean",
"rms",
"activechips",
"occupancy" };
99 const std::string ytitles[NTRENDSFHR] = {
100 "Fake-hit rate (/event/pixel)",
"Stddev Fake-hit rate (/event/pixel)",
"# Active chips",
"Occupancy (/event)" 106 #endif // QUALITYCONTROL_TRENDINGTASKITSFHR_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
A post-processing task which trends values, stores them in a TTree and produces plots.
Definition: TrendingTaskITSFhr.h:54
Definition: PostProcessingConfig.h:23