ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace 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
Base class for elements of a container that can have aux data.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
void addHits(const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1)
void setPeak(int)
set peak
unsigned int hitWord1() const
get hitword for hitsVec1[peak] - time slice that (hopefully) contains the collision
unsigned int HitWord1() const
Definition CPMHits_v1.h:65
unsigned int HitWord0() const
Backwards Compatibility with Trigger/TrigT1/TrigT1CaloEvent Run1 EDM did not strictly follow camelCas...
Definition CPMHits_v1.h:64
int crate() const
get crate number
void setHitsVec1(const std::vector< unsigned int > &)
set hitsVec1 - hits for all time slices
const std::vector< unsigned int > & hitsVec0() const
get hitsVec0 - hits for all time slices
int peak() const
get peak
unsigned int hitWord0() const
get hitword for hitsVec0[peak] - time slice that (hopefully) contains the collision
void setCrate(int)
set crate number
void setModule(int)
set module
void setHitsVec0(const std::vector< unsigned int > &)
set hitsVec0 - hits for all time slices
const std::vector< unsigned int > & hitsVec1() const
get hitsVec1 - hits for all time slices
int module() const
get module
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.