ATLAS Offline Software
Loading...
Searching...
No Matches
BunchCrossingIntensityCondAlg.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef LUMIBLOCKCOMPS_BUNCHCROSSINGINTENSITYCONDALG_H
14#define LUMIBLOCKCOMPS_BUNCHCROSSINGINTENSITYCONDALG_H
15
16
25
26
31
32public:
34 using AthCondAlgorithm::AthCondAlgorithm;
35 // typedef BunchCrossingIntensityCondData::bunchTrain_t bunchTrain_t;
36
37
39 virtual StatusCode initialize() override;
40
41
43 virtual StatusCode execute (const EventContext& ctx) const override;
44
45
46
47private:
49 SG::ReadCondHandleKey<CondAttrListCollection> m_fillParamsFolderKey{ this, "FillParamsFolderKey", "/TDAQ/OLC/LHC/BUNCHDATA", "" };
50 SG::ReadCondHandleKey<LuminosityCondData> m_lumiCondDataKey{this, "LumiCondData", "LuminosityCondData", "Lumi cond data key"};
51
52
54 SG::WriteCondHandleKey<BunchCrossingIntensityCondData> m_outputKey{this, "OutputKey", "BunchCrossingIntensityData", "Key of output CDO" };
55
56 // Service handle
57 const ServiceHandle<TrigConf::ILVL1ConfigSvc> m_trigConfigSvc{this, "TrigConfigSvc", "", "Trig Config Svc"};
58
60 std::vector<float> tokenize(const std::string& pattern) const;
61
62 //Algorithm properties
63
64 // Properties of the two different possible channels
65 Gaudi::Property<unsigned long> m_BPTX{ this, "BunchDevice", 0, "Channel assignments: 0=BPTX, 1=fast BCT." };
66 Gaudi::Property<unsigned long> m_fBCT{ this, "BunchDeviceFast", 1, "Channel assignments: 0=BPTX, 1=fast BCT." };
67
68 // general properties
69 Gaudi::Property<unsigned> m_maxBunchSpacing{this, "MaxBunchSpacing",5, "Maximal bunch-spacing to be considered a 'bunch train'"};
70 Gaudi::Property<unsigned> m_minBunchesPerTrain{this, "MinBunchesPerTrain",32, "Minimal number of bunches to be considerd a 'bunch train'"};
71 Gaudi::Property<bool> m_isRun1{this,"Run1",false,"Assume run-1 database"};
72 Gaudi::Property<int> m_mode{this, "Mode", 1, "Alg mode (COOL FILLPARAMS = 0, MC = 1, TrigConf = 2, Luminosity = 3)"};
73};
74
75#endif
Base class for conditions algorithms.
Adding more information about Bunch Current Intensities (for Lumi studies)
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Holds fill parameters data.
Hold luminosity data produced by LuminosityCondAlg.
Base class for conditions algorithms.
Conditions algorithm to unpack fill parameters from COOL.
const ServiceHandle< TrigConf::ILVL1ConfigSvc > m_trigConfigSvc
SG::ReadCondHandleKey< CondAttrListCollection > m_fillParamsFolderKey
Input conditions object.
virtual StatusCode initialize() override
Gaudi initialize method.
SG::ReadCondHandleKey< LuminosityCondData > m_lumiCondDataKey
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute method.
Gaudi::Property< unsigned > m_maxBunchSpacing
Gaudi::Property< unsigned long > m_fBCT
SG::WriteCondHandleKey< BunchCrossingIntensityCondData > m_outputKey
Output conditions object.
Gaudi::Property< unsigned > m_minBunchesPerTrain
std::vector< float > tokenize(const std::string &pattern) const
internal methods:
Gaudi::Property< unsigned long > m_BPTX