CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HcalNZSMonitor Class Reference

#include <HcalNZSMonitor.h>

Inheritance diagram for HcalNZSMonitor:
HcalBaseDQMonitor DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &s)
 
void bookHistograms (DQMStore::IBooker &ib, const edm::Run &run, const edm::EventSetup &c)
 
 HcalNZSMonitor (const edm::ParameterSet &ps)
 
void processEvent (const FEDRawDataCollection &rawraw, const edm::TriggerResults &, int bxNum, const edm::TriggerNames &triggerNames)
 
void reset ()
 
void setup (DQMStore::IBooker &)
 
void unpack (const FEDRawData &raw, const HcalElectronicsMap &emap)
 
 ~HcalNZSMonitor ()
 
- Public Member Functions inherited from HcalBaseDQMonitor
 HcalBaseDQMonitor (const edm::ParameterSet &ps)
 
 HcalBaseDQMonitor ()
 
virtual ~HcalBaseDQMonitor ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

bool isUnsuppressed (HcalHTRData &payload)
 

Private Attributes

edm::InputTag hltresultsLabel_
 
MonitorElementmeBXtriggered_
 
MonitorElementmeFEDsizesNZS_
 
MonitorElementmeFEDsizeVsLumi_
 
MonitorElementmeFullCMSdataSize_
 
MonitorElementmeIsUS_
 
MonitorElementmeL1evtNumber_
 
MonitorElementmeTrigFrac_
 
std::vector< int > nAcc
 
int nAcc_Total
 
int nAndAcc
 
int period_
 
edm::InputTag rawdataLabel_
 
std::vector< int > selFEDs_
 
edm::EDGetTokenT
< FEDRawDataCollection
tok_raw_
 
edm::EDGetTokenT
< edm::TriggerResults
tok_res_
 
std::vector< std::string > triggers_
 
uint64_t UScount [32][15]
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from HcalBaseDQMonitor
virtual void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
virtual void cleanup (void)
 
virtual void dqmBeginRun (const edm::Run &run, const edm::EventSetup &c)
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
 
virtual void endRun (const edm::Run &run, const edm::EventSetup &c)
 
void getLogicalMap (const edm::EventSetup &c)
 
bool IsAllowedCalibType ()
 
bool LumiInOrder (int lumisec)
 
void SetupEtaPhiHists (DQMStore::IBooker &ib, EtaPhiHists &hh, std::string Name, std::string Units)
 
- Protected Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
- Protected Attributes inherited from HcalBaseDQMonitor
std::vector< int > AllowedCalibTypes_
 
int badChannelStatusMask_
 
int currentLS
 
int currenttype_
 
int debug_
 
bool enableCleanup_
 
bool eventAllowed_
 
bool HBpresent_
 
bool HEpresent_
 
bool HFpresent_
 
bool HOpresent_
 
int ievt_
 
std::map< unsigned int, int > KnownBadCells_
 
int levt_
 
HcalLogicalMaplogicalMap_
 
bool makeDiagnostics_
 
MonitorElementmeIevt_
 
MonitorElementmeLevt_
 
bool mergeRuns_
 
MonitorElementmeTevt_
 
MonitorElementmeTevtHist_
 
bool needLogicalMap_
 
int NLumiBlocks_
 
bool Online_
 
std::string prefixME_
 
MonitorElementProblemsCurrentLB
 
MonitorElementProblemsVsLB
 
MonitorElementProblemsVsLB_HB
 
MonitorElementProblemsVsLB_HBHEHF
 
MonitorElementProblemsVsLB_HE
 
MonitorElementProblemsVsLB_HF
 
MonitorElementProblemsVsLB_HO
 
bool skipOutOfOrderLS_
 
std::string subdir_
 
int tevt_
 

Detailed Description

Definition at line 10 of file HcalNZSMonitor.h.

Constructor & Destructor Documentation

HcalNZSMonitor::HcalNZSMonitor ( const edm::ParameterSet ps)

Definition at line 11 of file HcalNZSMonitor.cc.

