CMS 3D CMS Logo

SiStripLAProfileBooker.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripLorentzAngle_SiStripLAProfileBooker_h
2 #define CalibTracker_SiStripLorentzAngle_SiStripLAProfileBooker_h
3 
4 #include <map>
5 
8 
11 
14 
17 
20 
22 
25 
26 #include <TTree.h>
27 #include <TFile.h>
28 #include <TH1D.h>
29 #include <TDirectory.h>
30 
31 class TrackerTopology;
32 
34 public:
37  explicit SiStripLAProfileBooker(const edm::ParameterSet& conf);
38 
39  ~SiStripLAProfileBooker() override;
40 
41  void beginRun(edm::Run const&, const edm::EventSetup& c) override;
42 
43  void endJob() override;
44 
45  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
46 
47  void getlayer(const DetId& detid, const TrackerTopology* tTopo, std::string& name, unsigned int& layerid);
48 
49 private:
50  typedef struct {
51  float thickness;
52  float pitch;
54  } detparameters;
55  typedef std::map<unsigned int, detparameters*> detparmap;
56  typedef std::map<unsigned int, MonitorElement*> histomap;
57 
66  uint8_t Amplitudes[100];
67 
69  TFile* hFile;
70 
71  TDirectory *Hit_Tree, *Track_Tree, *Event_Tree;
72 
75 
77 
82 
83  const TrackerGeometry* tkGeom_ = nullptr;
88 };
89 
90 #endif
Vector3DBase< float, LocalTag >
SiStripLAProfileBooker::Track_Tree
TDirectory * Track_Tree
Definition: SiStripLAProfileBooker.h:71
SiStripLAProfileBooker::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: SiStripLAProfileBooker.cc:251
SiStripLAProfileBooker::MagField
float MagField
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::ZGlobal
float ZGlobal
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::trajsize
int trajsize
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::YGlobal
float YGlobal
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::HitNr
int HitNr
Definition: SiStripLAProfileBooker.h:62
SiStripLAProfileBooker::SiStripLAProfileBooker
SiStripLAProfileBooker(const edm::ParameterSet &conf)
Definition: SiStripLAProfileBooker.cc:55
SiStripLAProfileBooker::hitcounter
int hitcounter
Definition: SiStripLAProfileBooker.h:62
TrackerGeometry.h
SiStripLAProfileBooker::histomap
std::map< unsigned int, MonitorElement * > histomap
Definition: SiStripLAProfileBooker.h:56
SiStripLAProfileBooker::EtaTrack
float EtaTrack
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::HitCharge
int HitCharge
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::SignCorrection
float SignCorrection
Definition: SiStripLAProfileBooker.h:60
edm::Run
Definition: Run.h:45
TrackerTopology
Definition: TrackerTopology.h:16
SiStripLAProfileBooker::chi2norm
float chi2norm
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::pt
float pt
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::tkGeom_
const TrackerGeometry * tkGeom_
Definition: SiStripLAProfileBooker.h:83
DQMStore.h
SiStripLAProfileBooker::magFieldToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: SiStripLAProfileBooker.h:86
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
SiStripLAProfileBooker::detmap
detparmap detmap
Definition: SiStripLAProfileBooker.h:78
EDAnalyzer.h
SiStripLAProfileBooker::TrackCounter
int TrackCounter
Definition: SiStripLAProfileBooker.h:64
SiStripLAProfileBooker::detCablingToken_
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
Definition: SiStripLAProfileBooker.h:87
SiStripLAProfileBooker::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiStripLAProfileBooker.h:35
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
SiStripLAProfileBooker::beginRun
void beginRun(edm::Run const &, const edm::EventSetup &c) override
Definition: SiStripLAProfileBooker.cc:66
DetId
Definition: DetId.h:17
TrackerTopology.h
SiStripLAProfileBooker::size
int size
Definition: SiStripLAProfileBooker.h:62
SiStripLAProfileBooker::TanTrackAngleParallel
float TanTrackAngleParallel
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::dbe_
DQMStore * dbe_
Definition: SiStripLAProfileBooker.h:76
SiStripDetCabling.h
SiStripLAProfileBooker::PhiTrack
float PhiTrack
Definition: SiStripLAProfileBooker.h:60
TrackerTopologyRcd.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripLAProfileBooker::MonoStereo
int MonoStereo
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::EventTree
TTree * EventTree
Definition: SiStripLAProfileBooker.h:68
SiStripLAProfileBooker::TanTrackAngle
float TanTrackAngle
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripLAProfileBooker.h:84
SiStripLAProfileBooker::Momentum
float Momentum
Definition: SiStripLAProfileBooker.h:60
IdealMagneticFieldRecord.h
SiStripLAProfileBooker::HitPerTrack
int HitPerTrack
Definition: SiStripLAProfileBooker.h:62
SiStripLAProfileBooker::sumx
float sumx
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::Hit_Tree
TDirectory * Hit_Tree
Definition: SiStripLAProfileBooker.h:71
SiStripLAProfileBooker::EventCounter
int EventCounter
Definition: SiStripLAProfileBooker.h:64
SiStripLAProfileBooker::thick_detector
float thick_detector
Definition: SiStripLAProfileBooker.h:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripLAProfileBooker::HitsTree
TTree * HitsTree
Definition: SiStripLAProfileBooker.h:68
TrackerDigiGeometryRecord.h
SiStripLAProfileBooker::RunNumber
int RunNumber
Definition: SiStripLAProfileBooker.h:58
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripLAProfileBooker::detparameters
Definition: SiStripLAProfileBooker.h:50
SiStripLAProfileBooker::trackcollsize
int trackcollsize
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::bw_fw
int bw_fw
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::~SiStripLAProfileBooker
~SiStripLAProfileBooker() override
Definition: SiStripLAProfileBooker.cc:240
SiStripLAProfileBooker::Wheel
int Wheel
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::id_detector
int id_detector
Definition: SiStripLAProfileBooker.h:64
SiStripLAProfileBooker::ParticleCharge
int ParticleCharge
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::TrackTree
TTree * TrackTree
Definition: SiStripLAProfileBooker.h:68
SiStripLAProfileBooker::worse_double_hit
int worse_double_hit
Definition: SiStripLAProfileBooker.h:62
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:58
SiStripLAProfileBooker::tkGeomToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
Definition: SiStripLAProfileBooker.h:85
SiStripLAProfileBooker::barycenter
float barycenter
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::Type
int Type
Definition: SiStripLAProfileBooker.h:58
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
SiStripLAProfileBooker::Ext_Int
int Ext_Int
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::hit_std_dev
float hit_std_dev
Definition: SiStripLAProfileBooker.h:60
SiStripLAProfileBooker::summarydetmap
detparmap summarydetmap
Definition: SiStripLAProfileBooker.h:79
SiStripLAProfileBooker::hFile
TFile * hFile
Definition: SiStripLAProfileBooker.h:69
SiStripLAProfileBooker::hitcounter_2ndloop
int hitcounter_2ndloop
Definition: SiStripLAProfileBooker.h:62
SiStripLAProfileBooker::Event_Tree
TDirectory * Event_Tree
Definition: SiStripLAProfileBooker.h:71
DetId.h
SiStripLAProfileBooker::Layer
int Layer
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::ClSize
int ClSize
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::Amplitudes
uint8_t Amplitudes[100]
Definition: SiStripLAProfileBooker.h:66
SiStripLAProfileBooker::summaryhisto
histomap summaryhisto
Definition: SiStripLAProfileBooker.h:74
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
SiStripLAProfileBooker::pitch_detector
float pitch_detector
Definition: SiStripLAProfileBooker.h:65
SiStripLAProfileBooker::XGlobal
float XGlobal
Definition: SiStripLAProfileBooker.h:60
SiStripDetCablingRcd.h
SiStripLAProfileBooker::conf_
edm::ParameterSet conf_
Definition: SiStripLAProfileBooker.h:80
SiStripLAProfileBooker::nstrip
int nstrip
Definition: SiStripLAProfileBooker.h:62
SiStripLAProfileBooker::histos
histomap histos
Definition: SiStripLAProfileBooker.h:73
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
SiStripLAProfileBooker
Definition: SiStripLAProfileBooker.h:33
SiStripLAProfileBooker::getlayer
void getlayer(const DetId &detid, const TrackerTopology *tTopo, std::string &name, unsigned int &layerid)
Definition: SiStripLAProfileBooker.cc:703
SiStripLAProfileBooker::endJob
void endJob() override
Definition: SiStripLAProfileBooker.cc:735
SiStripLAProfileBooker::detparameters::magfield
LocalVector magfield
Definition: SiStripLAProfileBooker.h:53
edm::Event
Definition: Event.h:73
LocalVector.h
SiStripLAProfileBooker::detparameters::thickness
float thickness
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::eventcounter
int eventcounter
Definition: SiStripLAProfileBooker.h:62
SiStripLAProfileBooker::better_double_hit
int better_double_hit
Definition: SiStripLAProfileBooker.h:62
SiStripLAProfileBooker::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiStripLAProfileBooker.h:36
SiStripLAProfileBooker::treename_
std::string treename_
Definition: SiStripLAProfileBooker.h:81
SiStripLAProfileBooker::EventNumber
int EventNumber
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::detparameters::pitch
float pitch
Definition: SiStripLAProfileBooker.h:52
SiStripLAProfileBooker::detparmap
std::map< unsigned int, detparameters * > detparmap
Definition: SiStripLAProfileBooker.h:55
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
TrackerGeometry
Definition: TrackerGeometry.h:14