ATLAS Offline Software
JEMHits_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: JEMHits_v1.cxx 638578 2015-01-09 17:00:15Z morrisj $
6 
7 // System include(s):
8 #include <cmath>
9 
10 // EDM includes(s):
12 
13 // Local include(s):
15 
16 namespace xAOD{
17 
19  SG::AuxElement()
20  {
21  }
22 
23  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JEMHits_v1 , int , crate , setCrate )
25  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( JEMHits_v1 , int , peak , setPeak )
26  AUXSTORE_OBJECT_SETTER_AND_GETTER( JEMHits_v1 , std::vector<unsigned int> , jetHitsVec , setJetHitsVec )
27 
28  unsigned int JEMHits_v1::forward() const
29  {
30  unsigned int result(0);
31  int mod = module();
32  if( ((mod%8) == 0) || ((mod%8) == 7) ){
33  result = 1;
34  }
35  return result;
36  }
37 
38  unsigned int JEMHits_v1::jetHits() const
39  {
40  return jetHitsVec()[ peak() ];
41  }
42 
43 } // namespace xAOD
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
get_generator_info.result
result
Definition: get_generator_info.py:21
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
AuxStoreAccessorMacros.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::JEMHits_v1
Description of JEMHits_v1.
Definition: JEMHits_v1.h:23
xAOD::unsigned
unsigned
Definition: RingSetConf_v1.cxx:662
python.PyAthena.module
module
Definition: PyAthena.py:134
JEMHits_v1.h
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
xAOD::JEMHits_v1::jetHits
unsigned int jetHits() const
get jetHits for jetHitsVec[peak] - time slice that (hopefully) contains the collision
Definition: JEMHits_v1.cxx:38
xAOD::JEMHits_v1::jetHitsVec
const std::vector< unsigned int > & jetHitsVec() const
get jetHitsVec - jetHits for all time slices
xAOD::JEMHits_v1::peak
int peak() const
get peak
xAOD::JEMHits_v1::JEMHits_v1
JEMHits_v1()
Definition: JEMHits_v1.cxx:18
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27