ATLAS Offline Software
BunchCrossingIntensityCondTest.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_BUNCHCROSSINGINTENSITYCONDTEST_H
8 #define LUMIBLOCKCOMPS_BUNCHCROSSINGINTENSITYCONDTEST_H
9 
10 // Gaudi/Athena include(s):
11 #include "GaudiKernel/ToolHandle.h"
12 #include "Gaudi/Property.h"
15 
16 #include <fstream>
17 
19 
20 public:
23 
25  virtual StatusCode initialize();
27  virtual StatusCode execute();
28 
29 private:
31  static void printInfo(const BunchCrossingIntensityCondData* bccd, unsigned int bcid, std::ostream& out,int channel);
32 
33  SG::ReadCondHandleKey<BunchCrossingIntensityCondData> m_inputKey{this,"InputKey","BunchCrossingIntensityData",""};
34 
35  Gaudi::Property<std::string> m_fileName{this,"FileName",""};
36  Gaudi::Property<bool> m_compact{this,"compact",false};
37 
38  std::ofstream m_fileOut;
39 
40 };
41 
42 
43 
44 #endif
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
BunchCrossingIntensityCondTest::initialize
virtual StatusCode initialize()
Initialization run before the event loop.
Definition: BunchCrossingIntensityCondTest.cxx:9
BunchCrossingIntensityCondData.h
Adding more information about Bunch Current Intensities (for Lumi studies)
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
BunchCrossingIntensityCondTest::m_fileName
Gaudi::Property< std::string > m_fileName
Definition: BunchCrossingIntensityCondTest.h:35
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
BunchCrossingIntensityCondTest::m_inputKey
SG::ReadCondHandleKey< BunchCrossingIntensityCondData > m_inputKey
Definition: BunchCrossingIntensityCondTest.h:33
BunchCrossingIntensityCondTest
Definition: BunchCrossingIntensityCondTest.h:18
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
SG::ReadCondHandleKey< BunchCrossingIntensityCondData >
BunchCrossingIntensityCondData
Definition: BunchCrossingIntensityCondData.h:23
BunchCrossingIntensityCondTest::m_compact
Gaudi::Property< bool > m_compact
Definition: BunchCrossingIntensityCondTest.h:36
BunchCrossingIntensityCondTest::m_fileOut
std::ofstream m_fileOut
Definition: BunchCrossingIntensityCondTest.h:38
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
BunchCrossingIntensityCondTest::printInfo
static void printInfo(const BunchCrossingIntensityCondData *bccd, unsigned int bcid, std::ostream &out, int channel)
Function for printing detailed info about a given bunch crossing.
Definition: BunchCrossingIntensityCondTest.cxx:55
BunchCrossingIntensityCondTest::execute
virtual StatusCode execute()
Function called once per event.
Definition: BunchCrossingIntensityCondTest.cxx:31