ATLAS Offline Software
EDM_object.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 EDM_OBJECT_H
6 #define EDM_OBJECT_H
7 
8 #include "TString.h"
9 
10 #include <fstream>
11 #include <vector>
12 
14 {
15 public:
16  // Matching
17  void init_matching();
18  bool update_match(int index, int ch_candidate);
20 
21  // Efficiency
22  void update_efficiency ( int maximum_difference );
23  void printEfficiency (std::ofstream& file);
24 
25  // setters
26  void setName (TString name) { m_name = name; }
27  void setName (TString name, TString detector) { m_name = name; m_detector = detector; }
28  void setDetector (TString detector) { m_detector = detector; }
29  void setMatchedwith (TString matchedwith) { m_matchedwith = matchedwith; }
30 
31  // getters
32  TString getName () { return m_name; }
33  TString getDetector () { return m_detector; }
34  TString getMatchedwith () { return m_matchedwith; }
35 
36  // Helper functions
37  size_t size ();
38  void checksize ();
39  void printInfo();
40  void clearVars();
41  bool empty ();
42 
43  EDM_object ();
45 
46  std::vector<std::string> *m_stationName;
47  std::vector<int> *m_stationEta;
48  std::vector<int> *m_stationPhi;
49  std::vector<int> *m_multiplet;
50  std::vector<int> *m_gas_gap;
51  std::vector<int> *m_channel_type;
52  std::vector<int> *m_channel;
53 
54  std::vector<int> *m_matchedchannel;
55 
56 private:
57  TString m_name;
58  TString m_matchedwith;
59  TString m_detector;
61  int m_total;
62 };
63 
64 #endif
EDM_object::identifierMatch
bool identifierMatch(EDM_object &data0, EDM_object &data1, uint i, uint j)
Definition: EDM_object.cxx:69
EDM_object::m_stationName
std::vector< std::string > * m_stationName
Definition: EDM_object.h:46
EDM_object::checksize
void checksize()
Definition: EDM_object.cxx:41
EDM_object
Definition: EDM_object.h:14
EDM_object::m_matchedchannel
std::vector< int > * m_matchedchannel
Definition: EDM_object.h:54
index
Definition: index.py:1
TRTCalib_cfilter.detector
detector
Definition: TRTCalib_cfilter.py:241
EDM_object::m_detector
TString m_detector
Definition: EDM_object.h:59
EDM_object::setMatchedwith
void setMatchedwith(TString matchedwith)
Definition: EDM_object.h:29
EDM_object::~EDM_object
~EDM_object()
Definition: EDM_object.h:44
EDM_object::setName
void setName(TString name)
Definition: EDM_object.h:26
EDM_object::size
size_t size()
Definition: EDM_object.cxx:35
EDM_object::m_matchedwith
TString m_matchedwith
Definition: EDM_object.h:58
EDM_object::m_stationPhi
std::vector< int > * m_stationPhi
Definition: EDM_object.h:48
EDM_object::m_channel
std::vector< int > * m_channel
Definition: EDM_object.h:52
EDM_object::update_efficiency
void update_efficiency(int maximum_difference)
Definition: EDM_object.cxx:107
EDM_object::empty
bool empty()
Definition: EDM_object.cxx:101
EDM_object::m_gas_gap
std::vector< int > * m_gas_gap
Definition: EDM_object.h:50
EDM_object::m_channel_type
std::vector< int > * m_channel_type
Definition: EDM_object.h:51
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
lumiFormat.i
int i
Definition: lumiFormat.py:85
EDM_object::getMatchedwith
TString getMatchedwith()
Definition: EDM_object.h:34
EDM_object::setName
void setName(TString name, TString detector)
Definition: EDM_object.h:27
file
TFile * file
Definition: tile_monitor.h:29
EDM_object::init_matching
void init_matching()
Definition: EDM_object.cxx:95
EDM_object::EDM_object
EDM_object()
Definition: EDM_object.cxx:15
EDM_object::getDetector
TString getDetector()
Definition: EDM_object.h:33
EDM_object::m_mismatches
int m_mismatches
Definition: EDM_object.h:60
EDM_object::update_match
bool update_match(int index, int ch_candidate)
Definition: EDM_object.cxx:80
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EDM_object::getName
TString getName()
Definition: EDM_object.h:32
EDM_object::m_name
TString m_name
Definition: EDM_object.h:57
RTTAlgmain.data1
data1
Definition: RTTAlgmain.py:54
EDM_object::printEfficiency
void printEfficiency(std::ofstream &file)
Definition: EDM_object.cxx:120
EDM_object::m_total
int m_total
Definition: EDM_object.h:61
EDM_object::setDetector
void setDetector(TString detector)
Definition: EDM_object.h:28
EDM_object::m_multiplet
std::vector< int > * m_multiplet
Definition: EDM_object.h:49
EDM_object::clearVars
void clearVars()
Definition: EDM_object.cxx:28
EDM_object::printInfo
void printInfo()
Definition: EDM_object.cxx:55
EDM_object::m_stationEta
std::vector< int > * m_stationEta
Definition: EDM_object.h:47