ATLAS Offline Software
Loading...
Searching...
No Matches
count_bunch_neighbors.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGBUNCHCROSSINGTOOL_COUNT_BUNCH_NEIGHBORS_H
8#define TRIGBUNCHCROSSINGTOOL_COUNT_BUNCH_NEIGHBORS_H
9
10// System include(s):
11#include <vector>
12
13namespace Trig {
14
25
26 public:
28 count_bunch_neighbors( const std::vector< int >& bunches,
29 int maxBunchSpacing );
30
32 int operator()( int bunch ) const;
33
34 private:
36 const std::vector< int >& m_bunches;
39
40 }; // class count_bunch_neighbors
41
42} // namespace Trig
43
44#endif // TRIGBUNCHCROSSINGTOOL_COUNT_BUNCH_NEIGHBORS_H
const std::vector< int > & m_bunches
Filled bunches in the current configuration.
int operator()(int bunch) const
Count how many neighbors can be found for the specified bunch crossing.
count_bunch_neighbors(const std::vector< int > &bunches, int maxBunchSpacing)
Constructor with colliding bunches, and maximum bunch spacing.
const int m_maxBunchSpacing
Maximum bunch spacing to consider.
The common trigger namespace for trigger analysis tools.