Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CalibTracker
SiStripCommon
interface
ShallowClustersProducer.h
Go to the documentation of this file.
1
#ifndef SHALLOW_CLUSTERS_PRODUCER
2
#define SHALLOW_CLUSTERS_PRODUCER
3
4
#include "
FWCore/Framework/interface/EDProducer.h
"
5
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
6
#include "
FWCore/Utilities/interface/InputTag.h
"
7
#include "
FWCore/Utilities/interface/EDGetToken.h
"
8
#include "
DataFormats/Common/interface/DetSetVector.h
"
9
10
#include "
DataFormats/SiStripCluster/interface/SiStripCluster.h
"
11
12
class
SiStripClusterInfo
;
13
class
SiStripProcessedRawDigi
;
14
class
TrackerTopology
;
15
16
class
ShallowClustersProducer
:
public
edm::EDProducer
{
17
18
public
:
19
20
explicit
ShallowClustersProducer
(
const
edm::ParameterSet
&);
21
22
private
:
23
24
edm::InputTag
theClustersLabel
;
25
std::string
Prefix
;
26
void
produce
(
edm::Event
&,
const
edm::EventSetup
& );
27
28
struct
moduleVars
{
29
moduleVars
(uint32_t,
const
TrackerTopology
*);
30
int
subdetid
,
side
,
layerwheel
,
stringringrod
,
petal
,
stereo
;
31
uint32_t
module
;
32
};
33
34
struct
NearDigis
{
35
NearDigis
(
const
SiStripClusterInfo
&);
36
NearDigis
(
const
SiStripClusterInfo
&,
const
edm::DetSetVector<SiStripProcessedRawDigi>
&);
37
float
max
,
left
,
right
,
first
,
last
,
Lleft
,
Rright
;
38
float
etaX
()
const
{
return
(
left
+
right
)/
max
/2.;}
39
float
eta
()
const
{
return
right
>
left
?
max
/(
max
+
right
) :
left
/(
left
+
max
);}
40
float
etaasymm
()
const
{
return
right
>
left
? (
right
-
max
)/(
right
+
max
) : (
max
-
left
)/(
max
+left);}
41
float
outsideasymm
()
const
{
return
(
last
-
first
)/(
last
+
first
);}
42
};
43
44
edm::EDGetTokenT<edm::DetSetVector<SiStripCluster>
>
theClustersToken_
;
45
edm::EDGetTokenT<edm::DetSetVector<SiStripProcessedRawDigi>
>
theDigisToken_
;
46
47
};
48
49
#endif
ShallowClustersProducer::NearDigis::Lleft
float Lleft
Definition:
ShallowClustersProducer.h:37
ShallowClustersProducer::NearDigis::outsideasymm
float outsideasymm() const
Definition:
ShallowClustersProducer.h:41
ShallowClustersProducer::theClustersLabel
edm::InputTag theClustersLabel
Definition:
ShallowClustersProducer.h:24
ShallowClustersProducer::NearDigis::etaasymm
float etaasymm() const
Definition:
ShallowClustersProducer.h:40
EDGetToken.h
ShallowClustersProducer::NearDigis
Definition:
ShallowClustersProducer.h:34
ShallowClustersProducer::NearDigis::max
float max
Definition:
ShallowClustersProducer.h:37
ShallowClustersProducer::NearDigis::first
float first
Definition:
ShallowClustersProducer.h:37
SiStripProcessedRawDigi
A signed Digi for the silicon strip detector, containing only adc information, and suitable for stori...
Definition:
SiStripProcessedRawDigi.h:16
SiStripClusterInfo
Definition:
SiStripClusterInfo.h:14
ShallowClustersProducer::ShallowClustersProducer
ShallowClustersProducer(const edm::ParameterSet &)
Definition:
ShallowClustersProducer.cc:13
TrackerTopology
Definition:
TrackerTopology.h:18
ShallowClustersProducer::NearDigis::etaX
float etaX() const
Definition:
ShallowClustersProducer.h:38
ShallowClustersProducer
Definition:
ShallowClustersProducer.h:16
ShallowClustersProducer::moduleVars::moduleVars
moduleVars(uint32_t, const TrackerTopology *)
Definition:
ShallowClustersProducer.cc:224
edm::EDGetTokenT
Definition:
EDGetToken.h:32
Frameworkfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::EDProducer
Definition:
EDProducer.h:33
DetSetVector.h
ShallowClustersProducer::moduleVars::module
uint32_t module
Definition:
ShallowClustersProducer.h:31
ShallowClustersProducer::moduleVars::petal
int petal
Definition:
ShallowClustersProducer.h:30
ShallowClustersProducer::moduleVars::layerwheel
int layerwheel
Definition:
ShallowClustersProducer.h:30
ShallowClustersProducer::NearDigis::NearDigis
NearDigis(const SiStripClusterInfo &)
Definition:
ShallowClustersProducer.cc:197
ShallowClustersProducer::moduleVars::side
int side
Definition:
ShallowClustersProducer.h:30
ShallowClustersProducer::theClustersToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripCluster > > theClustersToken_
Definition:
ShallowClustersProducer.h:44
ShallowClustersProducer::Prefix
std::string Prefix
Definition:
ShallowClustersProducer.h:25
edm::EventSetup
Definition:
EventSetup.h:44
ShallowClustersProducer::NearDigis::left
float left
Definition:
ShallowClustersProducer.h:37
ShallowClustersProducer::produce
void produce(edm::Event &, const edm::EventSetup &)
Definition:
ShallowClustersProducer.cc:58
ShallowClustersProducer::NearDigis::right
float right
Definition:
ShallowClustersProducer.h:37
ShallowClustersProducer::NearDigis::Rright
float Rright
Definition:
ShallowClustersProducer.h:37
EDProducer.h
ShallowClustersProducer::moduleVars::subdetid
int subdetid
Definition:
ShallowClustersProducer.h:30
ShallowClustersProducer::NearDigis::eta
float eta() const
Definition:
ShallowClustersProducer.h:39
ShallowClustersProducer::moduleVars::stringringrod
int stringringrod
Definition:
ShallowClustersProducer.h:30
ShallowClustersProducer::theDigisToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripProcessedRawDigi > > theDigisToken_
Definition:
ShallowClustersProducer.h:45
edm::InputTag
Definition:
InputTag.h:17
SiStripCluster.h
InputTag.h
edm::ParameterSet
Definition:
ParameterSet.h:35
ShallowClustersProducer::moduleVars::stereo
int stereo
Definition:
ShallowClustersProducer.h:30
edm::Event
Definition:
Event.h:62
ShallowClustersProducer::NearDigis::last
float last
Definition:
ShallowClustersProducer.h:37
edm::DetSetVector
Definition:
DetSetVector.h:62
ShallowClustersProducer::moduleVars
Definition:
ShallowClustersProducer.h:28
Generated for CMSSW Reference Manual by
1.8.5