CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TBeamConfiguration.cc
Go to the documentation of this file.
1  /*
2  * \class L1TBeamConfiguration
3  *
4  *
5  * Description: offline DQM class for acquiring beam configuration
6  *
7  * Implementation:
8  * <TODO: enter implementation details>
9  *
10  * \author: Pietro Vischia - LIP Lisbon pietro.vischia@gmail.com
11  *
12  * Changelog:
13  * 2012/11/2 12:01:01: Class
14  *
15  * Todo: see header file
16  *
17  * $Date: 2012/12/10 14:10:21 $
18  * $Revision: 1.2 $
19  *
20  */
21 
22 //
23 
24 // This class header
26 
27 // System include files
28 // --
29 
31 //#include "DQMServices/Core/interface/DQMStore.h"
32 //
33 //#include "DataFormats/Scalers/interface/LumiScalers.h"
34 //#include "DataFormats/Scalers/interface/Level1TriggerRates.h"
35 //#include "DataFormats/Scalers/interface/Level1TriggerScalers.h"
36 //
37 //#include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
38 //#include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerEvmReadoutRecord.h"
39 //
40 //#include "DataFormats/Common/interface/ConditionsInEdm.h" // Parameters associated to Run, LS and Event
41 //
42 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMenuFwd.h"
43 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMenu.h"
44 //#include "CondFormats/L1TObjects/interface/L1GtPrescaleFactors.h"
45 //#include "CondFormats/DataRecord/interface/L1GtTriggerMenuRcd.h"
46 //#include "CondFormats/DataRecord/interface/L1GtPrescaleFactorsAlgoTrigRcd.h"
47 //#include "CondFormats/L1TObjects/interface/L1GtMuonTemplate.h"
52 //
55 //#include "DQMOffline/L1Trigger/interface/L1TMenuHelper.h"
56 //
57 //#include "TList.h"
58 
59 using namespace std;
60 
61 //-------------------------------------------------------------------------------------
62 //-------------------------------------------------------------------------------------
63 
65 
66 
67  m_valid = false;
68 
69 }
70 
71 bool L1TBeamConfiguration::bxConfig(unsigned iBx){
72 
73  if(m_valid && beam1.size()>iBx && beam2.size()>iBx){
74 
75  if(beam1[iBx] && beam2[iBx]){return true;}
76  else {return false;}
77 
78  }else{
79  return false;
80  }
81 }
82 
bool bxConfig(unsigned iBx)