ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArSamplesMon
LArSamplesMon
TreeShapeErrorGetter.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
9
10
#ifndef LArSamples_TreeShapeErrorGetter_H
11
#define LArSamples_TreeShapeErrorGetter_H
12
13
#include "
LArSamplesMon/AbsShapeErrorGetter.h
"
14
15
16
#include <vector>
17
#include "
CxxUtils/checker_macros.h
"
18
19
class
TH2D;
20
class
TFile;
21
class
TTree;
22
class
TString;
23
24
namespace
LArSamples
{
25
26
class
ShapeErrorData
;
27
class
ResidualCalculator;
28
class
Interface
;
29
30
class
ATLAS_NOT_THREAD_SAFE
TreeShapeErrorGetter
:
public
AbsShapeErrorGetter
{
31
32
public
:
33
34
TreeShapeErrorGetter
(
const
TString& fileName,
bool
recreate =
false
);
35
TreeShapeErrorGetter
(
const
TreeShapeErrorGetter
&) =
delete
;
36
TreeShapeErrorGetter
&
operator =
(
const
TreeShapeErrorGetter
&) =
delete
;
37
virtual
~TreeShapeErrorGetter
();
38
39
virtual
std::unique_ptr<ShapeErrorData>
shapeErrorData
(
unsigned
int
hash,
CaloGain::CaloGain
gain,
const
Residual
* toExclude = 0)
const override
;
40
virtual
std::unique_ptr<ShapeErrorData>
phiSymShapeErrorData
(
short
ring,
CaloGain::CaloGain
gain,
const
Residual
* toExclude = 0)
const override
;
41
42
int
addCell
(
const
ResidualCalculator
& calc,
CaloGain::CaloGain
gain);
43
int
addRing
(
const
ResidualCalculator
& calc,
CaloGain::CaloGain
gain);
44
45
void
dump
(
CaloGain::CaloGain
gain)
const
;
46
std::unique_ptr<TH2D>
correlate
(
const
TreeShapeErrorGetter
& other,
CaloGain::CaloGain
gain,
unsigned
short
sample,
bool
xip,
47
unsigned
int
nBins,
double
xMin,
double
xMax)
const
;
48
49
bool
compare
(
const
TreeShapeErrorGetter
& other,
const
TString& fileName,
const
Interface
* tmpl = 0)
const
;
50
51
52
const
ResidualCalculator
*
cellCalc
()
const
{
return
m_cellCalc
; }
53
const
ResidualCalculator
*
ringCalc
()
const
{
return
m_ringCalc
; }
54
55
TTree* cellTree(
CaloGain::CaloGain
gain)
const
;
56
TTree* ringTree(
CaloGain::CaloGain
gain)
const
;
57
58
static
bool
merge
(
const
TString& listFile,
const
TString& outputFile);
59
static
bool
merge
(std::vector<std::unique_ptr<const TreeShapeErrorGetter> >&& getters,
const
TString& outputFile);
60
61
TFile*
file
()
const
{
return
m_file
.get(); }
62
63
private
:
64
65
std::unique_ptr<TFile>
m_file
;
66
std::vector<TTree*>
m_cellTrees
;
67
std::vector<TTree*>
m_ringTrees
;
68
mutable
ResidualCalculator
*
m_cellCalc
, *
m_ringCalc
;
69
};
70
}
71
#endif
AbsShapeErrorGetter.h
operator=
ElementLink & operator=(const ElementLink &)=default
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition
checker_macros.h:212
Interface
the btagging tool(s).
LArSamples::AbsShapeErrorGetter
Definition
AbsShapeErrorGetter.h:24
LArSamples::Interface
Definition
Interface.h:37
LArSamples::ResidualCalculator
Definition
LArCalorimeter/LArSamplesMon/LArSamplesMon/Residual.h:101
LArSamples::Residual
storage of a pulse shape residual set
Definition
LArCalorimeter/LArSamplesMon/LArSamplesMon/Residual.h:29
LArSamples::TreeShapeErrorGetter::cellCalc
const ResidualCalculator * cellCalc() const
Definition
TreeShapeErrorGetter.h:52
LArSamples::TreeShapeErrorGetter::m_cellTrees
std::vector< TTree * > m_cellTrees
Definition
TreeShapeErrorGetter.h:66
LArSamples::TreeShapeErrorGetter::TreeShapeErrorGetter
TreeShapeErrorGetter(const TreeShapeErrorGetter &)=delete
LArSamples::TreeShapeErrorGetter::m_cellCalc
ResidualCalculator * m_cellCalc
Definition
TreeShapeErrorGetter.h:68
LArSamples::TreeShapeErrorGetter::addCell
int addCell(const ResidualCalculator &calc, CaloGain::CaloGain gain)
Definition
TreeShapeErrorGetter.cxx:132
LArSamples::TreeShapeErrorGetter::m_ringCalc
ResidualCalculator * m_ringCalc
Definition
TreeShapeErrorGetter.h:68
LArSamples::TreeShapeErrorGetter::m_file
std::unique_ptr< TFile > m_file
Definition
TreeShapeErrorGetter.h:65
LArSamples::TreeShapeErrorGetter::TreeShapeErrorGetter
TreeShapeErrorGetter(const TString &fileName, bool recreate=false)
Definition
TreeShapeErrorGetter.cxx:25
LArSamples::TreeShapeErrorGetter::correlate
std::unique_ptr< TH2D > correlate(const TreeShapeErrorGetter &other, CaloGain::CaloGain gain, unsigned short sample, bool xip, unsigned int nBins, double xMin, double xMax) const
Definition
TreeShapeErrorGetter.cxx:164
LArSamples::TreeShapeErrorGetter::m_ringTrees
std::vector< TTree * > m_ringTrees
Definition
TreeShapeErrorGetter.h:67
LArSamples::TreeShapeErrorGetter::phiSymShapeErrorData
virtual std::unique_ptr< ShapeErrorData > phiSymShapeErrorData(short ring, CaloGain::CaloGain gain, const Residual *toExclude=0) const override
Definition
TreeShapeErrorGetter.cxx:121
LArSamples::TreeShapeErrorGetter::compare
bool compare(const TreeShapeErrorGetter &other, const TString &fileName, const Interface *tmpl=0) const
Definition
TreeShapeErrorGetter.cxx:249
LArSamples::TreeShapeErrorGetter::file
TFile * file() const
Definition
TreeShapeErrorGetter.h:61
LArSamples::TreeShapeErrorGetter::ringCalc
const ResidualCalculator * ringCalc() const
Definition
TreeShapeErrorGetter.h:53
LArSamples::TreeShapeErrorGetter::shapeErrorData
virtual std::unique_ptr< ShapeErrorData > shapeErrorData(unsigned int hash, CaloGain::CaloGain gain, const Residual *toExclude=0) const override
Definition
TreeShapeErrorGetter.cxx:109
LArSamples::TreeShapeErrorGetter::addRing
int addRing(const ResidualCalculator &calc, CaloGain::CaloGain gain)
Definition
TreeShapeErrorGetter.cxx:142
ShapeErrorData
Liquid Argon class for standalone storage of cell shape information.
CaloGain::CaloGain
CaloGain
Definition
CaloGain.h:11
LArSamples
Definition
AbsShape.h:24
dump
-event-from-file
merge
Definition
merge.py:1
Generated on
for ATLAS Offline Software by
1.17.0