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.2 2007/09/13 20:02:52 dkcira 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 SiStripGainCosmicCalculator : public ConditionDBWriter<SiStripApvGain> {
25 public:
28 private:
29  void algoAnalyze(const edm::Event &, const edm::EventSetup &);
30  void algoBeginJob(const edm::EventSetup&);
31  void algoEndJob();
33 private:
34  std::pair<double,double> getPeakOfLandau( TH1F * inputHisto );
35  double moduleWidth(const uint32_t detid, const edm::EventSetup* iSetup);
36  double moduleThickness(const uint32_t detid, const edm::EventSetup* iSetup);
37 private:
38  std::string TrackProducer;
39  std::string TrackLabel;
40  //
41  TObjArray * HlistAPVPairs;
42  TObjArray * HlistOtherHistos;
45  std::map<uint32_t, double> thickness_map; // map of detector id to respective thickness
46  std::vector<uint32_t> SelectedDetIds;
47  std::vector<uint32_t> detModulesToBeExcluded;
49  unsigned int MinNrEntries;
52  TString outputFileName ;
54 };
55 #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 &)