ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
18class FlatBM : public extends<AthService, IBeamIntensity>
19{
20public:
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
provides the relative beam intensity as a function of the bunch xing.
virtual void selectT0(unsigned int, unsigned long long) override
Definition FlatBM.h:29
virtual float largestElementInPattern() const override final
Definition FlatBM.h:28
virtual float normFactor(int) const override final
Definition FlatBM.h:27
virtual unsigned int getCurrentT0BunchCrossing() const override final
Definition FlatBM.h:30
FlatBM(const std::string &name, ISvcLocator *svc)
Definition FlatBM.cxx:7
virtual unsigned int getBeamPatternLength() const override final
Definition FlatBM.h:35