ATLAS Offline Software
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 
9 #include "TileEvent/TileCell.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:
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) {
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
LArCellCont.h
ITrigCaloDataAccessSvc::comp
void comp(const EventContext &context)
Definition: ITrigCaloDataAccessSvc.h:69
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
ITrigCaloDataAccessSvc::DeclareInterfaceID
DeclareInterfaceID(ITrigCaloDataAccessSvc, 1, 0)
Interface for Virtual Class.
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
DETID
DETID
An enum to define subdetector names.
Definition: RegSelEnums.h:23
ITrigCaloDataAccessSvc::loadFullCollections
virtual StatusCode loadFullCollections(const EventContext &context, CaloConstCellContainer &cont)=0
Loads the full collection for the missing et computation.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition: IRoiDescriptor.h:23
LArTT_Selector.h
TileCell.h
ITrigCaloDataAccessSvc::loadMBTS
virtual StatusCode loadMBTS(const EventContext &context, std::vector< const TileCell * > &)=0
ITrigCaloDataAccessSvc::loadCollections
virtual StatusCode loadCollections(const EventContext &context, const IRoiDescriptor &roi, std::vector< const TileCell * > &)=0
python.TriggerConfigAccess.maxsize
maxsize
Definition: TriggerConfigAccess.py:51
ITrigCaloDataAccessSvc::storeCells
void storeCells(const EventContext &context, T Begin, T End, CaloCellContainer *&pContainer, const float threshold=0., const uint32_t maxsize=1000)
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
threshold
Definition: chainparser.cxx:74
LArTT_Selector< LArCellCont >
CaloCellContainer.h
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
CaloConstCellContainer
CaloCellContainer that can accept const cell pointers.
Definition: CaloConstCellContainer.h:45
IRoiDescriptor.h
ITrigCaloDataAccessSvc
Definition: ITrigCaloDataAccessSvc.h:19
CaloConstCellContainer.h
CaloCellContainer that can accept const cell pointers.
RegSelEnums.h
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35