ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ShallowTools/interface/ShallowClustersProducer.h
Revision: 1.1
Committed: Sat Jun 6 14:23:08 2009 UTC (15 years, 10 months ago) by bbetchar
Content type: text/plain
Branch: MAIN
CVS Tags: V03-00-02, V03-00-01, V03-00-00
Log Message:
Move directories around

File Contents

# User Rev Content
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     std::string Prefix;
19     void produce( edm::Event &, const edm::EventSetup & );
20    
21     struct moduleVars {
22     moduleVars(uint32_t);
23     int subdetid, side, layerwheel, stringringrod, petal, stereo;
24     uint32_t module;
25     };
26    
27     struct NearDigis {
28     NearDigis(const SiStripClusterInfo&);
29     NearDigis(const SiStripClusterInfo&, const edm::DetSetVector<SiStripProcessedRawDigi>&);
30     float max, left, right, first, last, Lleft, Rright;
31     float etaX() const {return (left+right)/max/2.;}
32     float eta() const {return right>left ? max/(max+right) : left/(left+max);}
33     float etaasymm() const {return right>left ? (right-max)/(right+max) : (max-left)/(max+left);}
34     float outsideasymm() const {return (last-first)/(last+first);}
35     };
36    
37     };
38    
39     #endif