References HcalBaseDQMonitor::AllowedCalibTypes_, HcalBaseDQMonitor::debug_, HcalBaseDQMonitor::enableCleanup_, edm::ParameterSet::getUntrackedParameter(), hltresultsLabel_, HcalBaseDQMonitor::makeDiagnostics_, HcalBaseDQMonitor::mergeRuns_, HcalBaseDQMonitor::NLumiBlocks_, HcalBaseDQMonitor::Online_, period_, HcalBaseDQMonitor::prefixME_, rawdataLabel_, HcalBaseDQMonitor::skipOutOfOrderLS_, AlCaHLTBitMon_QueryRunRegistry::string, HcalBaseDQMonitor::subdir_, tok_raw_, tok_res_, and triggers_.

12 {
13  Online_ = ps.getUntrackedParameter<bool>("online",false);
14  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns",false);
15  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup",false);
16  debug_ = ps.getUntrackedParameter<int>("debug",0);
17  prefixME_ = ps.getUntrackedParameter<std::string>("subSystemFolder","Hcal/");
18  if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!="/")
19  prefixME_.append("/");
20  subdir_ = ps.getUntrackedParameter<std::string>("TaskFolder","NZSMonitor_Hcal");
21  if (subdir_.size()>0 && subdir_.substr(subdir_.size()-1,subdir_.size())!="/")
22  subdir_.append("/");
23  subdir_=prefixME_+subdir_;
24  AllowedCalibTypes_ = ps.getUntrackedParameter<std::vector<int> > ("AllowedCalibTypes");
25  skipOutOfOrderLS_ = ps.getUntrackedParameter<bool>("skipOutOfOrderLS",false);
26  NLumiBlocks_ = ps.getUntrackedParameter<int>("NLumiBlocks",4000);
27  makeDiagnostics_ = ps.getUntrackedParameter<bool>("makeDiagnostics",false);
28 
29  triggers_=ps.getUntrackedParameter<std::vector<std::string> >("nzsHLTnames"); //["HLT_HcalPhiSym","HLT_HcalNZS_8E29]
30  period_=ps.getUntrackedParameter<int>("NZSeventPeriod",4096); //4096
32  hltresultsLabel_ = ps.getUntrackedParameter<edm::InputTag>("HLTResultsLabel");
33 
34  // register for data access
35  tok_raw_ = consumes<FEDRawDataCollection>(rawdataLabel_);
36  tok_res_ = consumes<edm::TriggerResults>(hltresultsLabel_);
37 
38 }
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > triggers_
edm::InputTag rawdataLabel_
std::vector< int > AllowedCalibTypes_
edm::InputTag hltresultsLabel_
edm::EDGetTokenT< edm::TriggerResults > tok_res_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
HcalNZSMonitor::~HcalNZSMonitor ( )

Definition at line 40 of file HcalNZSMonitor.cc.

40 {}

Member Function Documentation

void HcalNZSMonitor::analyze ( edm::Event const &  e,
edm::EventSetup const &  s 
)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 124 of file HcalNZSMonitor.cc.

References HcalBaseDQMonitor::analyze(), edm::EventBase::bunchCrossing(), HcalBaseDQMonitor::debug_, edm::Event::getByToken(), hltresultsLabel_, HcalBaseDQMonitor::IsAllowedCalibType(), HcalBaseDQMonitor::LumiInOrder(), edm::EventBase::luminosityBlock(), processEvent(), rawdataLabel_, tok_raw_, tok_res_, and edm::Event::triggerNames().

