ATLAS Offline Software
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  */
13 #ifndef LUMIBLOCKCOMPS_BUNCHCROSSINGINTENSITYCONDALG_H
14 #define LUMIBLOCKCOMPS_BUNCHCROSSINGINTENSITYCONDALG_H
15 
16 
25 
26 
31 
32 public:
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  virtual bool isReEntrant() const override final { return false; }
45 
46 
47 
48 private:
50  SG::ReadCondHandleKey<CondAttrListCollection> m_fillParamsFolderKey{ this, "FillParamsFolderKey", "/TDAQ/OLC/LHC/BUNCHDATA", "" };
51  SG::ReadCondHandleKey<LuminosityCondData> m_lumiCondDataKey{this, "LumiCondData", "LuminosityCondData", "Lumi cond data key"};
52 
53 
55  SG::WriteCondHandleKey<BunchCrossingIntensityCondData> m_outputKey{this, "OutputKey", "BunchCrossingIntensityData", "Key of output CDO" };
56 
57  // Service handle
58  const ServiceHandle<TrigConf::ILVL1ConfigSvc> m_trigConfigSvc{this, "TrigConfigSvc", "", "Trig Config Svc"};
59 
61  std::vector<float> tokenize(const std::string& pattern) const;
62 
63  //Algorithm properties
64 
65  // Properties of the two different possible channels
66  Gaudi::Property<unsigned long> m_BPTX{ this, "BunchDevice", 0, "Channel assignments: 0=BPTX, 1=fast BCT." };
67  Gaudi::Property<unsigned long> m_fBCT{ this, "BunchDeviceFast", 1, "Channel assignments: 0=BPTX, 1=fast BCT." };
68 
69  // general properties
70  Gaudi::Property<unsigned> m_maxBunchSpacing{this, "MaxBunchSpacing",5, "Maximal bunch-spacing to be considered a 'bunch train'"};
71  Gaudi::Property<unsigned> m_minBunchesPerTrain{this, "MinBunchesPerTrain",32, "Minimal number of bunches to be considerd a 'bunch train'"};
72  Gaudi::Property<bool> m_isRun1{this,"Run1",false,"Assume run-1 database"};
73  Gaudi::Property<int> m_mode{this, "Mode", 1, "Alg mode (COOL FILLPARAMS = 0, MC = 1, TrigConf = 2, Luminosity = 3)"};
74 };
75 
76 #endif
mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
BunchCrossingIntensityCondAlg::m_minBunchesPerTrain
Gaudi::Property< unsigned > m_minBunchesPerTrain
Definition: BunchCrossingIntensityCondAlg.h:71
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
BunchCrossingIntensityCondAlg::initialize
virtual StatusCode initialize() override
Gaudi initialize method.
Definition: BunchCrossingIntensityCondAlg.cxx:39
BunchCrossingIntensityCondData.h
Adding more information about Bunch Current Intensities (for Lumi studies)
BunchCrossingIntensityCondAlg
Conditions algorithm to unpack fill parameters from COOL.
Definition: BunchCrossingIntensityCondAlg.h:30
BunchCrossingIntensityCondAlg::m_fillParamsFolderKey
SG::ReadCondHandleKey< CondAttrListCollection > m_fillParamsFolderKey
Input conditions object.
Definition: BunchCrossingIntensityCondAlg.h:50
WriteCondHandleKey.h
BunchCrossingIntensityCondAlg::m_isRun1
Gaudi::Property< bool > m_isRun1
Definition: BunchCrossingIntensityCondAlg.h:72
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
BunchCrossingIntensityCondAlg::m_fBCT
Gaudi::Property< unsigned long > m_fBCT
Definition: BunchCrossingIntensityCondAlg.h:67
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
BunchCrossingIntensityCondAlg::m_maxBunchSpacing
Gaudi::Property< unsigned > m_maxBunchSpacing
Definition: BunchCrossingIntensityCondAlg.h:70
ILVL1ConfigSvc.h
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FillParamsCondData.h
Holds fill parameters data.
BunchCrossingIntensityCondAlg::m_mode
Gaudi::Property< int > m_mode
Definition: BunchCrossingIntensityCondAlg.h:73
LuminosityCondData.h
Hold luminosity data produced by LuminosityCondAlg.
ReadCondHandleKey.h
AthReentrantAlgorithm.h
BunchCrossingIntensityCondAlg::m_BPTX
Gaudi::Property< unsigned long > m_BPTX
Definition: BunchCrossingIntensityCondAlg.h:66
BunchCrossingIntensityCondAlg::tokenize
std::vector< float > tokenize(const std::string &pattern) const
internal methods:
Definition: BunchCrossingIntensityCondAlg.cxx:220
BunchCrossingIntensityCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: BunchCrossingIntensityCondAlg.h:44
BunchCrossingIntensityCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm execute method.
Definition: BunchCrossingIntensityCondAlg.cxx:53
SG::ReadCondHandleKey< CondAttrListCollection >
BunchCrossingIntensityCondAlg::m_lumiCondDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiCondDataKey
Definition: BunchCrossingIntensityCondAlg.h:51
BunchCrossingIntensityCondAlg::m_outputKey
SG::WriteCondHandleKey< BunchCrossingIntensityCondData > m_outputKey
Output conditions object.
Definition: BunchCrossingIntensityCondAlg.h:55
SG::WriteCondHandleKey< BunchCrossingIntensityCondData >
BunchCrossingIntensityCondAlg::m_trigConfigSvc
const ServiceHandle< TrigConf::ILVL1ConfigSvc > m_trigConfigSvc
Definition: BunchCrossingIntensityCondAlg.h:58
ServiceHandle< TrigConf::ILVL1ConfigSvc >