ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileConditions
TileConditions
TileCablingSvc.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILECONDITIONS_TILECABLINGSVC_H
6
#define TILECONDITIONS_TILECABLINGSVC_H
7
8
// Tile includes
9
#include "
TileConditions/TileCablingService.h
"
10
11
// Athena includes
12
#include "
AthenaBaseComps/AthService.h
"
13
#include "Identifier/Identifier.h"
14
#include "
CxxUtils/checker_macros.h
"
15
16
// Gaudi includes
17
#include "GaudiKernel/ServiceHandle.h"
18
#include "Gaudi/Property.h"
19
20
#include <string>
21
#include <vector>
22
23
// Forward declaration
24
class
StoreGateSvc
;
25
26
//NGO This is a quick hack to make TileCablingService self contained, i.e. this
27
//NGO wrapper tool takes care of the initialization.
28
//NGO At some point TileCablingService should be made a tool, but this will introduce
29
//NGO many upstream code changes.
30
31
class
TileCablingSvc
:
public
AthService
{
32
33
public
:
34
35
TileCablingSvc
(
const
std::string& name, ISvcLocator* pSvcLocator);
36
37
virtual
StatusCode
initialize
ATLAS_NOT_THREAD_SAFE
()
override
;
38
39
const
TileCablingService
*
cablingService
()
const
{
40
return
m_cablingService
;
41
}
42
43
const
std::vector<std::string> &
connectedDrawers
()
const
{
44
return
m_connectedDrawers
;
45
}
46
const
std::vector<Identifier> &
disconnectedCells
()
const
{
47
return
m_disconnectedCells
;
48
}
49
50
private
:
51
52
const
TileCablingService
*
m_cablingService
{
nullptr
};
53
54
Gaudi::Property<std::vector<std::string>>
m_connectedDrawers
{
this
,
"ConnectedDrawers"
, {},
55
"List of connected drawer ranges: starts,end1,start2,end2,..."
};
// list of connected drawers
56
// we assume that list contains even number of elements - pairs of (begin,end) range,
57
// e.g. all drawers connected looks like this:
58
// [ "0x100", "0x13F", "0x200", "0x23F", "0x300", "0x33F", "0x400", "0x43F" ]
59
// and this is the list for few drawers in LBA connected:
60
// [ "0x10A", "0x10C", "0x121", "0x123" ]
61
// empty list is equivalent to list with all drawers connected
62
63
ServiceHandle<StoreGateSvc>
m_detStore
;
64
65
Gaudi::Property<int>
m_cablingType
{
this
,
"CablingType"
, -9,
66
"Cabling type: -1 - testbeam, 0 - old simulation, 1 - without MBTS, 2 - with MBTS instead of crack scin, 3 - MBTS in spare channels, 4 - RUN2 cabling, 5 - RUN2a cabling"
};
67
68
//Use cache for channel_id to cell_id conversion
69
Gaudi::Property<bool>
m_useCache
{
this
,
"UseCache"
,
true
,
"Use cache for channel_id to cell_id conversion"
};
70
71
std::vector<Identifier>
m_disconnectedCells
;
// list of disconnected cells
72
// the cells which appear in this list are:
73
// missing D4 in EBA15, EBC18
74
// 16 E3 cells in EBA (disconnected because of MBTS)
75
// 20 E3 cells in EBC (16 disconnected because of MBTS and 4 due to other reasons)
76
77
enum
MAX_TILE_CELLS
{
MAX_TILE_CELLS_UPGRADEA
= 11200,
MAX_TILE_CELLS_UPGRADEBC
= 6208,
MAX_TILE_CELLS_UPGRADEABC
= 12224};
78
};
79
80
#endif
AthService.h
TileCablingService.h
checker_macros.h
Define macros for attributes used to control the static checker.
AthService::AthService
AthService()
ServiceHandle
Definition
ClusterMakerTool.h:36
StoreGateSvc
The Athena Transient Store API.
Definition
StoreGateSvc.h:113
TileCablingService
Definition
TileCablingService.h:23
TileCablingSvc::MAX_TILE_CELLS
MAX_TILE_CELLS
Definition
TileCablingSvc.h:77
TileCablingSvc::MAX_TILE_CELLS_UPGRADEABC
@ MAX_TILE_CELLS_UPGRADEABC
Definition
TileCablingSvc.h:77
TileCablingSvc::MAX_TILE_CELLS_UPGRADEBC
@ MAX_TILE_CELLS_UPGRADEBC
Definition
TileCablingSvc.h:77
TileCablingSvc::MAX_TILE_CELLS_UPGRADEA
@ MAX_TILE_CELLS_UPGRADEA
Definition
TileCablingSvc.h:77
TileCablingSvc::m_connectedDrawers
Gaudi::Property< std::vector< std::string > > m_connectedDrawers
Definition
TileCablingSvc.h:54
TileCablingSvc::m_disconnectedCells
std::vector< Identifier > m_disconnectedCells
Definition
TileCablingSvc.h:71
TileCablingSvc::ATLAS_NOT_THREAD_SAFE
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
TileCablingSvc::disconnectedCells
const std::vector< Identifier > & disconnectedCells() const
Definition
TileCablingSvc.h:46
TileCablingSvc::m_cablingService
const TileCablingService * m_cablingService
Definition
TileCablingSvc.h:52
TileCablingSvc::m_useCache
Gaudi::Property< bool > m_useCache
Definition
TileCablingSvc.h:69
TileCablingSvc::cablingService
const TileCablingService * cablingService() const
Definition
TileCablingSvc.h:39
TileCablingSvc::connectedDrawers
const std::vector< std::string > & connectedDrawers() const
Definition
TileCablingSvc.h:43
TileCablingSvc::TileCablingSvc
TileCablingSvc(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TileCablingSvc.cxx:30
TileCablingSvc::m_cablingType
Gaudi::Property< int > m_cablingType
Definition
TileCablingSvc.h:65
TileCablingSvc::m_detStore
ServiceHandle< StoreGateSvc > m_detStore
Definition
TileCablingSvc.h:63
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0