125 {
127  if (!IsAllowedCalibType()) return;
128  if (LumiInOrder(e.luminosityBlock())==false) return;
129 
131 
132  if (!(e.getByToken(tok_raw_,rawraw)))
133  {
134  edm::LogWarning("HcalNZSMonitor")<<" raw data with label "<<rawdataLabel_<<" not available";
135  return;
136  }
137 
139  if (!(e.getByToken(tok_res_,hltRes)))
140  {
141  if (debug_>0) edm::LogWarning("HcalNZSMonitor")<<" Could not get HLT results with tag "<<hltresultsLabel_<<std::endl;
142  return;
143  }
144 
145  const edm::TriggerNames & triggerNames = e.triggerNames(*hltRes);
146  // Collections were found; increment counters
147 // HcalBaseDQMonitor::analyze(e,s);
148 
149  processEvent(*rawraw, *hltRes, e.bunchCrossing(), triggerNames);
150 
151 } // void HcalNZSMonitor::analyze(...)
bool LumiInOrder(int lumisec)
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
edm::InputTag rawdataLabel_
void processEvent(const FEDRawDataCollection &rawraw, const edm::TriggerResults &, int bxNum, const edm::TriggerNames &triggerNames)
edm::InputTag hltresultsLabel_
edm::EDGetTokenT< edm::TriggerResults > tok_res_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void HcalNZSMonitor::bookHistograms ( DQMStore::IBooker ib,
const edm::Run run,
const edm::EventSetup c 
)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 54 of file HcalNZSMonitor.cc.

References HcalBaseDQMonitor::bookHistograms(), gather_cfg::cout, HcalBaseDQMonitor::debug_, HcalBaseDQMonitor::mergeRuns_, reset(), setup(), and HcalBaseDQMonitor::tevt_.

55 {
56  if (debug_>1) std::cout <<"HcalNZSMonitor::bookHistograms"<<std::endl;
58 
59  if (tevt_==0) this->setup(ib); // set up histograms if they have not been created before
60  if (mergeRuns_==false)
61  this->reset();
62 
63  return;
64 
65 } // void HcalNZSMonitor::bookHistograms(...)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
void setup(DQMStore::IBooker &)
tuple cout
Definition: gather_cfg.py:121
bool HcalNZSMonitor::isUnsuppressed ( HcalHTRData payload)
private
void HcalNZSMonitor::processEvent ( const FEDRawDataCollection rawraw,
const edm::TriggerResults trigRes,
int  bxNum,
const edm::TriggerNames triggerNames 
)

Level-1 event number generated by the TTC system

Definition at line 154 of file HcalNZSMonitor.cc.

References edm::HLTGlobalStatus::accept(), HcalBaseDQMonitor::currentLS, FEDRawData::data(), FEDRawDataCollection::FEDData(), MonitorElement::Fill(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), i, HcalHTRData::isUnsuppressed(), j, roll_playback::k, prof2calltree::l, FEDNumbering::MAXFEDID, meBXtriggered_, meFEDsizesNZS_, meFEDsizeVsLumi_, meFullCMSdataSize_, meIsUS_, meL1evtNumber_, meTrigFrac_, FEDNumbering::MINTriggerGTPFEDID, nAcc, nAcc_Total, nAndAcc, AlCaHLTBitMon_ParallelJobs::p, period_, selFEDs_, MonitorElement::setBinContent(), FEDRawData::size(), edm::TriggerNames::size(), HcalDCCHeader::SPIGOT_COUNT, edm::TriggerNames::triggerName(), and triggers_.

Referenced by analyze().

