Main Page
Namespaces
Classes
Package Documentation
RecoParticleFlow
PFClusterTools
interface
Exercises3.h
Go to the documentation of this file.
1
#ifndef EXERCISES3_H_
2
#define EXERCISES3_H_
3
4
#include "
DataFormats/ParticleFlowReco/interface/Calibratable.h
"
5
#include "
RecoParticleFlow/PFClusterTools/interface/Calibrator.h
"
6
#include "
RecoParticleFlow/PFClusterTools/interface/DetectorElement.h
"
7
#include "
DataFormats/ParticleFlowReco/interface/CalibrationProvenance.h
"
8
#include "
RecoParticleFlow/PFClusterTools/interface/SpaceManager.h
"
9
#include "
RecoParticleFlow/PFClusterTools/interface/PFClusterCalibration.h
"
10
11
#include <string>
12
#include <vector>
13
#include <TFile.h>
14
#include <TTree.h>
15
#include <TChain.h>
16
#include <fstream>
17
18
19
namespace
pftools
{
20
class
IO;
21
22
class
Exercises3
{
23
public
:
24
25
Exercises3
(
IO
*
options
);
26
27
virtual
~Exercises3
();
28
29
void
calibrateCalibratables
(TChain& sourceTree,
30
const
std::string
& exercisefile);
31
32
//void gaussianFits(TFile& exercisefile, std::vector<Calibratable>& calibs);
33
34
void
evaluateCalibrator
(
SpaceManagerPtr
s
,
CalibratorPtr
c
, TTree&
tree
,
35
Calibratable
* calibrated,
DetectorElementPtr
ecal
,
36
DetectorElementPtr
hcal
,
DetectorElementPtr
offset
,
CalibrationProvenance
cp
,
CalibrationProvenance
cpCorr =
NONE
);
37
38
39
void
evaluateSpaceManager
(
SpaceManagerPtr
s,
const
std::vector<DetectorElementPtr>& detEls);
40
41
42
void
setTarget
(
CalibrationTarget
t
) {
43
target_
=
t
;
44
}
45
46
47
void
getCalibrations
(
SpaceManagerPtr
s);
48
49
private
:
50
51
Exercises3
(
const
Exercises3
&);
52
void
operator=
(
const
Exercises3
&);
53
// double lowE_, highE_, lowEta_, highEta_, lowPhi_, highPhi_;
54
// unsigned divE_, divEta_, divPhi_;
55
bool
withOffset_
;
56
CalibrationTarget
target_
;
57
unsigned
threshold_
;
58
std::vector<DetectorElementPtr>
elements_
;
59
IO
*
options_
;
60
std::ofstream
calibResultsFile_
;
61
unsigned
debug_
;
62
PFClusterCalibration
clusterCalibration_
;
63
64
};
65
}
66
67
#endif
/*EXERCISES3_H_*/
SpaceManager.h
pftools::Calibratable
Wraps essential single particle calibration data ready for export to a Root file. ...
Definition:
Calibratable.h:122
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
pftools::CalibrationTarget
CalibrationTarget
Definition:
CalibrationProvenance.h:16
options
Definition:
options.py:1
pftools::Exercises3::calibResultsFile_
std::ofstream calibResultsFile_
Definition:
Exercises3.h:60
pftools::Exercises3::~Exercises3
virtual ~Exercises3()
Definition:
Exercises3.cc:29
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
pftools::Exercises3::withOffset_
bool withOffset_
Definition:
Exercises3.h:55
Calibrator.h
SimDataFormats::CaloAnalysis::cp
CaloParticle cp
Definition:
classes.h:18
pftools::Exercises3::setTarget
void setTarget(CalibrationTarget t)
Definition:
Exercises3.h:42
pftools::Exercises3::clusterCalibration_
PFClusterCalibration clusterCalibration_
Definition:
Exercises3.h:62
pftools::CalibrationProvenance
CalibrationProvenance
Definition:
CalibrationProvenance.h:12
pftools::Exercises3::evaluateCalibrator
void evaluateCalibrator(SpaceManagerPtr s, CalibratorPtr c, TTree &tree, Calibratable *calibrated, DetectorElementPtr ecal, DetectorElementPtr hcal, DetectorElementPtr offset, CalibrationProvenance cp, CalibrationProvenance cpCorr=NONE)
Definition:
Exercises3.cc:393
pftools::SpaceManagerPtr
boost::shared_ptr< SpaceManager > SpaceManagerPtr
Definition:
SpaceManager.h:126
pftools::Exercises3::debug_
unsigned debug_
Definition:
Exercises3.h:61
DetectorElement.h
hcal
Definition:
ConfigurationDatabase.cc:13
digitizers_cfi.ecal
ecal
Definition:
digitizers_cfi.py:22
pftools::Exercises3::target_
CalibrationTarget target_
Definition:
Exercises3.h:56
pftools::NONE
Definition:
CalibrationProvenance.h:13
pftools::CalibratorPtr
boost::shared_ptr< Calibrator > CalibratorPtr
Definition:
Calibrator.h:64
pftools::DetectorElementPtr
boost::shared_ptr< DetectorElement > DetectorElementPtr
Definition:
DetectorElement.h:83
PFClusterCalibration.h
pftools::PFClusterCalibration
Definition:
PFClusterCalibration.h:40
pftools
General option file parser.
Definition:
Calibratable.h:15
pftools::Exercises3
Definition:
Exercises3.h:22
PFRecoTauDiscriminationByIsolation_cfi.offset
offset
Definition:
PFRecoTauDiscriminationByIsolation_cfi.py:61
pftools::IO
Definition:
IO.h:29
CalibrationProvenance.h
Calibratable.h
pftools::Exercises3::operator=
void operator=(const Exercises3 &)
pftools::Exercises3::Exercises3
Exercises3(IO *options)
Definition:
Exercises3.cc:33
lumiQTWidget.t
t
Definition:
lumiQTWidget.py:50
pftools::Exercises3::options_
IO * options_
Definition:
Exercises3.h:59
pftools::Exercises3::elements_
std::vector< DetectorElementPtr > elements_
Definition:
Exercises3.h:58
tree
Definition:
tree.py:1
pftools::Exercises3::calibrateCalibratables
void calibrateCalibratables(TChain &sourceTree, const std::string &exercisefile)
Definition:
Exercises3.cc:98
pftools::Exercises3::threshold_
unsigned threshold_
Definition:
Exercises3.h:57
pftools::Exercises3::getCalibrations
void getCalibrations(SpaceManagerPtr s)
Definition:
Exercises3.cc:248
pftools::Exercises3::evaluateSpaceManager
void evaluateSpaceManager(SpaceManagerPtr s, const std::vector< DetectorElementPtr > &detEls)
Definition:
Exercises3.cc:264
Generated for CMSSW Reference Manual by
1.8.11