ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCalibUtils
LArCalibUtils
LArPedestalMaker.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARPEDESTALMAKER_H
6
#define LARPEDESTALMAKER_H
7
/********************************************************************
8
9
NAME: LArPedestalMaker.h
10
PACKAGE: offline/LArCalorimeter/LArCalibUtils
11
12
AUTHORS: M. AHARROUCHE
13
CREATED: Jan. 12, 2004
14
UPDATED: Mar. 10, 2004 by Remi Lafaye
15
Oct, 4, 2007 by M. Delmastro
16
May, 5, 2008 W.Lampl (use LArConditionsContainer instead of std::map)
17
18
PURPOSE: Computes the pedestal and rms for each cell
19
at each gain and records them in TDS
20
21
********************************************************************/
22
23
#include "
AthenaBaseComps/AthAlgorithm.h
"
24
25
#include "
LArRawEvent/LArPedestal.h
"
26
#include "
LArRawEvent/LArDigitContainer.h
"
27
28
#include "
LArRawConditions/LArPedestalComplete.h
"
29
30
#include <vector>
31
32
33
//-----------------------------------------------------------------------
34
class
LArPedestalMaker
:
public
AthAlgorithm
35
//-----------------------------------------------------------------------
36
{
37
public
:
38
39
// Constructor
40
LArPedestalMaker
(
const
std::string & name, ISvcLocator * pSvcLocator);
41
42
// Destructor
43
~LArPedestalMaker
();
44
45
// Algorithm initialization
46
StatusCode
initialize
();
47
48
// Algorithm execution
49
StatusCode
execute
(
const
EventContext& ctx);
50
51
// Algorithm finalization
52
StatusCode
stop
();
53
StatusCode
finalize
(){
return
StatusCode::SUCCESS;}
54
55
private
:
56
// Container key list
57
std::vector<std::string>
m_keylist
;
58
std::string
m_keyoutput
;
59
60
// Grouping type
61
std::string
m_groupingType
;
62
63
// Number of events used to define window
64
int
m_nref
;
65
66
// Number of sigma
67
double
m_rms_cut
;
68
69
// Sample number for pedestal
70
int
m_which_sample
;
71
72
int
m_sample_min
;
73
int
m_sample_max
;
74
75
// Vector of LArPedestal
76
//typedef std::map<HWIdentifier, LArPedestal > LARPEDMAP;
77
typedef
LArConditionsContainer<LArPedestal>
LARPEDMAP
;
78
LARPEDMAP
m_pedestal
;
79
80
// Vector of pedestal and rms
81
std::vector<float>
m_mean
;
82
std::vector<float>
m_rms
;
83
84
};
85
86
#endif
AthAlgorithm.h
LArDigitContainer.h
LArPedestalComplete.h
LArPedestal.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
LArConditionsContainer
Definition
LArConditionsContainer.h:65
LArPedestalMaker::m_sample_max
int m_sample_max
Definition
LArPedestalMaker.h:73
LArPedestalMaker::LArPedestalMaker
LArPedestalMaker(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArPedestalMaker.cxx:33
LArPedestalMaker::m_rms
std::vector< float > m_rms
Definition
LArPedestalMaker.h:82
LArPedestalMaker::stop
StatusCode stop()
Definition
LArPedestalMaker.cxx:134
LArPedestalMaker::m_which_sample
int m_which_sample
Definition
LArPedestalMaker.h:70
LArPedestalMaker::initialize
StatusCode initialize()
Definition
LArPedestalMaker.cxx:52
LArPedestalMaker::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
LArPedestalMaker.cxx:74
LArPedestalMaker::m_rms_cut
double m_rms_cut
Definition
LArPedestalMaker.h:67
LArPedestalMaker::m_groupingType
std::string m_groupingType
Definition
LArPedestalMaker.h:61
LArPedestalMaker::m_mean
std::vector< float > m_mean
Definition
LArPedestalMaker.h:81
LArPedestalMaker::finalize
StatusCode finalize()
Definition
LArPedestalMaker.h:53
LArPedestalMaker::m_sample_min
int m_sample_min
Definition
LArPedestalMaker.h:72
LArPedestalMaker::LARPEDMAP
LArConditionsContainer< LArPedestal > LARPEDMAP
Definition
LArPedestalMaker.h:77
LArPedestalMaker::m_keyoutput
std::string m_keyoutput
Definition
LArPedestalMaker.h:58
LArPedestalMaker::~LArPedestalMaker
~LArPedestalMaker()
LArPedestalMaker::m_nref
int m_nref
Definition
LArPedestalMaker.h:64
LArPedestalMaker::m_keylist
std::vector< std::string > m_keylist
Definition
LArPedestalMaker.h:57
LArPedestalMaker::m_pedestal
LARPEDMAP m_pedestal
Definition
LArPedestalMaker.h:78
Generated on
for ATLAS Offline Software by
1.17.0