158 {
159 
160  const unsigned int nTrig(triggerNames.size());
161 
162  std::vector<bool> trigAcc;
163  for (unsigned int i=0; i<triggers_.size(); i++) trigAcc.push_back(false);
164 
165  for (unsigned int k=0; k<nTrig; k++)
166  {
167  for (unsigned int i=0; i<triggers_.size(); i++)
168  {
169  if (triggerNames.triggerName(k) == triggers_[i] && trigRes.accept(k)) trigAcc[i]=true;
170  }
171  }
172  bool andAcc=true;
173  bool orAcc=false;
174  for (unsigned int p=0; p<triggers_.size(); p++)
175  {
176  if (!trigAcc[p]) andAcc=false;
177  if (trigAcc[p])
178  {
179  orAcc=true;
180  nAcc[p]++;
181  }
182  }
183 
184  if (orAcc)
185  {
186  nAcc_Total++;
187  for (unsigned int l=0; l<triggers_.size(); l++)
188  {
190  }
191  }
192 
193  if (andAcc)
194  {
195  nAndAcc++;
197  }
198 
199  bool processevent=false;
200  if (orAcc) processevent=true;
201 
202  if (!processevent) return;
203 
204  meBXtriggered_->Fill(bxNum+0.001,1);
205 
206  //calculate full HCAL data size:
207  size_t hcalSize=0;
208  bool hcalIsZS = false;
209  for (unsigned int k=0; k<selFEDs_.size(); k++)
210  {
211  const FEDRawData & fedData = rawraw.FEDData(selFEDs_[k]);
212  hcalSize+=fedData.size();
213  meFEDsizesNZS_->Fill(selFEDs_[k]+0.001,fedData.size()/1024);
214 
215  const HcalDCCHeader* dccHeader=(const HcalDCCHeader*)(fedData.data());
216  if (dccHeader==0) continue; // protection against bad data -- saw this happen in file /store/streamer/Data/A/000/131/540/Data.00131540.0200.A.storageManager.00.0000.dat; not yet sure why -- Jeff, 22 March 2010; this was due to empty (masked?) HO FEDs 724 and 727 -- Grigory, 25/03/2010
217 
218  HcalHTRData htr;
219  int nspigot =0;
220  for (int spigot=0; spigot<HcalDCCHeader::SPIGOT_COUNT; spigot++)
221  {
222  nspigot++;
223  if (!dccHeader->getSpigotPresent(spigot)) continue;
224  // Load the given decoder with the pointer and length from this spigot.
225  dccHeader->getSpigotData(spigot,htr, fedData.size());
226  if(k != 20 && nspigot !=14 )
227  {
228  if ( !htr.isUnsuppressed() ) hcalIsZS = true;
229  }
230  }
231  }
232 
233  if (hcalIsZS) meIsUS_->Fill(0,1);
234  else meIsUS_->Fill(1,1);
235 
236  meFEDsizeVsLumi_->Fill(currentLS+0.001, hcalSize/1024);
237 
238  size_t fullSize=0;
239  for (int j=0; j<=FEDNumbering::MAXFEDID; ++j )
240  {
241  const FEDRawData & fedData = rawraw.FEDData(j);
242  fullSize+=fedData.size();
243  }
244 
245  meFullCMSdataSize_->Fill(currentLS+0.001,fullSize/1024);
246 
247  // get Trigger FED-Id
248  const FEDRawData& fedData = rawraw.FEDData(FEDNumbering::MINTriggerGTPFEDID) ;
249  FEDHeader header(fedData.data()) ;
250 
252  if (header.lvl1ID()%period_==0) meL1evtNumber_->Fill(1,1);
253  else meL1evtNumber_->Fill(0,1);
254  return;
255 
256 } //void HcalNZSMonitor::processEvent(...)
int i
Definition: DBlmapReader.cc:9
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< std::string > triggers_
std::vector< int > nAcc
MonitorElement * meIsUS_
bool accept() const
Has at least one path accepted the event?
Strings::size_type size() const
Definition: TriggerNames.cc:39
int getSpigotData(int nspigot, HcalHTRData &decodeTool, int validSize) const
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:47
std::vector< int > selFEDs_
void Fill(long long x)
bool isUnsuppressed() const
Is this event an unsuppresed event?
Definition: HcalHTRData.cc:353
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
int j
Definition: DBlmapReader.cc:9
bool getSpigotPresent(unsigned int nspigot) const
Read the &quot;PRESENT&quot; bit for this spigot.
MonitorElement * meFullCMSdataSize_
MonitorElement * meTrigFrac_
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:27
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
MonitorElement * meL1evtNumber_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition: FEDRawData.cc:28
MonitorElement * meFEDsizesNZS_
MonitorElement * meBXtriggered_
MonitorElement * meFEDsizeVsLumi_
void HcalNZSMonitor::reset ( void  )
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 42 of file HcalNZSMonitor.cc.

References meBXtriggered_, meFEDsizesNZS_, meFEDsizeVsLumi_, meFullCMSdataSize_, meIsUS_, meL1evtNumber_, meTrigFrac_, and MonitorElement::Reset().

Referenced by bookHistograms().

