ATLAS Offline Software
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
();
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
LArPedestalMaker::m_mean
std::vector< float > m_mean
Definition:
LArPedestalMaker.h:95
LArPedestalMaker::LARPEDMAP
LArConditionsContainer< LArPedestal > LARPEDMAP
Definition:
LArPedestalMaker.h:91
LArPedestalMaker::m_keyoutput
std::string m_keyoutput
Definition:
LArPedestalMaker.h:72
LArPedestal.h
LArPedestalMaker::m_sample_max
int m_sample_max
Definition:
LArPedestalMaker.h:87
LArPedestalMaker
Definition:
LArPedestalMaker.h:36
LArPedestalMaker::execute
StatusCode execute()
Definition:
LArPedestalMaker.cxx:74
LArConditionsContainer< LArPedestal >
LArPedestalMaker::stop
StatusCode stop()
Definition:
LArPedestalMaker.cxx:134
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArPedestalMaker::LArPedestalMaker
LArPedestalMaker(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
LArPedestalMaker.cxx:33
LArPedestalMaker::m_rms_cut
double m_rms_cut
Definition:
LArPedestalMaker.h:81
LArPedestalMaker::finalize
StatusCode finalize()
Definition:
LArPedestalMaker.h:67
LArPedestalMaker::m_nref
int m_nref
Definition:
LArPedestalMaker.h:78
LArPedestalMaker::~LArPedestalMaker
~LArPedestalMaker()
LArPedestalMaker::m_sample_min
int m_sample_min
Definition:
LArPedestalMaker.h:86
AthAlgorithm
Definition:
AthAlgorithm.h:47
LArPedestalMaker::m_keylist
std::vector< std::string > m_keylist
Definition:
LArPedestalMaker.h:71
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
LArPedestalMaker::m_rms
std::vector< float > m_rms
Definition:
LArPedestalMaker.h:96
LArDigitContainer.h
LArPedestalMaker::initialize
StatusCode initialize()
Definition:
LArPedestalMaker.cxx:52
LArPedestalMaker::m_groupingType
std::string m_groupingType
Definition:
LArPedestalMaker.h:75
LArPedestalComplete.h
LArPedestalMaker::m_which_sample
int m_which_sample
Definition:
LArPedestalMaker.h:84
LArPedestalMaker::m_pedestal
LARPEDMAP m_pedestal
Definition:
LArPedestalMaker.h:92
Generated on Fri Jan 10 2025 21:13:23 for ATLAS Offline Software by
1.8.18