ATLAS Offline Software
AFPToFAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AFPTOFALGORITHM_H
6 #define AFPTOFALGORITHM_H
7 
12 #include "xAODForward/AFPToFHit.h"
14 #include "xAODForward/AFPTrack.h"
16 
17 #include "TRandom3.h"
18 
20 public:
21  AFPToFAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
22  virtual ~AFPToFAlgorithm();
23  virtual StatusCode initialize() override;
24  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
26 
27 private:
28  std::map<std::string,int> m_StationNamesGroup;
29  std::map<std::string,int> m_TrainsToFGroup;
30  std::map<std::string,std::map<std::string,int>> m_BarsInTrainsA;
31  std::map<std::string,std::map<std::string,int>> m_BarsInTrainsC;
32  std::map<std::string,int> m_GroupChanCombDeltaT;
35  SG::ReadCondHandleKey<BunchCrossingCondData> m_bunchCrossingKeyToF{this, "BunchCrossingKey", "BunchCrossingData", "Key BunchCrossing CDO" };
36 
37 protected:
38  // Only 0 and 3 are ToF stations (farAside and farCside)
39  std::vector<std::string> m_stationNamesToF = { "farAside", "nearAside" , "nearCside" , "farCside" };
40  std::vector<std::string> m_trainsToF = { "train0", "train1" , "train2" , "train3" };
41 
42  std::vector<std::string> m_trainsToFA = { "T0", "T1" , "T2" , "T3" };
43  std::vector<std::string> m_trainsToFC = { "T0", "T1" , "T2" , "T3" };
44  std::vector<std::string> m_barsToF = { "A", "B" , "C" , "D" };
45 
46  std::vector<std::string> m_chanComb = {
47  "0AB", "0AC", "0AD", "0BC", "0BD", "0CD",
48  "1AB", "1AC", "1AD", "1BC", "1BD", "1CD",
49  "2AB", "2AC", "2AD", "2BC", "2BD", "2CD",
50  "3AB", "3AC", "3AD", "3BC", "3BD", "3CD"};
51 };
52 #endif
53 
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AFPTrackContainer.h
AFPToFAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: AFPToFAlgorithm.cxx:52
AFPToFHit.h
AFPToFAlgorithm::m_afpTrackContainerKey
SG::ReadHandleKey< xAOD::AFPTrackContainer > m_afpTrackContainerKey
Definition: AFPToFAlgorithm.h:34
AFPToFAlgorithm::fillHistograms_crossBarDeltaT
virtual StatusCode fillHistograms_crossBarDeltaT(const xAOD::AFPTrackContainer &, const xAOD::AFPToFHitContainer &) const
Definition: AFPToFAlgorithm.cxx:315
AFPToFAlgorithm::m_BarsInTrainsA
std::map< std::string, std::map< std::string, int > > m_BarsInTrainsA
Definition: AFPToFAlgorithm.h:30
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AFPToFAlgorithm::m_GroupChanCombDeltaT
std::map< std::string, int > m_GroupChanCombDeltaT
Definition: AFPToFAlgorithm.h:32
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
AFPToFAlgorithm::m_trainsToFC
std::vector< std::string > m_trainsToFC
Definition: AFPToFAlgorithm.h:43
AFPToFAlgorithm::m_trainsToFA
std::vector< std::string > m_trainsToFA
Definition: AFPToFAlgorithm.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
AFPToFAlgorithm::m_stationNamesToF
std::vector< std::string > m_stationNamesToF
Definition: AFPToFAlgorithm.h:39
AFPToFAlgorithm::m_chanComb
std::vector< std::string > m_chanComb
Definition: AFPToFAlgorithm.h:46
AFPToFAlgorithm::AFPToFAlgorithm
AFPToFAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AFPToFAlgorithm.cxx:15
AFPToFAlgorithm::m_afpToFHitContainerKey
SG::ReadHandleKey< xAOD::AFPToFHitContainer > m_afpToFHitContainerKey
Definition: AFPToFAlgorithm.h:33
AFPToFAlgorithm::m_TrainsToFGroup
std::map< std::string, int > m_TrainsToFGroup
Definition: AFPToFAlgorithm.h:29
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AFPToFAlgorithm::~AFPToFAlgorithm
virtual ~AFPToFAlgorithm()
Definition: AFPToFAlgorithm.cxx:25
AFPTrack.h
SG::ReadCondHandleKey< BunchCrossingCondData >
AFPToFAlgorithm::m_barsToF
std::vector< std::string > m_barsToF
Definition: AFPToFAlgorithm.h:44
BunchCrossingCondData.h
Replaces the BunchCrossing AlgTool used in run1/2.
AFPToFAlgorithm::m_StationNamesGroup
std::map< std::string, int > m_StationNamesGroup
Definition: AFPToFAlgorithm.h:28
AFPToFAlgorithm
Definition: AFPToFAlgorithm.h:19
AFPToFAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: AFPToFAlgorithm.cxx:28
AFPToFHitContainer.h
AFPToFAlgorithm::m_bunchCrossingKeyToF
SG::ReadCondHandleKey< BunchCrossingCondData > m_bunchCrossingKeyToF
Definition: AFPToFAlgorithm.h:35
AFPToFAlgorithm::m_BarsInTrainsC
std::map< std::string, std::map< std::string, int > > m_BarsInTrainsC
Definition: AFPToFAlgorithm.h:31
AFPToFAlgorithm::m_trainsToF
std::vector< std::string > m_trainsToF
Definition: AFPToFAlgorithm.h:40