|
ATLAS Offline Software
|
Go to the documentation of this file.
24 std::vector<std::string>
layers = {
"layer1",
"layer2"};
25 std::vector<std::string>
clusters = {
"clusterX",
"clusterB"};
28 return StatusCode::SUCCESS;
47 std::vector<std::string> strvec{
"alpha",
"beta"};
50 std::string mystring =
"gamma";
62 TRandom3
r(ctx.eventID().event_number());
70 pT_passed =
pT>
r.Poisson(15);
73 std::vector<double> pT_vec{
pT};
74 while (pT_vec.back() > 5) {
75 pT_vec.push_back(pT_vec.back() - 5);
80 fill(
"ExampleMonitor",lumiPerBCID,
lb,random,
pT,pT_passed,mon_pT_vec,testweight,mon_str,mon_strvec,mon_evtstr);
87 std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>> varVec = {lumiPerBCID,
pT};
88 fill(
"ExampleMonitor",varVec);
95 for (
auto iEta : {0,1} ) {
100 for (
auto iPhi : {0,1} ) {
107 for (
auto&
layer : std::vector<std::string>({
"layer1",
"layer2"}) ) {
109 for (
auto& cluster : std::vector<std::string>({
"clusterX",
"clusterB"}) ) {
115 return StatusCode::SUCCESS;
virtual ~ExampleMonitorAlgorithm()
std::vector< std::vector< int > > m_abGroups2
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Base class for Athena Monitoring Algorithms.
Generic monitoring tool for athena components.
std::vector< int > m_abGroups1
::StatusCode StatusCode
StatusCode definition for legacy code.
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
std::map< std::string, int > m_cGroups1
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Gaudi::Property< bool > m_doRandom
std::string to_string(const DetectorType &type)
virtual float lbAverageInteractionsPerCrossing(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Calculate the average mu, i.e.
virtual StatusCode initialize() override
initialize
virtual StatusCode initialize() override
initialize
Declare a monitored scalar variable.
std::map< std::string, std::map< std::string, int > > m_cGroups2
ExampleMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
setScale setgFexType iEta
const ToolHandle< GenericMonitoringTool > & getGroup(const std::string &name) const
Get a specific monitoring tool from the tool handle array.