RecoPPS
Local
interface
CTPPSDiamondRecHitProducerAlgorithm.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* This is a part of PPS offline software.
4
* Authors:
5
* Laurent Forthomme (laurent.forthomme@cern.ch)
6
*
7
****************************************************************************/
8
9
#ifndef RecoPPS_Local_CTPPSDiamondRecHitProducerAlgorithm
10
#define RecoPPS_Local_CTPPSDiamondRecHitProducerAlgorithm
11
12
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
13
#include "
CommonTools/Utils/interface/FormulaEvaluator.h
"
14
15
#include "
DataFormats/Common/interface/DetSetVector.h
"
16
17
#include "
DataFormats/CTPPSDetId/interface/CTPPSDiamondDetId.h
"
18
#include "
DataFormats/CTPPSDigi/interface/CTPPSDiamondDigi.h
"
19
#include "
DataFormats/CTPPSReco/interface/CTPPSDiamondRecHit.h
"
20
21
#include "
Geometry/VeryForwardRPTopology/interface/RPTopology.h
"
22
#include "
Geometry/VeryForwardGeometryBuilder/interface/CTPPSGeometry.h
"
23
24
#include "
CondFormats/PPSObjects/interface/PPSTimingCalibration.h
"
25
26
class
CTPPSDiamondRecHitProducerAlgorithm
{
27
public
:
28
CTPPSDiamondRecHitProducerAlgorithm
(
const
edm::ParameterSet
& conf);
29
30
void
setCalibration
(
const
PPSTimingCalibration
&);
31
void
build
(
const
CTPPSGeometry
&,
const
edm::DetSetVector<CTPPSDiamondDigi>
&,
edm::DetSetVector<CTPPSDiamondRecHit>
&);
32
33
private
:
34
static
constexpr
unsigned
short
MAX_CHANNEL
= 20;
36
double
ts_to_ns_
;
38
bool
apply_calib_
;
39
PPSTimingCalibration
calib_
;
40
std::unique_ptr<reco::FormulaEvaluator>
calib_fct_
;
41
};
42
43
#endif
CTPPSDiamondRecHitProducerAlgorithm::calib_
PPSTimingCalibration calib_
Definition:
CTPPSDiamondRecHitProducerAlgorithm.h:43
edm::DetSetVector
Definition:
DetSetVector.h:61
CTPPSGeometry
The manager class for TOTEM RP geometry.
Definition:
CTPPSGeometry.h:29
CTPPSDiamondRecHitProducerAlgorithm::build
void build(const CTPPSGeometry &, const edm::DetSetVector< CTPPSDiamondDigi > &, edm::DetSetVector< CTPPSDiamondRecHit > &)
Definition:
CTPPSDiamondRecHitProducerAlgorithm.cc:24
CTPPSDiamondRecHitProducerAlgorithm::ts_to_ns_
double ts_to_ns_
Conversion constant between HPTDC time slice and absolute time (in ns)
Definition:
CTPPSDiamondRecHitProducerAlgorithm.h:40
CTPPSDiamondRecHitProducerAlgorithm::apply_calib_
bool apply_calib_
Switch on/off the timing calibration.
Definition:
CTPPSDiamondRecHitProducerAlgorithm.h:42
CTPPSDiamondRecHitProducerAlgorithm::MAX_CHANNEL
static constexpr unsigned short MAX_CHANNEL
Definition:
CTPPSDiamondRecHitProducerAlgorithm.h:38
CTPPSGeometry.h
CTPPSDiamondDigi.h
CTPPSDiamondRecHit.h
CTPPSDiamondDetId.h
edm::ParameterSet
Definition:
ParameterSet.h:47
CTPPSDiamondRecHitProducerAlgorithm::setCalibration
void setCalibration(const PPSTimingCalibration &)
Definition:
CTPPSDiamondRecHitProducerAlgorithm.cc:19
CTPPSDiamondRecHitProducerAlgorithm
Definition:
CTPPSDiamondRecHitProducerAlgorithm.h:25
FormulaEvaluator.h
DetSetVector.h
CTPPSDiamondRecHitProducerAlgorithm::CTPPSDiamondRecHitProducerAlgorithm
CTPPSDiamondRecHitProducerAlgorithm(const edm::ParameterSet &conf)
Definition:
CTPPSDiamondRecHitProducerAlgorithm.cc:15
PPSTimingCalibration.h
CTPPSDiamondRecHitProducerAlgorithm::calib_fct_
std::unique_ptr< reco::FormulaEvaluator > calib_fct_
Definition:
CTPPSDiamondRecHitProducerAlgorithm.h:44
RPTopology.h
PPSTimingCalibration
Definition:
PPSTimingCalibration.h:17
ParameterSet.h
Generated for CMSSW Reference Manual by
1.8.16