ATLAS Offline Software
FlatBM.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef PILEUPCOMPS_FLATBM
8 #define PILEUPCOMPS_FLATBM 1
9 
17 
18 class FlatBM : public extends<AthService, IBeamIntensity>
19 {
20 public:
22 
23  FlatBM(const std::string& name,ISvcLocator* svc);
25 
27  inline virtual float normFactor(int /*iXing*/) const override final { return 1.0; }
28  inline virtual float largestElementInPattern() const override final { return 1.0; }
29  inline virtual void selectT0(unsigned int /*run*/, unsigned long long /*event*/) override {}
30  inline virtual unsigned int getCurrentT0BunchCrossing() const override final
31  {
32  //The first filled bunch crossing is always BCID 1
33  return 1;
34  }
35  inline virtual unsigned int getBeamPatternLength() const override final { return 1; }
37 };
38 #endif
FlatBM
Definition: FlatBM.h:19
FlatBM::getCurrentT0BunchCrossing
virtual unsigned int getCurrentT0BunchCrossing() const override final
Definition: FlatBM.h:30
FlatBM::normFactor
virtual float normFactor(int) const override final
Definition: FlatBM.h:27
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
FlatBM::getBeamPatternLength
virtual unsigned int getBeamPatternLength() const override final
Definition: FlatBM.h:35
FlatBM::FlatBM
FlatBM(const std::string &name, ISvcLocator *svc)
Definition: FlatBM.cxx:7
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
FlatBM::largestElementInPattern
virtual float largestElementInPattern() const override final
Definition: FlatBM.h:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
FlatBM::selectT0
virtual void selectT0(unsigned int, unsigned long long) override
Definition: FlatBM.h:29
IBeamIntensity.h
provides the relative beam intensity as a function of the bunch xing.
AthService.h