Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-28 23:48:23

0001 #ifndef QIE11Task_h
0002 #define QIE11Task_h
0003 
0004 /*
0005  *  file:           QIE11Task.h
0006  *  Author:         Viktor KHristenko
0007  *  Description:
0008  *      TestTask of QIE11 Read out
0009  */
0010 
0011 #include "DQM/HcalCommon/interface/DQTask.h"
0012 #include "DQM/HcalCommon/interface/Utilities.h"
0013 #include "DQM/HcalCommon/interface/Container2D.h"
0014 #include "DQM/HcalCommon/interface/ContainerProf1D.h"
0015 #include "DQM/HcalCommon/interface/ContainerSingleProf1D.h"
0016 #include "DQM/HcalCommon/interface/ContainerSingleProf2D.h"
0017 #include "DQM/HcalCommon/interface/ContainerSingle1D.h"
0018 #include "DQM/HcalCommon/interface/ContainerSingle2D.h"
0019 #include "DQM/HcalCommon/interface/HashFilter.h"
0020 #include "DQM/HcalCommon/interface/ElectronicsMap.h"
0021 
0022 class QIE11Task : public hcaldqm::DQTask {
0023 public:
0024   QIE11Task(edm::ParameterSet const &);
0025   ~QIE11Task() override {}
0026 
0027   void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0028   void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override;
0029   static void fillDescriptions(edm::ConfigurationDescriptions &);
0030 
0031 protected:
0032   void _process(edm::Event const &, edm::EventSetup const &) override;
0033   void _resetMonitors(hcaldqm::UpdateFreq) override;
0034   bool _isApplicable(edm::Event const &) override;
0035 
0036   //    tags
0037   edm::InputTag _tagQIE11;
0038   edm::EDGetTokenT<QIE11DigiCollection> _tokQIE11;
0039 
0040   edm::InputTag _taguMN;
0041   edm::EDGetTokenT<HcalUMNioDigi> _tokuMN;
0042   edm::ESGetToken<HcalDbService, HcalDbRecord> hcalDbServiceToken_;
0043 
0044   //    cuts/constants from input
0045   double _cut;
0046   int _ped;
0047   int _laserType;
0048   int _eventType;
0049 
0050   //    filters
0051   hcaldqm::filter::HashFilter _filter_C34;
0052   hcaldqm::filter::HashFilter _filter_slot[2];
0053   hcaldqm::filter::HashFilter _filter_timingChannels[4];
0054 
0055   //    Electronics Maps/Hashes
0056   hcaldqm::electronicsmap::ElectronicsMap _ehashmap;
0057 
0058   //    hcaldqm::Containers
0059   hcaldqm::ContainerProf1D _cShapeCut_EChannel[2];
0060   hcaldqm::Container2D _cLETDCvsADC_EChannel[10][2];
0061   hcaldqm::Container2D _cLETDCvsTS_EChannel[2];
0062   hcaldqm::Container1D _cLETDC_EChannel[10][2];
0063   hcaldqm::Container1D _cLETDCTime_EChannel[2];
0064   hcaldqm::Container1D _cADC_EChannel[10][2];
0065   hcaldqm::Container2D _cOccupancy_depth;
0066 
0067   //    hcaldqm::Containers overall
0068   hcaldqm::ContainerSingleProf1D _cShapeCut;
0069   hcaldqm::ContainerSingle2D _cLETDCvsADC;
0070   hcaldqm::ContainerSingle2D _cLETDCTimevsADC;
0071   hcaldqm::ContainerSingle1D _cLETDC;
0072   hcaldqm::ContainerSingle1D _cADC;
0073 };
0074 
0075 #endif