test
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
#include "
DataFormats/Common/interface/DetSetVectorNew.h
"
10
11
#include "
DataFormats/SiStripCluster/interface/SiStripCluster.h
"
12
13
class
SiStripClusterInfo
;
14
class
SiStripProcessedRawDigi
;
15
class
TrackerTopology
;
16
17
class
ShallowClustersProducer
:
public
edm::EDProducer
{
18
19
public
:
20
21
explicit
ShallowClustersProducer
(
const
edm::ParameterSet
&);
22
23
private
:
24
25
edm::InputTag
theClustersLabel
;
26
std::string
Prefix
;
27
void
produce
(
edm::Event
&,
const
edm::EventSetup
& );
28
29
struct
moduleVars
{
30
moduleVars
(uint32_t,
const
TrackerTopology
*);
31
int
subdetid
,
side
,
layerwheel
,
stringringrod
,
petal
,
stereo
;
32
uint32_t
module
;
33
};
34
35
struct
NearDigis
{
36
NearDigis
(
const
SiStripClusterInfo
&);
37
NearDigis
(
const
SiStripClusterInfo
&,
const
edm::DetSetVector<SiStripProcessedRawDigi>
&);
38
float
max
,
left
,
right
,
first
,
last
,
Lleft
,
Rright
;
39
float
etaX
()
const
{
return
((
left
+
right
)/
max
)/2.;}
40
float
eta
()
const
{
return
right
>
left
?
max
/(
max
+
right
) :
left
/(
left
+
max
);}
41
float
etaasymm
()
const
{
return
right
>
left
? (
right
-
max
)/(
right
+
max
) : (
max
-
left
)/(
max
+left);}
42
float
outsideasymm
()
const
{
return
(
last
-
first
)/(
last
+
first
);}
43
};
44
45
edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster>
>
theClustersToken_
;
46
edm::EDGetTokenT<edm::DetSetVector<SiStripProcessedRawDigi>
>
theDigisToken_
;
47
48
};
49
50
#endif
ShallowClustersProducer::NearDigis::Lleft
float Lleft
Definition:
ShallowClustersProducer.h:38
ShallowClustersProducer::NearDigis::outsideasymm
float outsideasymm() const
Definition:
ShallowClustersProducer.h:42
ShallowClustersProducer::theClustersLabel
edm::InputTag theClustersLabel
Definition:
ShallowClustersProducer.h:25
ShallowClustersProducer::NearDigis::etaasymm
float etaasymm() const
Definition:
ShallowClustersProducer.h:41
EDGetToken.h
ShallowClustersProducer::NearDigis
Definition:
ShallowClustersProducer.h:35
ShallowClustersProducer::NearDigis::max
float max
Definition:
ShallowClustersProducer.h:38
DetSetVectorNew.h
ShallowClustersProducer::NearDigis::first
float first
Definition:
ShallowClustersProducer.h:38
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:15
ShallowClustersProducer::ShallowClustersProducer
ShallowClustersProducer(const edm::ParameterSet &)
Definition:
ShallowClustersProducer.cc:13
TrackerTopology
Definition:
TrackerTopology.h:18
ShallowClustersProducer::NearDigis::etaX
float etaX() const
Definition:
ShallowClustersProducer.h:39
ShallowClustersProducer
Definition:
ShallowClustersProducer.h:17
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:35
DetSetVector.h
ShallowClustersProducer::moduleVars::module
uint32_t module
Definition:
ShallowClustersProducer.h:32
ShallowClustersProducer::moduleVars::petal
int petal
Definition:
ShallowClustersProducer.h:31
ShallowClustersProducer::moduleVars::layerwheel
int layerwheel
Definition:
ShallowClustersProducer.h:31
ShallowClustersProducer::NearDigis::NearDigis
NearDigis(const SiStripClusterInfo &)
Definition:
ShallowClustersProducer.cc:197
ShallowClustersProducer::moduleVars::side
int side
Definition:
ShallowClustersProducer.h:31
ShallowClustersProducer::Prefix
std::string Prefix
Definition:
ShallowClustersProducer.h:26
edm::EventSetup
Definition:
EventSetup.h:45
ShallowClustersProducer::NearDigis::left
float left
Definition:
ShallowClustersProducer.h:38
ShallowClustersProducer::produce
void produce(edm::Event &, const edm::EventSetup &)
Definition:
ShallowClustersProducer.cc:58
ShallowClustersProducer::NearDigis::right
float right
Definition:
ShallowClustersProducer.h:38
ShallowClustersProducer::NearDigis::Rright
float Rright
Definition:
ShallowClustersProducer.h:38
EDProducer.h
ShallowClustersProducer::moduleVars::subdetid
int subdetid
Definition:
ShallowClustersProducer.h:31
ShallowClustersProducer::NearDigis::eta
float eta() const
Definition:
ShallowClustersProducer.h:40
ShallowClustersProducer::moduleVars::stringringrod
int stringringrod
Definition:
ShallowClustersProducer.h:31
ShallowClustersProducer::theClustersToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > theClustersToken_
Definition:
ShallowClustersProducer.h:45
ShallowClustersProducer::theDigisToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripProcessedRawDigi > > theDigisToken_
Definition:
ShallowClustersProducer.h:46
edm::InputTag
Definition:
InputTag.h:15
SiStripCluster.h
InputTag.h
edm::ParameterSet
Definition:
ParameterSet.h:36
ShallowClustersProducer::moduleVars::stereo
int stereo
Definition:
ShallowClustersProducer.h:31
edm::Event
Definition:
Event.h:65
ShallowClustersProducer::NearDigis::last
float last
Definition:
ShallowClustersProducer.h:38
edm::DetSetVector
Definition:
DetSetVector.h:60
ShallowClustersProducer::moduleVars
Definition:
ShallowClustersProducer.h:29
Generated for CMSSW Reference Manual by
1.8.5