CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1NtupleProducer.h
Go to the documentation of this file.
1 
2 //-------------------------------------------------
3 //
4 // \class L1NtupleProducer
9 // $Date: 2010/09/15 10:06:12 $
10 // $Revision: 1.15 $
11 //
12 // I. Mikulec HEPHY Vienna
13 //
14 // 06/01/2010 - A.C. Le Bihan :
15 // migration to L1Analysis classes...
16 //
17 //--------------------------------------------------
18 #ifndef L1_NTUPLEPRODUCER_H
19 #define L1_NTUPLEPRODUCER_H
20 
21 //---------------
22 // C++ Headers --
23 //---------------
24 
25 #include <memory>
26 #include <string>
27 
28 //----------------------
29 // Framework Headers --
30 //----------------------
31 
33 
41 
42 //------------------------------------
43 // Collaborating Class Declarations --
44 //------------------------------------
45 
56 
61 
64 
65 
76 
88 
89 class TFile;
90 class TTree;
91 
92 
94 
95 
96  public:
97 
98  // constructor
99  explicit L1NtupleProducer(const edm::ParameterSet&);
100  virtual ~L1NtupleProducer();
101 
102  // fill tree
103  virtual void analyze(const edm::Event&, const edm::EventSetup&);
104  virtual void beginJob(void);
105  virtual void endJob();
106 
107  private:
108 
109  void book();
110  void initCSCTF();
111  void analyzeEvent(const edm::Event& e);
112  void analyzeGenerator(const edm::Event& e);
113  void analyzeSimulation(const edm::Event& e);
114  void analyzeGMT(const edm::Event& e);
115  void analyzeGT(const edm::Event& e);
116  void analyzeGCT(const edm::Event& e);
117  void analyzeRCT(const edm::Event& e);
118  void analyzeDTTF(const edm::Event& e);
119  void analyzeCSCTF(const edm::Event& e, const edm::EventSetup&);
120  void analyzeECAL(const edm::Event& e, const edm::EventSetup&);
121  void analyzeHCAL(const edm::Event& e, const edm::EventSetup&);
122 
123  // Event info
124 
127 
129 
130  // Generator info
131 
135 
136  // Simulation info
137 
141 
142  // GMT data
143 
147 
148  // GT data
149 
154 
155  // GCT data
156 
171 
172  // RCT data
173 
178 
179  // DTTF data
180 
186 
187  // CSCTF data
188 
201  unsigned long long m_scalesCacheID ;
202  unsigned long long m_ptScaleCacheID ;
203  unsigned long long m_csctfptlutCacheID ;
204 
205  // Calo TP data
210  unsigned long long ecalScaleCacheID_;
211  unsigned long long hcalScaleCacheID_;
212 
213  //
215  TTree* tree_;
216 
217  bool physVal_;
218  bool verbose_;
219 
220  unsigned int maxGEN_;
221  unsigned int maxGT_;
222  unsigned int maxRCTREG_;
223  unsigned int maxDTPH_;
224  unsigned int maxDTTH_;
225  unsigned int maxDTTR_;
226  unsigned int maxRPC_;
227  unsigned int maxDTBX_;
228  unsigned int maxCSC_;
229  unsigned int maxGMT_;
230  unsigned int maxCSCTFTR_;
231  unsigned int maxCSCTFLCTSTR_;
232  unsigned int maxCSCTFLCTS_;
233  unsigned int maxCSCTFSPS_;
234 };
235 
236 
237 #endif
L1NtupleProducer(const edm::ParameterSet &)
void analyzeCSCTF(const edm::Event &e, const edm::EventSetup &)
edm::EDGetTokenT< L1GctHFRingEtSumsCollection > gctHFSumsSource_
void analyzeGenerator(const edm::Event &e)
edm::EDGetTokenT< L1MuDTChambThContainer > dttfThSource_
L1Analysis::L1AnalysisSimulationDataFormat * pL1simulation_data
void analyzeGCT(const edm::Event &e)
L1Analysis::L1AnalysisGCT * pL1gct
edm::EDGetTokenT< L1GctHtMissCollection > gctHTMSource_
void analyzeECAL(const edm::Event &e, const edm::EventSetup &)
edm::Service< TFileService > tfs_
void analyzeRCT(const edm::Event &e)
edm::EDGetTokenT< L1GctJetCandCollection > gctCenJetsSource_
unsigned long long m_csctfptlutCacheID
edm::EDGetTokenT< HcalTrigPrimDigiCollection > hcalSource_
unsigned int maxGMT_
edm::EDGetTokenT< L1CaloEmCollection > rctEmSource_
edm::ParameterSet csctfPtLutsPSet
unsigned int maxDTBX_
edm::EDGetTokenT< L1GctEmCandCollection > gctIsoEmSource_
L1Analysis::L1AnalysisCSCTFDataFormat * pL1csctf_data
virtual void endJob()
unsigned long long m_scalesCacheID
unsigned int maxCSCTFLCTSTR_
edm::EDGetTokenT< L1GctEmCandCollection > gctNonIsoEmSource_
edm::EDGetTokenT< L1MuGMTReadoutCollection > gmtSource_
edm::EDGetTokenT< EcalTrigPrimDigiCollection > ecalSource_
edm::EDGetTokenT< L1GctJetCandCollection > gctTauJetsSource_
void analyzeHCAL(const edm::Event &e, const edm::EventSetup &)
L1Analysis::L1AnalysisCaloTP * pL1calotp
virtual void analyze(const edm::Event &, const edm::EventSetup &)
L1Analysis::L1AnalysisEvent * pL1evt
unsigned int maxCSCTFTR_
void analyzeDTTF(const edm::Event &e)
const L1MuTriggerPtScale * tpts
edm::EDGetTokenT< L1GctEtMissCollection > gctETMSource_
edm::EDGetTokenT< reco::GenParticleCollection > generatorSource_
void analyzeGT(const edm::Event &e)
edm::EDGetTokenT< L1MuDTChambPhContainer > dttfPhSource_
unsigned int maxDTTH_
edm::EDGetTokenT< L1GctEtTotalCollection > gctETTSource_
edm::EDGetTokenT< L1CSCTrackCollection > csctfTrkSource_
L1Analysis::L1AnalysisGTDataFormat * pL1gt_data
unsigned int maxDTTR_
edm::EDGetTokenT< L1GctJetCandCollection > gctIsoTauJetsSource_
L1Analysis::L1AnalysisRCTDataFormat * pL1rct_data
CSCSectorReceiverLUT * srLUTs_[5][2]
L1Analysis::L1AnalysisGenerator * pL1generator
L1Analysis::L1AnalysisGMTDataFormat * pL1gmt_data
edm::EDGetTokenT< L1MuDTTrackContainer > dttfTrkSource_
edm::EDGetTokenT< L1GctJetCandCollection > gctForJetsSource_
void analyzeSimulation(const edm::Event &e)
L1Analysis::L1AnalysisSimulation * pL1simulation
edm::EDGetTokenT< L1CaloRegionCollection > rctRgnSource_
virtual void beginJob(void)
unsigned int maxCSCTFLCTS_
virtual ~L1NtupleProducer()
L1Analysis::L1AnalysisGT * pL1gt
L1Analysis::L1AnalysisRCT * pL1rct
CSCTFPtLUT * csctfPtLUTs_
L1Analysis::L1AnalysisGCTDataFormat * pL1gct_data
unsigned int maxGT_
L1Analysis::L1AnalysisDTTF * pL1dttf
void analyzeEvent(const edm::Event &e)
L1Analysis::L1AnalysisGMT * pL1gmt
edm::InputTag simulationSource_
L1Analysis::L1AnalysisCSCTF * pL1csctf
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtSource_
const L1MuTriggerScales * ts
edm::EDGetTokenT< L1GctHFBitCountsCollection > gctHFBitsSource_
unsigned int maxDTPH_
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > csctfLCTSource_
edm::EDGetTokenT< L1CSCStatusDigiCollection > csctfStatusSource_
L1Analysis::L1AnalysisEventDataFormat * pL1evt_data
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > gtEvmSource_
unsigned long long hcalScaleCacheID_
edm::EDGetTokenT< edm::TriggerResults > hltSource_
unsigned long long ecalScaleCacheID_
edm::EDGetTokenT< L1GctEtHadCollection > gctHTTSource_
unsigned int maxRCTREG_
L1Analysis::L1AnalysisDTTFDataFormat * pL1dttf_data
unsigned int maxCSCTFSPS_
L1Analysis::L1AnalysisCaloTPDataFormat * pL1calotp_data
L1Analysis::L1AnalysisGeneratorDataFormat * pL1generator_data
unsigned int maxCSC_
void analyzeGMT(const edm::Event &e)
unsigned int maxGEN_
edm::EDGetTokenT< CSCTriggerContainer< csctf::TrackStub > > csctfDTStubsSource_
unsigned long long m_ptScaleCacheID
unsigned int maxRPC_