test
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 
12 #include <map>
13 #include <string>
14 
19 
22 
23 class EBDigiCollection;
24 class EEDigiCollection;
25 
27 
29 {
30 
31  public:
32 
35 
37  virtual ~EcalPedOffset();
38 
40  void analyze(edm::Event const& event, edm::EventSetup const& eventSetup);
41 
43  void beginRun(edm::Run const &, edm::EventSetup const& eventSetup);
44 
46  void endJob(void);
47 
50 
52  void writeDb();
53 
55  void makePlots();
56 
57 
58  private:
59 
61 
63  void readDACs(const edm::Handle<EBDigiCollection>& pDigis, const std::map<int,int>& DACvalues);
64  void readDACs(const edm::Handle<EEDigiCollection>& pDigis, const std::map<int,int>& DACvalues);
65 
69 
71 
72  std::map<int,TPedValues*> m_pedValues;
73  std::map<int,TPedResult*> m_pedResult;
74 
75  int m_DACmin;
76  int m_DACmax;
77  double m_RMSmax;
78  int m_bestPed;
79 
93  // used to retrieve the run_iov
96  int m_run;
97 
106 
107 } ;
108 
109 #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:66
std::string m_dbHostName
database host name
Definition: EcalPedOffset.h:81
std::map< int, TPedValues * > m_pedValues
Definition: EcalPedOffset.h:72
std::string m_dbName
database name
Definition: EcalPedOffset.h:83
std::string intToString(int num)
std::string m_xmlFile
name of the xml file to be saved
Definition: EcalPedOffset.h:70
double m_minSlopeAllowed_
min slope (in magnitude) allowed for linearity test
std::string m_dbPassword
database user password
Definition: EcalPedOffset.h:87
std::string m_plotting
the root file where to store the detail plots
Definition: EcalPedOffset.h:99
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:89
std::string m_dbUserName
database user name
Definition: EcalPedOffset.h:85
void writeDb()
WriteDB.
void readDACs(const edm::Handle< EBDigiCollection > &pDigis, const std::map< int, int > &DACvalues)
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:92
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:73
calculate the best DAC value to obtain a pedestal = 200
Definition: EcalPedOffset.h:28
EcalPedOffset(const edm::ParameterSet &ps)
Constructor.
edm::InputTag m_headerCollection
name of module/plugin/producer making headers
Definition: EcalPedOffset.h:68
int m_run
run number
Definition: EcalPedOffset.h:96
const EcalElectronicsMapping * ecalElectronicsMap_
Definition: EcalPedOffset.h:60
Transient container right DAC values for each crystal and each gain $Date: $Revision: ...
std::string m_location
Definition: EcalPedOffset.h:94
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:67
Definition: Run.h:43