ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ShallowTools/interface/ShallowClustersProducer.h
Revision: 1.2
Committed: Wed Sep 2 17:12:52 2009 UTC (15 years, 8 months ago) by bbetchar
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -0 lines
Log Message:
Allow python configuration of cluster collection

File Contents

# Content
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 edm::InputTag theClustersLabel;
19 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