ATLAS Offline Software
ModifySlices.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT1CALOBYTESTREAM_MODIFYSLICES_H
6 #define TRIGT1CALOBYTESTREAM_MODIFYSLICES_H
7 
8 #include <vector>
9 
10 namespace LVL1BS {
11 
17 class ModifySlices {
18 
19  public:
22 
24  static int peak(int oldPeak, int oldSlices, int newSlices);
26  static void data(const std::vector<int>& oldVec,
27  std::vector<int>& newVec, int newSlices);
29  static void data(const std::vector<unsigned int>& oldVec,
30  std::vector<unsigned int>& newVec, int newSlices);
31 
32 };
33 
34 } // end namespace
35 
36 #endif
LVL1BS::ModifySlices::peak
static int peak(int oldPeak, int oldSlices, int newSlices)
Return new triggered slice offset.
Definition: ModifySlices.cxx:12
LVL1BS::ModifySlices::~ModifySlices
~ModifySlices()
LVL1BS::ModifySlices::data
static void data(const std::vector< int > &oldVec, std::vector< int > &newVec, int newSlices)
Return modified data vector<int>
Definition: ModifySlices.cxx:20
LVL1BS
Definition: ZdcModifySlices.h:10
LVL1BS::ModifySlices
Utility to modify the number of slices.
Definition: ModifySlices.h:17
LVL1BS::ModifySlices::ModifySlices
ModifySlices()