ATLAS Offline Software
Loading...
Searching...
No Matches
TileCosmicsTrigger.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5//****************************************************************************
6// Filename : TileCosmicsTrigger.h
7// Author : jose.maneira@cern.ch
8// Created : Nov 2005
9// Reviewed : March 2007 remove std.alone ntp, output to TileEvent/TileTrigger
10// May 2007 set 8 boards
11//
12// DESCRIPTION
13//
14// To emulate the cosmics trigger in several different configurations
15// To create Ntuple a vector with flags for each type of trigger
16//
17// Properties (JobOption Parameters):
18//
19// TileTTL1Container string key value of TileTTL1 in TDS
20//
21// BUGS:
22//
23// History:
24//
25//
26//****************************************************************************
27#ifndef TILECOSMICALGS_TILECOSMICSTRIGGER_H
28#define TILECOSMICALGS_TILECOSMICSTRIGGER_H
29//TileCalo include
32
33// Athena includes
37
38class CaloLVL1_ID;
39class TileTTL1Hash;
40
41#include <string>
42
43#define NMAXTOWERS 1920
44
56
58 public:
59 //Constructor
60 TileCosmicsTrigger(const std::string& name, ISvcLocator* pSvcLocator);
61
62 //Destructor
63 virtual ~TileCosmicsTrigger();
64
65 //Gaudi Hooks
66 StatusCode initialize();
67 StatusCode execute();
68 StatusCode finalize();
69
70 private:
71
72// Input variables
73//
74 std::vector<std::string> m_connectedDrawers[8];
75 std::vector<std::string> m_connectedDrawers1;
76 std::vector<std::string> m_connectedDrawers2;
77 std::vector<std::string> m_connectedDrawers3;
78 std::vector<std::string> m_connectedDrawers4;
79 std::vector<std::string> m_connectedDrawers5;
80 std::vector<std::string> m_connectedDrawers6;
81 std::vector<std::string> m_connectedDrawers7;
82 std::vector<std::string> m_connectedDrawers8;
84
85// Constants and auxiliary variables
86//
87 static const int m_NMaxTowers;
90 //int m_NTOWERSPERDRAWER;
91
96
97// Store Gate & Auxiliary algorithms
98//
99
102
103 SG::ReadHandleKey<TileTTL1Container> m_ttl1ContainerKey{this, "TileTTL1Container", "TileTTL1Cnt", "Input TileTTL1Container name"};
104 SG::WriteHandleKey<TileTriggerContainer> m_triggerContainerKey{this, "TileTriggerContainer","TileTriggerCnt", "Output TileTriggerContainer name"};
105
106};
107
108#endif // TILECOSMICALGS_TILECOSMICSTRIGGER_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
#define NMAXTOWERS
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class for offline TT identifiers.
Definition CaloLVL1_ID.h:66
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
bool m_connectedTowers[NMAXTOWERS]
std::vector< std::string > m_connectedDrawers[8]
std::vector< std::string > m_connectedDrawers2
std::vector< std::string > m_connectedDrawers1
SG::ReadHandleKey< TileTTL1Container > m_ttl1ContainerKey
int m_boardOfTower[NMAXTOWERS]
TileCosmicsTrigger(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< std::string > m_connectedDrawers4
std::vector< std::string > m_connectedDrawers6
SG::WriteHandleKey< TileTriggerContainer > m_triggerContainerKey
std::vector< std::string > m_connectedDrawers3
float m_towerSum[NMAXTOWERS]
bool m_firedTowers[NMAXTOWERS]
std::vector< std::string > m_connectedDrawers5
std::vector< std::string > m_connectedDrawers7
std::vector< std::string > m_connectedDrawers8
const CaloLVL1_ID * m_TT_ID
static const int m_NMaxTowers
Hash table for TileTTL1 identifiers.