ATLAS Offline Software
Loading...
Searching...
No Matches
FlatBM.h
Go to the documentation of this file.
1/* -*- C++ -*- */
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef PILEUPCOMPS_FLATBM
8#define PILEUPCOMPS_FLATBM 1
16
17class FlatBM : public extends<AthService, IBeamIntensity>
18{
19public:
21
22 FlatBM(const std::string& name,ISvcLocator* svc);
24
26 inline virtual float normFactor(int /*iXing*/) const override final { return 1.0; }
27 inline virtual float largestElementInPattern() const override final { return 1.0; }
28 inline virtual void selectT0(const EventContext& /*ctx*/) override {}
29 inline virtual unsigned int getCurrentT0BunchCrossing() const override final
30 {
31 //The first filled bunch crossing is always BCID 1
32 return 1;
33 }
34 inline virtual unsigned int getBeamPatternLength() const override final { return 1; }
36};
37#endif
provides the relative beam intensity as a function of the bunch xing.
virtual float largestElementInPattern() const override final
Definition FlatBM.h:27
virtual float normFactor(int) const override final
Definition FlatBM.h:26
virtual unsigned int getCurrentT0BunchCrossing() const override final
Definition FlatBM.h:29
FlatBM(const std::string &name, ISvcLocator *svc)
Definition FlatBM.cxx:7
virtual void selectT0(const EventContext &) override
Definition FlatBM.h:28
virtual unsigned int getBeamPatternLength() const override final
Definition FlatBM.h:34