EventFilter
CSCTFRawToDigi
interface
CSCTFAnalyzer.h
Go to the documentation of this file.
1
#ifndef CSCTFAnalyzer_h
2
#define CSCTFAnalyzer_h
3
4
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
5
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
#include "
FWCore/Utilities/interface/InputTag.h
"
10
11
//consumes
12
#include "
DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigiCollection.h
"
13
#include "
DataFormats/L1CSCTrackFinder/interface/L1CSCTrackCollection.h
"
14
#include "
DataFormats/L1CSCTrackFinder/interface/L1CSCStatusDigiCollection.h
"
15
#include "
DataFormats/L1CSCTrackFinder/interface/CSCTriggerContainer.h
"
16
#include "
DataFormats/L1CSCTrackFinder/interface/TrackStub.h
"
17
18
#include <TTree.h>
19
#include <TFile.h>
20
21
class
CSCTFAnalyzer
:
public
edm::EDAnalyzer
{
22
private
:
23
edm::InputTag
mbProducer
,
lctProducer
,
trackProducer
,
statusProducer
;
24
TTree *
tree
;
25
TFile *
file
;
26
int
dtPhi
[12][2];
27
28
edm::EDGetTokenT<L1CSCStatusDigiCollection>
L1CSCS_Tok
;
29
edm::EDGetTokenT<CSCTriggerContainer<csctf::TrackStub>
>
CSCTC_Tok
;
30
edm::EDGetTokenT<CSCCorrelatedLCTDigiCollection>
CSCCDC_Tok
;
31
edm::EDGetTokenT<L1CSCTrackCollection>
L1CST_Tok
;
32
33
public
:
34
void
analyze
(
const
edm::Event
&
e
,
const
edm::EventSetup
&
c
)
override
;
35
36
explicit
CSCTFAnalyzer
(
const
edm::ParameterSet
&conf);
37
~CSCTFAnalyzer
(
void
)
override
{
38
file
->cd();
39
tree
->Write();
40
file
->Close();
41
}
42
};
43
44
#endif
CSCTFAnalyzer::L1CST_Tok
edm::EDGetTokenT< L1CSCTrackCollection > L1CST_Tok
Definition:
CSCTFAnalyzer.h:31
CSCCorrelatedLCTDigiCollection.h
CSCTFAnalyzer::mbProducer
edm::InputTag mbProducer
Definition:
CSCTFAnalyzer.h:23
edm::EDGetTokenT< L1CSCStatusDigiCollection >
tree
Definition:
tree.py:1
EDAnalyzer.h
CSCTFAnalyzer
Definition:
CSCTFAnalyzer.h:21
L1CSCStatusDigiCollection.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
CSCTFAnalyzer::trackProducer
edm::InputTag trackProducer
Definition:
CSCTFAnalyzer.h:23
CSCTFAnalyzer::dtPhi
int dtPhi[12][2]
Definition:
CSCTFAnalyzer.h:26
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
L1CSCTrackCollection.h
CSCTFAnalyzer::statusProducer
edm::InputTag statusProducer
Definition:
CSCTFAnalyzer.h:23
CSCTriggerContainer.h
CSCTFAnalyzer::L1CSCS_Tok
edm::EDGetTokenT< L1CSCStatusDigiCollection > L1CSCS_Tok
Definition:
CSCTFAnalyzer.h:28
edm::EventSetup
Definition:
EventSetup.h:58
CSCTFAnalyzer::file
TFile * file
Definition:
CSCTFAnalyzer.h:25
CSCTFAnalyzer::CSCTFAnalyzer
CSCTFAnalyzer(const edm::ParameterSet &conf)
Definition:
CSCTFAnalyzer.cc:10
InputTag.h
CSCTFAnalyzer::CSCCDC_Tok
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > CSCCDC_Tok
Definition:
CSCTFAnalyzer.h:30
CSCTFAnalyzer::~CSCTFAnalyzer
~CSCTFAnalyzer(void) override
Definition:
CSCTFAnalyzer.h:37
EventSetup.h
ConsumesCollector.h
CSCTFAnalyzer::lctProducer
edm::InputTag lctProducer
Definition:
CSCTFAnalyzer.h:23
ParameterSet.h
CSCTFAnalyzer::tree
TTree * tree
Definition:
CSCTFAnalyzer.h:24
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:46
edm::Event
Definition:
Event.h:73
CSCTFAnalyzer::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition:
CSCTFAnalyzer.cc:49
TrackStub.h
edm::InputTag
Definition:
InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
CSCTFAnalyzer::CSCTC_Tok
edm::EDGetTokenT< CSCTriggerContainer< csctf::TrackStub > > CSCTC_Tok
Definition:
CSCTFAnalyzer.h:29
Generated for CMSSW Reference Manual by
1.8.16