ATLAS Offline Software
CPMHits_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: CPMHits_v1.h 631127 2014-11-26 09:54:48Z gwatts $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CPMHITS_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_CPMHITS_V1_H
10 
11 #include "AthLinks/ElementLink.h"
13 
14 namespace xAOD {
15 
22 
23  class CPMHits_v1 : public SG::AuxElement{
24  public:
25  // Default constructor
26  CPMHits_v1();
27 
29  int crate() const;
31  void setCrate(int);
32 
34  int module() const;
36  void setModule(int);
37 
39  int peak() const;
41  void setPeak(int);
42 
44  const std::vector<unsigned int>& hitsVec0() const;
46  void setHitsVec0(const std::vector<unsigned int>&);
47 
49  const std::vector<unsigned int>& hitsVec1() const;
51  void setHitsVec1(const std::vector<unsigned int>&);
52 
53  // add hits. Internally calls setHitsVec0(hits0);setHitsVec1(hits1);
54  void addHits(const std::vector<unsigned int>& hits0,const std::vector<unsigned int>& hits1);
55 
57  unsigned int hitWord0() const;
59  unsigned int hitWord1() const;
60 
64  inline unsigned int HitWord0() const {return this->hitWord0();}
65  inline unsigned int HitWord1() const {return this->hitWord1();}
66 
67  };
68 } // namespace xAOD
69 
70 #endif // XAODTRIGL1CALO_VERSIONS_CPMHITS_V1_H
xAOD::CPMHits_v1
Description of CPMHits_v1.
Definition: CPMHits_v1.h:23
xAOD::CPMHits_v1::crate
int crate() const
get crate number
xAOD::CPMHits_v1::setHitsVec1
void setHitsVec1(const std::vector< unsigned int > &)
set hitsVec1 - hits for all time slices
xAOD::CPMHits_v1::hitWord0
unsigned int hitWord0() const
get hitword for hitsVec0[peak] - time slice that (hopefully) contains the collision
Definition: CPMHits_v1.cxx:35
xAOD::CPMHits_v1::setModule
void setModule(int)
set module
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:446
xAOD::CPMHits_v1::CPMHits_v1
CPMHits_v1()
Definition: CPMHits_v1.cxx:18
xAOD::CPMHits_v1::hitsVec0
const std::vector< unsigned int > & hitsVec0() const
get hitsVec0 - hits for all time slices
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CPMHits_v1::HitWord0
unsigned int HitWord0() const
Backwards Compatibility with Trigger/TrigT1/TrigT1CaloEvent Run1 EDM did not strictly follow camelCas...
Definition: CPMHits_v1.h:64
xAOD::CPMHits_v1::module
int module() const
get module
xAOD::CPMHits_v1::hitWord1
unsigned int hitWord1() const
get hitword for hitsVec1[peak] - time slice that (hopefully) contains the collision
Definition: CPMHits_v1.cxx:40
xAOD::CPMHits_v1::setCrate
void setCrate(int)
set crate number
xAOD::CPMHits_v1::setHitsVec0
void setHitsVec0(const std::vector< unsigned int > &)
set hitsVec0 - hits for all time slices
xAOD::CPMHits_v1::peak
int peak() const
get peak
xAOD::CPMHits_v1::addHits
void addHits(const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1)
Definition: CPMHits_v1.cxx:29
xAOD::CPMHits_v1::HitWord1
unsigned int HitWord1() const
Definition: CPMHits_v1.h:65
xAOD::CPMHits_v1::hitsVec1
const std::vector< unsigned int > & hitsVec1() const
get hitsVec1 - hits for all time slices
xAOD::CPMHits_v1::setPeak
void setPeak(int)
set peak
AuxElement.h
Base class for elements of a container that can have aux data.