Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
MainPageGenerator.tree
tuple tree
Definition:
MainPageGenerator.py:264
pftools::CalibrationTarget
CalibrationTarget
Definition:
CalibrationProvenance.h:16
pftools::Exercises3::calibResultsFile_
std::ofstream calibResultsFile_
Definition:
Exercises3.h:60
pftools::Exercises3::~Exercises3
virtual ~Exercises3()
Definition:
Exercises3.cc:29
pftools::Exercises3::withOffset_
bool withOffset_
Definition:
Exercises3.h:55
Calibrator.h
CommonMethods.cp
def cp
Definition:
CommonMethods.py:189
pftools::Exercises3::setTarget
void setTarget(CalibrationTarget t)
Definition:
Exercises3.h:42
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
pftools::Exercises3::clusterCalibration_
PFClusterCalibration clusterCalibration_
Definition:
Exercises3.h:62
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
AlCaHLTBitMon_ParallelJobs.options
tuple options
Definition:
AlCaHLTBitMon_ParallelJobs.py:151
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
edmStreamStallGrapher.t
tuple t
Definition:
edmStreamStallGrapher.py:108
DetectorElement.h
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:65
pftools::DetectorElementPtr
boost::shared_ptr< DetectorElement > DetectorElementPtr
Definition:
DetectorElement.h:83
PFClusterCalibration.h
pftools::PFClusterCalibration
Definition:
PFClusterCalibration.h:40
pftools::Exercises3
Definition:
Exercises3.h:22
patCandidatesForDimuonsSequences_cff.ecal
tuple ecal
Definition:
patCandidatesForDimuonsSequences_cff.py:70
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
pftools::IO
Definition:
IO.h:29
CalibrationProvenance.h
HLT_25ns14e33_v1_cff.offset
tuple offset
Definition:
HLT_25ns14e33_v1_cff.py:1945
Calibratable.h
pftools::Exercises3::operator=
void operator=(const Exercises3 &)
pftools::Exercises3::Exercises3
Exercises3(IO *options)
Definition:
Exercises3.cc:33
pftools::Exercises3::options_
IO * options_
Definition:
Exercises3.h:59
pftools::Exercises3::elements_
std::vector< DetectorElementPtr > elements_
Definition:
Exercises3.h:58
pftools::Exercises3::calibrateCalibratables
void calibrateCalibratables(TChain &sourceTree, const std::string &exercisefile)
Definition:
Exercises3.cc:98
patCandidatesForDimuonsSequences_cff.hcal
tuple hcal
Definition:
patCandidatesForDimuonsSequences_cff.py:71
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.5