ATLAS Offline Software
RPCPadParameters.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 /***************************************************************************
6 
7  -----------------------------------------
8  ***************************************************************************/
9 
10 #ifndef MUONRPC_CABLING_RPCPADPARAMETERS_H
11 #define MUONRPC_CABLING_RPCPADPARAMETERS_H
12 #include <iostream>
13 
14 // This class contains the trigger parameters for a given Pad (tower)
15 
17 private:
18  bool m_feet_on; // special treatment for feet towers: true=on false=off
19  bool m_eta_and_phi; // true=eta-AND-phi false=eta-OR-phi
20  unsigned short int m_feet_thresholds; // thresholds for feet towers : th1+ 8*th2 + 64*th3
21  unsigned short int m_cma_mask; // cma mask
22 
23 public:
28 
29  bool feet_on(void) const { return m_feet_on; };
30  bool eta_and_phi(void) const { return m_eta_and_phi; };
31  unsigned short int feet_thresholds(void) const { return m_feet_thresholds; };
32  unsigned short int cma_mask(void) const { return m_cma_mask; };
33 
34  void set_feet_on(bool feet_on) { m_feet_on = feet_on; };
36  void set_cma_mask(unsigned int mask) { m_cma_mask = mask; };
37 
38  void set_phi_only() {
39  m_cma_mask = 0x33;
40  m_eta_and_phi = false;
41  };
42  void set_eta_only() {
43  m_cma_mask = 0xcc;
44  m_eta_and_phi = false;
45  };
46 
47  unsigned short int feet_threshold(unsigned short int it) const;
48  bool set_feet_threshold(unsigned short int it, unsigned short int th);
49 
50  void Print(std::ostream& stream) const;
51 };
52 
53 #endif // MUONRPC_CABLING_RPCPADPARAMETERS_H
RPCPadParameters::set_eta_and_phi
void set_eta_and_phi(bool eta_and_phi)
Definition: RPCPadParameters.h:38
RPCPadParameters::RPCPadParameters
RPCPadParameters()
Definition: RPCPadParameters.cxx:14
RPCPadParameters::feet_thresholds
unsigned short int feet_thresholds(void) const
Definition: RPCPadParameters.h:34
RPCPadParameters::eta_and_phi
bool eta_and_phi(void) const
Definition: RPCPadParameters.h:33
skel.it
it
Definition: skel.GENtoEVGEN.py:396
RPCPadParameters::m_cma_mask
unsigned short int m_cma_mask
Definition: RPCPadParameters.h:24
RPCPadParameters
Definition: RPCPadParameters.h:16
RPCPadParameters::feet_threshold
unsigned short int feet_threshold(unsigned short int it) const
Definition: RPCPadParameters.cxx:40
RPCPadParameters::~RPCPadParameters
~RPCPadParameters()
Definition: RPCPadParameters.cxx:28
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
RPCPadParameters::feet_on
bool feet_on(void) const
Definition: RPCPadParameters.h:32
RPCPadParameters::set_cma_mask
void set_cma_mask(unsigned int mask)
Definition: RPCPadParameters.h:39
python.TriggerHandler.th
th
Definition: TriggerHandler.py:296
RPCPadParameters::m_feet_on
bool m_feet_on
Definition: RPCPadParameters.h:21
RPCPadParameters::operator=
RPCPadParameters & operator=(const RPCPadParameters &)
Definition: RPCPadParameters.cxx:30
RPCPadParameters::Print
void Print(std::ostream &stream) const
Definition: RPCPadParameters.cxx:54
RPCPadParameters::m_eta_and_phi
bool m_eta_and_phi
Definition: RPCPadParameters.h:22
RPCPadParameters::set_eta_only
void set_eta_only()
Definition: RPCPadParameters.h:45
RPCPadParameters::set_feet_threshold
bool set_feet_threshold(unsigned short int it, unsigned short int th)
Definition: RPCPadParameters.cxx:45
RPCPadParameters::cma_mask
unsigned short int cma_mask(void) const
Definition: RPCPadParameters.h:35
RPCPadParameters::set_feet_on
void set_feet_on(bool feet_on)
Definition: RPCPadParameters.h:37
RPCPadParameters::set_phi_only
void set_phi_only()
Definition: RPCPadParameters.h:41
RPCPadParameters::m_feet_thresholds
unsigned short int m_feet_thresholds
Definition: RPCPadParameters.h:23