CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalPedOffset.h
Go to the documentation of this file.
1 #ifndef EcalPedOffset_H
2 #define EcalPedOffset_H
3 
14 #include <map>
15 #include <string>
16 
21 
24 
25 class EBDigiCollection;
26 class EEDigiCollection;
27 
29 
31 {
32 
33  public:
34 
37 
39  virtual ~EcalPedOffset();
40 
42  void analyze(edm::Event const& event, edm::EventSetup const& eventSetup);
43 
45  void beginRun(edm::Run const &, edm::EventSetup const& eventSetup);
46 
48  void endJob(void);
49 
51  void writeXMLFiles(std::string fileName);
52 
54  void writeDb();
55 
57  void makePlots();
58 
59 
60  private:
61 
63 
64  std::string intToString(int num);
65  void readDACs(edm::Handle<EBDigiCollection> pDigis, std::map<int,int> DACvalues);
66  void readDACs(edm::Handle<EEDigiCollection> pDigis, std::map<int,int> DACvalues);
67 
71 
72  std::string m_xmlFile;
73 
74  std::map<int,TPedValues*> m_pedValues;
75  std::map<int,TPedResult*> m_pedResult;
76 
77  int m_DACmin;
78  int m_DACmax;
79  double m_RMSmax;
80  int m_bestPed;
81 
83  std::string m_dbHostName;
85  std::string m_dbName;
87  std::string m_dbUserName;
89  std::string m_dbPassword;
95  // used to retrieve the run_iov
96  std::string m_location;
98  int m_run;
99 
101  std::string m_plotting;
108 
109 } ;
110 
111 #endif
double m_maxChi2OverNDFAllowed_
max chi2/ndf allowed for linearity test
edm::InputTag m_barrelDigiCollection
secondary name given to collection of digis
Definition: EcalPedOffset.h:68
std::string m_dbHostName
database host name
Definition: EcalPedOffset.h:83
std::map< int, TPedValues * > m_pedValues
Definition: EcalPedOffset.h:74
std::string m_dbName
database name
Definition: EcalPedOffset.h:85
std::string intToString(int num)
std::string m_xmlFile
name of the xml file to be saved
Definition: EcalPedOffset.h:72
double m_minSlopeAllowed_
min slope (in magnitude) allowed for linearity test
std::string m_dbPassword
database user password
Definition: EcalPedOffset.h:89
std::string m_plotting
the root file where to store the detail plots
Transient container Store all the pedestal values depending on the gain and pedestal offset $Date: $R...
void beginRun(edm::Run const &, edm::EventSetup const &eventSetup)
BeginRun.
int m_dbHostPort
database
Definition: EcalPedOffset.h:91
std::string m_dbUserName
database user name
Definition: EcalPedOffset.h:87
void writeDb()
WriteDB.
void analyze(edm::Event const &event, edm::EventSetup const &eventSetup)
! Analyze
void endJob(void)
EndJob.
void makePlots()
create the plots of the DAC pedestal trend
virtual ~EcalPedOffset()
Destructor.
bool m_create_moniov
Definition: EcalPedOffset.h:94
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void writeXMLFiles(std::string fileName)
write the results into xml format
std::map< int, TPedResult * > m_pedResult
Definition: EcalPedOffset.h:75
calculate the best DAC value to obtain a pedestal = 200
Definition: EcalPedOffset.h:30
EcalPedOffset(const edm::ParameterSet &ps)
Constructor.
edm::InputTag m_headerCollection
name of module/plugin/producer making headers
Definition: EcalPedOffset.h:70
int m_run
run number
Definition: EcalPedOffset.h:98
long long int num
Definition: procUtils.cc:71
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalPedOffset.h:62
Transient container right DAC values for each crystal and each gain $Date: $Revision: ...
std::string m_location
Definition: EcalPedOffset.h:96
double m_maxSlopeAllowed_
max slope (in magnitude) allowed for linearity test
edm::InputTag m_endcapDigiCollection
secondary name given to collection of digis
Definition: EcalPedOffset.h:69
Definition: Run.h:32
void readDACs(edm::Handle< EBDigiCollection > pDigis, std::map< int, int > DACvalues)