43 {
47  meIsUS_->Reset();
49  meTrigFrac_->Reset();
51 } // void HcalNZSMonitor::reset()
MonitorElement * meIsUS_
MonitorElement * meFullCMSdataSize_
MonitorElement * meTrigFrac_
MonitorElement * meL1evtNumber_
MonitorElement * meFEDsizesNZS_
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meBXtriggered_
MonitorElement * meFEDsizeVsLumi_
void HcalNZSMonitor::setup ( DQMStore::IBooker ib)
virtual

Reimplemented from HcalBaseDQMonitor.

Definition at line 68 of file HcalNZSMonitor.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::bookProfile(), gather_cfg::cout, HcalBaseDQMonitor::debug_, MonitorElement::getTProfile(), i, roll_playback::k, FEDNumbering::MAXHCALFEDID, meBXtriggered_, meFEDsizesNZS_, meFEDsizeVsLumi_, meFullCMSdataSize_, meIsUS_, meL1evtNumber_, meTrigFrac_, FEDNumbering::MINHCALFEDID, nAcc, nAcc_Total, nAndAcc, HcalBaseDQMonitor::NLumiBlocks_, selFEDs_, MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), DQMStore::IBooker::setCurrentFolder(), HcalBaseDQMonitor::setup(), HcalBaseDQMonitor::subdir_, and triggers_.

Referenced by bookHistograms().

69 {
71 
72  if(debug_>1) std::cout << "<HcalNZSMonitor::setup> About to pushback fedUnpackList_" << std::endl;
73 
74  selFEDs_.clear();
76  {
77  selFEDs_.push_back(i);
78  }
79 
80  nAcc.clear();
81  for (unsigned int i=0; i<triggers_.size(); i++) nAcc.push_back(0);
82 
83  nAndAcc=0;
84  nAcc_Total=0;
85 
86  if (debug_>1) std::cout <<"<HcalNZSMonitor::setup> Creating histograms"<<std::endl;
88 
89  meFEDsizesNZS_=ib.bookProfile("FED sizes","FED sizes",32,699.5,731.5,100,-1000.0,12000.0,"");
90  meFEDsizesNZS_->setAxisTitle("FED number",1);
91  meFEDsizesNZS_->setAxisTitle("average size (KB)",2);
92  meFEDsizesNZS_->getTProfile()->SetMarkerStyle(22);
93 
94  meFEDsizeVsLumi_=ib.bookProfile("FED_size_Vs_lumi_block_number",
95  "FED size Vs lumi block number;lumiblock number;average HCAL FED size (kB)",
96  NLumiBlocks_,0.5,NLumiBlocks_+0.5,100,0,10000,"");
97  meFEDsizeVsLumi_->getTProfile()->SetMarkerStyle(22);
98 
99  meL1evtNumber_=ib.book1D("Is_L1_event_number_multiple_of_NZS_period",
100  "Is L1 event number multiple of NZS period",2,0,2);
101  meL1evtNumber_->setBinLabel(1, "NO", 1);
102  meL1evtNumber_->setBinLabel(2, "YES", 1);
103 
104  meIsUS_=ib.book1D("IsUnsuppressed_bit","IsUnsuppressed bit",2,0,2);
105  meIsUS_->setBinLabel(1,"NO",1);
106  meIsUS_->setBinLabel(2,"YES",1);
107 
108  meBXtriggered_=ib.book1D("Triggered_BX_number","Triggered BX number",3850,0,3850);
109  meBXtriggered_->setAxisTitle("BX number",1);
110 
111  meTrigFrac_=ib.book1D("HLT_accept_fractions","HLT accept fractions",triggers_.size()+1,0,triggers_.size()+1);
112  for (unsigned int k=0; k<triggers_.size(); k++) meTrigFrac_->setBinLabel(k+1,triggers_[k].c_str(),1);
113  meTrigFrac_->setBinLabel(triggers_.size()+1,"AND",1);
114 
115  meFullCMSdataSize_=ib.bookProfile("full_CMS_datasize",
116  "full CMS data size;lumiblock number;average FEDRawDataCollection size (kB)",
117  NLumiBlocks_,0.5,NLumiBlocks_+0.5,100,0,10000,"");
118  meFullCMSdataSize_->getTProfile()->SetMarkerStyle(22);
119 
120  return;
121 } // void HcalNZSMonitor::setup()
int i
Definition: DBlmapReader.cc:9
std::vector< std::string > triggers_
std::vector< int > nAcc
MonitorElement * meIsUS_
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
std::vector< int > selFEDs_
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
MonitorElement * meFullCMSdataSize_
MonitorElement * meTrigFrac_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * meL1evtNumber_
TProfile * getTProfile(void) const
tuple cout
Definition: gather_cfg.py:121
MonitorElement * meFEDsizesNZS_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
virtual void setup(DQMStore::IBooker &)
MonitorElement * meBXtriggered_
MonitorElement * meFEDsizeVsLumi_
void HcalNZSMonitor::unpack ( const FEDRawData raw,
const HcalElectronicsMap emap 
)

