CMS 3D CMS Logo

DTDigiTask.h
Go to the documentation of this file.
1 #ifndef DTDigiTask_H
2 #define DTDigiTask_H
3 
4 /*
5  * \file DTDigiTask.h
6  *
7  * \author M. Zanetti - INFN Padova
8  *
9 */
10 
18 
21 
23 
25 
29 
32 
33 #include <memory>
34 #include <iostream>
35 #include <fstream>
36 #include <string>
37 #include <vector>
38 #include <map>
39 
40 class DTGeometry;
41 class DTSuperLayerId;
42 class DTLayerId;
43 class DTChamberId;
44 class DTTtrig;
45 class DTT0;
46 
47 class DTDigiTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
48 public:
50  DTDigiTask(const edm::ParameterSet& ps);
51 
53  ~DTDigiTask() override;
54 
55 protected:
56  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
57 
58  // Book the histograms
59  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
60 
64  void bookHistos(DQMStore::IBooker& ibooker, const int wheelId, std::string folder, std::string histoTag);
65 
67  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) override;
68  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) final {}
69 
71  void channelsMap(const DTChamberId& dtCh, std::string histoTag);
72 
74  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
75 
78 
79 private:
80  std::string topFolder() const;
81 
82  int nevents;
83 
85  int tMax;
87 
89  float tTrig;
90  float tTrigRMS;
91  float kFactor;
92 
93  //check for sync noise
94 
95  std::map<DTChamberId, int> hitMap;
96  std::set<DTChamberId> syncNoisyChambers;
98  int syncNum;
99 
101 
104 
107 
108  std::map<std::string, std::map<uint32_t, MonitorElement*> > digiHistos;
109  std::map<std::string, std::map<int, MonitorElement*> > wheelHistos;
110 
111  // Parameters from config file
112 
113  // The label to retrieve the digis
115 
117 
118  // Set to true to read the ttrig from DB (useful to determine in-time and out-of-time hits)
120  // Set to true to subtract t0 from test pulses
122  // Tmax value (TDC counts)
124  // Switch from static (all histo at the beginninig of the job) to
125  // dynamic (book when needed) histo booking
127  // Switch for local/global runs
129  // Setting for the reset of the ME after n (= ResetCycle) luminosity sections
131  // Check the DB of noisy channels
133  // Default TTrig to be used when not reading the TTrig DB
135 
143 
144  bool tpMode;
147 
150 
152 
153  std::map<DTChamberId, int> nSynchNoiseEvents;
155 };
156 
157 #endif
158 
159 /* Local Variables: */
160 /* show-trailing-whitespace: t */
161 /* truncate-lines: t */
162 /* End: */
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTTtrig
Definition: DTTtrig.h:68
Handle.h
ESHandle.h
DTDigiTask::kFactor
float kFactor
Definition: DTDigiTask.h:91
DTDigiTask::doAllHitsOccupancies
bool doAllHitsOccupancies
Definition: DTDigiTask.h:140
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
DTDigiTask::nSynchNoiseEvents
std::map< DTChamberId, int > nSynchNoiseEvents
Definition: DTDigiTask.h:153
edm::Run
Definition: Run.h:45
printsummarytable.folder
folder
Definition: printsummarytable.py:7
edm::EDGetTokenT< DTDigiCollection >
LuminosityBlock.h
DTDigiTask::DTDigiTask
DTDigiTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTDigiTask.cc:43
DTDigiTask::dtDigiToken_
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTDigiTask.h:114
DTDigiTask::tTrigRMS
float tTrigRMS
Definition: DTDigiTask.h:90
DTDigiTask::tMax
int tMax
no needs to be precise. Value from PSets will always be used
Definition: DTDigiTask.h:85
DTDigiTask::timeBoxGranularity
int timeBoxGranularity
Definition: DTDigiTask.h:138
DTDigiTask::sliceTestMode
bool sliceTestMode
Definition: DTDigiTask.h:148
DTDigiTask::channelsMap
void channelsMap(const DTChamberId &dtCh, std::string histoTag)
To map real channels.
Definition: DTDigiTask.cc:719
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DTDigiTask::maxTDCHits
int maxTDCHits
Definition: DTDigiTask.h:86
DTDigiTask::t0Map
edm::ESHandle< DTT0 > t0Map
Definition: DTDigiTask.h:106
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
DTDigiTask::maxTTMounts
int maxTTMounts
Definition: DTDigiTask.h:139
edm::Handle< LTCDigiCollection >
DTDigiTask::muonGeom
edm::ESHandle< DTGeometry > muonGeom
Definition: DTDigiTask.h:102
DQMOneEDAnalyzer.h
LTCDigi.h
DTDigiTask::doLayerTimeBoxes
bool doLayerTimeBoxes
Definition: DTDigiTask.h:151
DTDigiTask::mapping
edm::ESHandle< DTReadOutMapping > mapping
Definition: DTDigiTask.h:103
MakerMacros.h
DTDigiTask::bookHistos
void bookHistos(DQMStore::IBooker &ibooker, const DTSuperLayerId &dtSL, std::string folder, std::string histoTag)
Book the ME.
DTDigiTask::syncNum
int syncNum
Definition: DTDigiTask.h:98
DTDigiTask::tTrigMap
edm::ESHandle< DTTtrig > tTrigMap
Definition: DTDigiTask.h:105
DTDigiTask::syncNoisyChambers
std::set< DTChamberId > syncNoisyChambers
Definition: DTDigiTask.h:96
DTDigiTask::defaultTmax
int defaultTmax
Definition: DTDigiTask.h:123
Service.h
edm::ESHandle< DTGeometry >
DTDigiTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTDigiTask.cc:128
DTLayerId
Definition: DTLayerId.h:12
DTDigiTask::tdcPedestal
int tdcPedestal
Definition: DTDigiTask.h:149
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTDigiTask::wheelHistos
std::map< std::string, std::map< int, MonitorElement * > > wheelHistos
Definition: DTDigiTask.h:109
DTDigiTask::topFolder
std::string topFolder() const
Definition: DTDigiTask.cc:711
edm::ParameterSet
Definition: ParameterSet.h:47
DTDigiTask::nEventMonitor
MonitorElement * nEventMonitor
Definition: DTDigiTask.h:154
Event.h
DTDigiTask::ltcdigis
edm::Handle< LTCDigiCollection > ltcdigis
Definition: DTDigiTask.h:100
dtResolutionTest_cfi.histoTag
histoTag
Definition: dtResolutionTest_cfi.py:21
DTDigiTask::lookForSyncNoise
bool lookForSyncNoise
Definition: DTDigiTask.h:145
DTDigiTask::tTrig
float tTrig
tTrig from the DB
Definition: DTDigiTask.h:89
edm::EventSetup
Definition: EventSetup.h:58
DTDigiTask::isLocalRun
bool isLocalRun
Definition: DTDigiTask.h:128
DTDigiTask::doInTimeOccupancies
bool doInTimeOccupancies
Definition: DTDigiTask.h:142
DTDigiTask::subtractT0
bool subtractT0
Definition: DTDigiTask.h:121
DTDigiTask::digiHistos
std::map< std::string, std::map< uint32_t, MonitorElement * > > digiHistos
Definition: DTDigiTask.h:108
InputTag.h
DTDigiTask::triggerSource
std::string triggerSource()
get the L1A source
Definition: DTDigiTask.cc:690
DTDigiTask::defaultTTrig
int defaultTTrig
Definition: DTDigiTask.h:134
DTDigiTask::inTimeHitsUpperBound
int inTimeHitsUpperBound
Definition: DTDigiTask.h:137
DTDigiTask::readTTrigDB
bool readTTrigDB
Definition: DTDigiTask.h:119
DTDigiTask::checkNoisyChannels
bool checkNoisyChannels
Definition: DTDigiTask.h:132
DTDigiTask::nevents
int nevents
Definition: DTDigiTask.h:82
DTDigiTask::hitMap
std::map< DTChamberId, int > hitMap
Definition: DTDigiTask.h:95
Frameworkfwd.h
DTDigiTask::~DTDigiTask
~DTDigiTask() override
Destructor.
Definition: DTDigiTask.cc:102
DTDigiTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTDigiTask.cc:433
DTDigiTask::resetCycle
int resetCycle
Definition: DTDigiTask.h:130
DTT0
Definition: DTT0.h:48
DTDigiTask::doStaticBooking
bool doStaticBooking
Definition: DTDigiTask.h:126
DTDigiTask::filterSyncNoise
bool filterSyncNoise
Definition: DTDigiTask.h:146
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTDigiTask::syncNumTot
int syncNumTot
Definition: DTDigiTask.h:97
DTDigiTask
Definition: DTDigiTask.h:47
DTDigi.h
DTDigiCollection.h
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
DTDigiTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: DTDigiTask.cc:106
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
DTDigiTask::tpMode
bool tpMode
Definition: DTDigiTask.h:144
edm::Event
Definition: Event.h:73
DTDigiTask::inTimeHitsLowerBound
int inTimeHitsLowerBound
Definition: DTDigiTask.h:136
DTReadOutMapping.h
DTDigiTask::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) override
To reset the MEs.
Definition: DTDigiTask.cc:185
DTDigiTask::doNoiseOccupancies
bool doNoiseOccupancies
Definition: DTDigiTask.h:141
DTDigiTask::ltcDigiCollectionToken_
edm::EDGetTokenT< LTCDigiCollection > ltcDigiCollectionToken_
Definition: DTDigiTask.h:116
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
DTDigiTask::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context) final
Definition: DTDigiTask.h:68