ATLAS Offline Software
Loading...
Searching...
No Matches
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
14#include "GaudiKernel/EventContext.h"
15#include "GaudiKernel/IService.h"
16#include "GaudiKernel/StatusCode.h"
17
18
19class ITrigCaloDataAccessSvc: virtual public IService {
20 public:
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
67private :
68 // Dummy method just to help compilation
69 void comp (const EventContext& context) {
71 //TileCellCollection::const_iterator t;
72 CaloCellContainer * cont=NULL;
73 storeCells(context, l,l,cont);
74 //storeCells(context, t,t,cont);
75 }
76protected:
77};
78
79#endif
CaloCellContainer that can accept const cell pointers.
DETID
An enum to define subdetector names.
Definition RegSelEnums.h:23
Container class for CaloCell.
CaloCellContainer that can accept const cell pointers.
Describes the API of the Region of Ineterest geometry.
virtual StatusCode loadCollections(const EventContext &context, const IRoiDescriptor &roi, std::vector< const TileCell * > &)=0
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
virtual StatusCode loadFullCollections(const EventContext &context, CaloConstCellContainer &cont)=0
Loads the full collection for the missing et computation.
void comp(const EventContext &context)
DeclareInterfaceID(ITrigCaloDataAccessSvc, 1, 0)
Interface for Virtual Class.
virtual StatusCode loadMBTS(const EventContext &context, std::vector< const TileCell * > &)=0
void storeCells(const EventContext &context, T Begin, T End, CaloCellContainer *&pContainer, const float threshold=0., const uint32_t maxsize=1000)
#define private