ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigT2CaloCommon
TrigT2CaloCommon
ITrigCaloDataAccessSvc.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TrigT2CaloCommon_ITrigCaloDataAccessSvc_h
5
#define TrigT2CaloCommon_ITrigCaloDataAccessSvc_h
6
7
#include "
LArRawUtils/LArTT_Selector.h
"
8
#include "
TrigT2CaloCommon/LArCellCont.h
"
9
#include "
TileEvent/TileCell.h
"
10
#include "
IRegionSelector/IRoiDescriptor.h
"
11
#include "
IRegionSelector/RegSelEnums.h
"
12
#include "
CaloEvent/CaloCellContainer.h
"
13
#include "
CaloEvent/CaloConstCellContainer.h
"
14
#include "GaudiKernel/EventContext.h"
15
#include "GaudiKernel/IService.h"
16
#include "GaudiKernel/StatusCode.h"
17
18
19
class
ITrigCaloDataAccessSvc
:
virtual
public
IService {
20
public
:
22
DeclareInterfaceID
(
ITrigCaloDataAccessSvc
, 1, 0);
23
27
virtual
StatusCode
loadCollections
(
const
EventContext& context,
28
const
IRoiDescriptor
& roi,
29
const
DETID
detId,
const
int
sampling,
30
LArTT_Selector<LArCellCont>
& loadedCells ) = 0;
31
/* /\** */
32
/* * @brief LoadCollections fetches data via ROBDataProvider */
33
/* * and really provides ByteStream Conversion by calling */
34
/* * detector specific (LAr or Tile) ByteStream Conversion */
35
/* * Tools within RoI as defined in the above method. */
36
/* * @param[out] TileCellCollection::const_iterator outputs */
37
/* * begin, end interator to TileCells. */
38
/* * @param[in] sample (deprecated) maintained for compatibility. */
39
/* * @param[in] prepare if container should be prepared or */
40
/* * considered as already existing (multilayer HEC or Tile */
41
/* * access). */
42
/* *\/ */
43
virtual
StatusCode
loadCollections
(
const
EventContext& context,
44
const
IRoiDescriptor
& roi,
45
std::vector<const TileCell*>&) = 0;
46
47
virtual
StatusCode
loadMBTS
(
const
EventContext& context,
48
std::vector<const TileCell*>& )=0;
49
50
54
virtual
StatusCode
loadFullCollections
(
const
EventContext& context,
55
CaloConstCellContainer
& cont ) = 0;
56
57
/*
58
method to store cells in a container with
59
a given key. The hottest number cells are placed in the
60
container or all if number=-1, no Key makes the default
61
key to be RoICells
62
*/
63
template
<
class
T>
64
void
storeCells
(
const
EventContext& context, T Begin, T End,
CaloCellContainer
*& pContainer,
65
const
float
threshold
= 0.,
const
uint32_t maxsize=1000 );
66
67
private
:
68
// Dummy method just to help compilation
69
void
comp
(
const
EventContext& context) {
70
LArTT_Selector<LArCellCont>::const_iterator
l;
71
//TileCellCollection::const_iterator t;
72
CaloCellContainer
* cont=NULL;
73
storeCells
(context, l,l,cont);
74
//storeCells(context, t,t,cont);
75
}
76
protected
:
77
};
78
79
#endif
CaloCellContainer.h
CaloConstCellContainer.h
CaloCellContainer that can accept const cell pointers.
IRoiDescriptor.h
LArCellCont.h
LArTT_Selector.h
RegSelEnums.h
DETID
DETID
An enum to define subdetector names.
Definition
RegSelEnums.h:23
TileCell.h
CaloCellContainer
Container class for CaloCell.
Definition
CaloCellContainer.h:55
CaloConstCellContainer
CaloCellContainer that can accept const cell pointers.
Definition
CaloConstCellContainer.h:45
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition
IRoiDescriptor.h:23
ITrigCaloDataAccessSvc
Definition
ITrigCaloDataAccessSvc.h:19
ITrigCaloDataAccessSvc::loadCollections
virtual StatusCode loadCollections(const EventContext &context, const IRoiDescriptor &roi, std::vector< const TileCell * > &)=0
ITrigCaloDataAccessSvc::loadCollections
virtual StatusCode loadCollections(const EventContext &context, const IRoiDescriptor &roi, const DETID detId, const int sampling, LArTT_Selector< LArCellCont > &loadedCells)=0
downloads the LAr data for an RoI and makes sure the cache collection is filled wiht decoded cells
ITrigCaloDataAccessSvc::loadFullCollections
virtual StatusCode loadFullCollections(const EventContext &context, CaloConstCellContainer &cont)=0
Loads the full collection for the missing et computation.
ITrigCaloDataAccessSvc::comp
void comp(const EventContext &context)
Definition
ITrigCaloDataAccessSvc.h:69
ITrigCaloDataAccessSvc::DeclareInterfaceID
DeclareInterfaceID(ITrigCaloDataAccessSvc, 1, 0)
Interface for Virtual Class.
ITrigCaloDataAccessSvc::loadMBTS
virtual StatusCode loadMBTS(const EventContext &context, std::vector< const TileCell * > &)=0
ITrigCaloDataAccessSvc::storeCells
void storeCells(const EventContext &context, T Begin, T End, CaloCellContainer *&pContainer, const float threshold=0., const uint32_t maxsize=1000)
LArTT_Selector::const_iterator
Definition
LArTT_Selector.h:59
LArTT_Selector
Definition
LArTT_Selector.h:15
threshold
Definition
chainparser.cxx:74
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0