1 |
bbetchar |
1.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 "DataFormats/Common/interface/DetSetVector.h"
|
7 |
|
|
class SiStripClusterInfo;
|
8 |
|
|
class SiStripProcessedRawDigi;
|
9 |
|
|
|
10 |
|
|
class ShallowClustersProducer : public edm::EDProducer {
|
11 |
|
|
|
12 |
|
|
public:
|
13 |
|
|
|
14 |
|
|
explicit ShallowClustersProducer(const edm::ParameterSet&);
|
15 |
|
|
|
16 |
|
|
private:
|
17 |
|
|
|
18 |
bbetchar |
1.2 |
edm::InputTag theClustersLabel;
|
19 |
bbetchar |
1.1 |
std::string Prefix;
|
20 |
|
|
void produce( edm::Event &, const edm::EventSetup & );
|
21 |
|
|
|
22 |
|
|
struct moduleVars {
|
23 |
|
|
moduleVars(uint32_t);
|
24 |
|
|
int subdetid, side, layerwheel, stringringrod, petal, stereo;
|
25 |
|
|
uint32_t module;
|
26 |
|
|
};
|
27 |
|
|
|
28 |
|
|
struct NearDigis {
|
29 |
|
|
NearDigis(const SiStripClusterInfo&);
|
30 |
|
|
NearDigis(const SiStripClusterInfo&, const edm::DetSetVector<SiStripProcessedRawDigi>&);
|
31 |
|
|
float max, left, right, first, last, Lleft, Rright;
|
32 |
|
|
float etaX() const {return (left+right)/max/2.;}
|
33 |
|
|
float eta() const {return right>left ? max/(max+right) : left/(left+max);}
|
34 |
|
|
float etaasymm() const {return right>left ? (right-max)/(right+max) : (max-left)/(max+left);}
|
35 |
|
|
float outsideasymm() const {return (last-first)/(last+first);}
|
36 |
|
|
};
|
37 |
|
|
|
38 |
|
|
};
|
39 |
|
|
|
40 |
|
|
#endif
|