Alignment
CommonAlignmentMonitor
plugins
AlignmentStats.h
Go to the documentation of this file.
1
#ifndef CommonAlignmentMonitor_AlignmentStats_H
2
#define CommonAlignmentMonitor_AlignmentStats_H
3
4
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
5
#include "
FWCore/Framework/interface/EventPrincipal.h
"
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
10
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
11
#include "
FWCore/Utilities/interface/InputTag.h
"
12
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
13
#include "
DataFormats/TrackerCommon/interface/TrackerTopology.h
"
14
15
// #include <Riostream.h>
16
#include <fstream>
17
#include <string>
18
#include <vector>
19
#include <map>
20
21
#include "
Geometry/Records/interface/TrackerDigiGeometryRecord.h
"
22
23
#include "TFile.h"
24
#include "TTree.h"
25
26
//using namespace edm;
27
28
class
AlignmentStats
:
public
edm::EDAnalyzer
{
29
public
:
30
AlignmentStats
(
const
edm::ParameterSet
&iConfig);
31
~AlignmentStats
()
override
;
32
void
analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
&iSetup)
override
;
33
void
beginJob
()
override
;
34
void
endJob
()
override
;
35
36
private
:
38
edm::InputTag
src_
;
39
edm::InputTag
overlapAM_
;
40
bool
keepTrackStats_
;
41
bool
keepHitPopulation_
;
42
std::string
statsTreeName_
;
43
std::string
hitsTreeName_
;
44
uint32_t
prescale_
;
46
uint32_t
tmpPresc_
;
47
48
//Track stats
49
TFile *
treefile_
;
50
TTree *
outtree_
;
51
static
const
int
MAXTRKS_
= 200;
52
int
run_
,
event_
;
53
unsigned
int
ntracks
;
54
float
P
[
MAXTRKS_
],
Pt
[
MAXTRKS_
],
Eta
[
MAXTRKS_
],
Phi
[
MAXTRKS_
],
Chi2n
[
MAXTRKS_
];
55
int
Nhits
[
MAXTRKS_
][7];
//0=total, 1-6=Subdets
56
57
//Hit Population
58
typedef
std::map<uint32_t, uint32_t>
DetHitMap
;
59
DetHitMap
hitmap_
;
60
DetHitMap
overlapmap_
;
61
62
// edm::ESHandle<TrackerGeometry> trackerGeometry_;
63
const
TrackerGeometry
*
trackerGeometry_
;
64
const
TrackerTopology
*
trackerTopology_
;
65
};
66
67
#endif
AlignmentStats::trackerTopology_
const TrackerTopology * trackerTopology_
Definition:
AlignmentStats.h:64
MessageLogger.h
TrackerGeometry.h
ESHandle.h
AlignmentStats::hitmap_
DetHitMap hitmap_
Definition:
AlignmentStats.h:59
TrackerTopology
Definition:
TrackerTopology.h:16
AlignmentStats::prescale_
uint32_t prescale_
Definition:
AlignmentStats.h:44
AlignmentStats::Phi
float Phi[MAXTRKS_]
Definition:
AlignmentStats.h:54
AlignmentStats::overlapAM_
edm::InputTag overlapAM_
Definition:
AlignmentStats.h:39
EDAnalyzer.h
AlignmentStats::Chi2n
float Chi2n[MAXTRKS_]
Definition:
AlignmentStats.h:54
AlignmentStats::hitsTreeName_
std::string hitsTreeName_
Definition:
AlignmentStats.h:43
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
AlignmentStats::outtree_
TTree * outtree_
Definition:
AlignmentStats.h:50
AlignmentStats::statsTreeName_
std::string statsTreeName_
Definition:
AlignmentStats.h:42
AlignmentStats::MAXTRKS_
static const int MAXTRKS_
Definition:
AlignmentStats.h:51
TrackerTopology.h
AlignmentStats::beginJob
void beginJob() override
Definition:
AlignmentStats.cc:47
AlignmentStats::analyze
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
AlignmentStats.cc:80
EventPrincipal.h
AlignmentStats::keepTrackStats_
bool keepTrackStats_
Definition:
AlignmentStats.h:40
AlignmentStats::keepHitPopulation_
bool keepHitPopulation_
Definition:
AlignmentStats.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition:
ParameterSet.h:36
AlignmentStats::src_
edm::InputTag src_
Definition:
AlignmentStats.h:38
Event.h
AlignmentStats::ntracks
unsigned int ntracks
Definition:
AlignmentStats.h:53
iEvent
int iEvent
Definition:
GenABIO.cc:224
AlignmentStats::Nhits
int Nhits[MAXTRKS_][7]
Definition:
AlignmentStats.h:55
AlignmentStats::~AlignmentStats
~AlignmentStats() override
Definition:
AlignmentStats.cc:43
edm::EventSetup
Definition:
EventSetup.h:57
AlignmentStats::Eta
float Eta[MAXTRKS_]
Definition:
AlignmentStats.h:54
AlignmentStats::endJob
void endJob() override
Definition:
AlignmentStats.cc:254
InputTag.h
AlignmentStats::Pt
float Pt[MAXTRKS_]
Definition:
AlignmentStats.h:54
AlignmentStats::tmpPresc_
uint32_t tmpPresc_
Definition:
AlignmentStats.h:46
AlignmentStats::overlapmap_
DetHitMap overlapmap_
Definition:
AlignmentStats.h:60
AlignmentStats::treefile_
TFile * treefile_
Definition:
AlignmentStats.h:49
AlignmentStats::AlignmentStats
AlignmentStats(const edm::ParameterSet &iConfig)
Definition:
AlignmentStats.cc:28
AlignmentStats::DetHitMap
std::map< uint32_t, uint32_t > DetHitMap
Definition:
AlignmentStats.h:58
EventSetup.h
AlignmentStats::run_
int run_
Definition:
AlignmentStats.h:52
AlignmentStats::event_
int event_
Definition:
AlignmentStats.h:52
ParameterSet.h
AlignmentStats
Definition:
AlignmentStats.h:28
P
std::pair< OmniClusterRef, TrackingParticleRef > P
Definition:
BDHadronTrackMonitoringAnalyzer.cc:202
edm::Event
Definition:
Event.h:73
edm::InputTag
Definition:
InputTag.h:15
AlignmentStats::trackerGeometry_
const TrackerGeometry * trackerGeometry_
Definition:
AlignmentStats.h:63
TrackerGeometry
Definition:
TrackerGeometry.h:14
Generated for CMSSW Reference Manual by
1.8.16