Member Data Documentation

edm::InputTag HcalNZSMonitor::hltresultsLabel_
private

Definition at line 52 of file HcalNZSMonitor.h.

Referenced by analyze(), and HcalNZSMonitor().

MonitorElement* HcalNZSMonitor::meBXtriggered_
private

Definition at line 40 of file HcalNZSMonitor.h.

Referenced by processEvent(), reset(), and setup().

MonitorElement* HcalNZSMonitor::meFEDsizesNZS_
private

Definition at line 37 of file HcalNZSMonitor.h.

Referenced by processEvent(), reset(), and setup().

MonitorElement* HcalNZSMonitor::meFEDsizeVsLumi_
private

Definition at line 35 of file HcalNZSMonitor.h.

Referenced by processEvent(), reset(), and setup().

MonitorElement* HcalNZSMonitor::meFullCMSdataSize_
private

Definition at line 42 of file HcalNZSMonitor.h.

Referenced by processEvent(), reset(), and setup().

MonitorElement* HcalNZSMonitor::meIsUS_
private

Definition at line 39 of file HcalNZSMonitor.h.

Referenced by processEvent(), reset(), and setup().

MonitorElement* HcalNZSMonitor::meL1evtNumber_
private

Definition at line 38 of file HcalNZSMonitor.h.

Referenced by processEvent(), reset(), and setup().

MonitorElement* HcalNZSMonitor::meTrigFrac_
private

Definition at line 41 of file HcalNZSMonitor.h.

Referenced by processEvent(), reset(), and setup().

std::vector<int> HcalNZSMonitor::nAcc
private

Definition at line 49 of file HcalNZSMonitor.h.

Referenced by processEvent(), and setup().

int HcalNZSMonitor::nAcc_Total
private

Definition at line 48 of file HcalNZSMonitor.h.

Referenced by processEvent(), and setup().

int HcalNZSMonitor::nAndAcc
private

Definition at line 47 of file HcalNZSMonitor.h.

Referenced by processEvent(), and setup().

int HcalNZSMonitor::period_
private

Definition at line 32 of file HcalNZSMonitor.h.

Referenced by HcalNZSMonitor(), and processEvent().

edm::InputTag HcalNZSMonitor::rawdataLabel_
private

Definition at line 51 of file HcalNZSMonitor.h.

Referenced by analyze(), and HcalNZSMonitor().

std::vector<int> HcalNZSMonitor::selFEDs_
private

Definition at line 29 of file HcalNZSMonitor.h.

Referenced by processEvent(), and setup().

edm::EDGetTokenT<FEDRawDataCollection> HcalNZSMonitor::tok_raw_
private

Definition at line 53 of file HcalNZSMonitor.h.

Referenced by analyze(), and HcalNZSMonitor().

edm::EDGetTokenT<edm::TriggerResults> HcalNZSMonitor::tok_res_
private

Definition at line 54 of file HcalNZSMonitor.h.

Referenced by analyze(), and HcalNZSMonitor().

std::vector<std::string> HcalNZSMonitor::triggers_
private

Definition at line 31 of file HcalNZSMonitor.h.

Referenced by HcalNZSMonitor(), processEvent(), and setup().

uint64_t HcalNZSMonitor::UScount[32][15]
private

Definition at line 45 of file HcalNZSMonitor.h.