CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripGainCosmicCalculator.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripChannelGain_SiStripGainCosmicCalculator_h
2 #define CalibTracker_SiStripChannelGain_SiStripGainCosmicCalculator_h
3 // -*- C++ -*-
4 // Package: SiStripApvGainCalculator
5 // Class: SiStripApvGainCalculator
10 // Original Author: Dorian Kcira, Pierre Rodeghiero
11 // Created: Mon Nov 20 10:04:31 CET 2006
12 // $Id: SiStripGainCosmicCalculator.h,v 1.3 2013/01/11 05:51:19 wmtan Exp $
15 #include <vector>
16 #include "TF1.h"
17 #include "TH1F.h"
18 #include "TObjArray.h"
19 #include "TFile.h"
20 #include "TString.h"
21 #include <fstream>
22 #include <sstream>
23 
24 class TrackerTopology;
25 
26 class SiStripGainCosmicCalculator : public ConditionDBWriter<SiStripApvGain> {
27 public:
30 private:
31  void algoAnalyze(const edm::Event &, const edm::EventSetup &);
32  void algoBeginJob(const edm::EventSetup&);
33  void algoEndJob();
35 private:
36  std::pair<double,double> getPeakOfLandau( TH1F * inputHisto );
37  double moduleWidth(const uint32_t detid, const edm::EventSetup* iSetup);
38  double moduleThickness(const uint32_t detid, const edm::EventSetup* iSetup);
39 private:
42  //
43  TObjArray * HlistAPVPairs;
44  TObjArray * HlistOtherHistos;
47  std::map<uint32_t, double> thickness_map; // map of detector id to respective thickness
48  std::vector<uint32_t> SelectedDetIds;
49  std::vector<uint32_t> detModulesToBeExcluded;
51  unsigned int MinNrEntries;
54  TString outputFileName ;
57 };
58 #endif
std::vector< uint32_t > SelectedDetIds
double moduleThickness(const uint32_t detid, const edm::EventSetup *iSetup)
const edm::EventSetup * eventSetupCopy_
double moduleWidth(const uint32_t detid, const edm::EventSetup *iSetup)
std::pair< double, double > getPeakOfLandau(TH1F *inputHisto)
void algoBeginJob(const edm::EventSetup &)
SiStripGainCosmicCalculator(const edm::ParameterSet &)
std::map< uint32_t, double > thickness_map
std::vector< uint32_t > detModulesToBeExcluded
void algoAnalyze(const edm::Event &, const edm::EventSetup &)