ATLAS Offline Software
Loading...
Searching...
No Matches
BunchCrossingAverageCondTest.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef LUMIBLOCKCOMPS_BUNCHCROSSINGAVERAGECONDTEST_H
8#define LUMIBLOCKCOMPS_BUNCHCROSSINGAVERAGECONDTEST_H
9
10// Gaudi/Athena include(s):
11#include "GaudiKernel/ToolHandle.h"
12#include "Gaudi/Property.h"
15
16#include <fstream>
17
19
20public:
23
25 virtual StatusCode initialize();
27 virtual StatusCode execute();
28
29private:
31 static void printInfo(const BunchCrossingAverageCondData* bccd, unsigned int channel, std::ostream& out);
32
33 SG::ReadCondHandleKey<BunchCrossingAverageCondData> m_inputKey{this,"InputKey","BunchCrossingAverageData",""};
34
35 Gaudi::Property<std::string> m_fileName{this,"FileName",""};
36
37 // Gaudi::Property<bool> m_compact{this,"compact",false};
38
39 std::ofstream m_fileOut;
40
41};
42
43
44
45#endif
Adding more information about Bunch Current Intensities (for Lumi studies)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode initialize()
Initialization run before the event loop.
virtual StatusCode execute()
Function called once per event.
SG::ReadCondHandleKey< BunchCrossingAverageCondData > m_inputKey
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Regular Athena algorithm constructor.
static void printInfo(const BunchCrossingAverageCondData *bccd, unsigned int channel, std::ostream &out)
Function for printing detailed info about a given bunch crossing.
Gaudi::Property< std::string > m_fileName