Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:33

0001 #ifndef DQMOFFLINE_L1TRIGGER_L1TFILLWITHINLIMITS_H
0002 #define DQMOFFLINE_L1TRIGGER_L1TFILLWITHINLIMITS_H
0003 
0004 #include "DQMServices/Core/interface/DQMStore.h"
0005 
0006 namespace dqmoffline {
0007   namespace l1t {
0008 
0009     typedef dqm::reco::MonitorElement MonitorElement;
0010 
0011     /**
0012  * Fills a given MonitorElement within the boundaries of the underlying histogram.
0013  * This means that underflow is filled into the first bin and overflow is filled into the last bin.
0014  * @param pointer to the DQM MonitorElement
0015  * @param fill value
0016  * @param optional weight
0017  */
0018     void fillWithinLimits(MonitorElement* mon, double value, double weight = 1.);
0019     /**
0020  * Fills a given MonitorElement within the boundaries of the underlying histogram.
0021  * This means that underflow is filled into the first bin and overflow is filled into the last bin.
0022  * @param pointer to the DQM MonitorElement
0023  * @param fill value for X
0024  * @param fill value for Y
0025  * @param optional weight X
0026  * @param optional weight Y
0027  */
0028     void fill2DWithinLimits(MonitorElement* mon, double valueX, double valueY, double weight = 1.);
0029 
0030     double getFillValueWithinLimits(double value, double min, double max);
0031   }  // namespace l1t
0032 }  // namespace dqmoffline
0033 
0034 #endif