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 
10 
13 
15 
18 
19 #include <TTree.h>
20 #include <TFile.h>
21 #include <TH1D.h>
22 #include <TDirectory.h>
23 
24 class TrackerTopology;
25 
27 public:
30  explicit SiStripLAProfileBooker(const edm::ParameterSet& conf);
31 
32  ~SiStripLAProfileBooker() override;
33 
34  void beginRun(edm::Run const&, const edm::EventSetup& c) override;
35 
36  void endJob() override;
37 
38  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
39 
40  void getlayer(const DetId& detid, const TrackerTopology* tTopo, std::string& name, unsigned int& layerid);
41 
42 private:
43  typedef struct {
44  float thickness;
45  float pitch;
47  } detparameters;
48  typedef std::map<unsigned int, detparameters*> detparmap;
49  typedef std::map<unsigned int, MonitorElement*> histomap;
50 
59  uint8_t Amplitudes[100];
60 
62  TFile* hFile;
63 
64  TDirectory *Hit_Tree, *Track_Tree, *Event_Tree;
65 
68 
70 
75 
77 };
78 
79 #endif
Vector3DBase< float, LocalTag >
SiStripLAProfileBooker::Track_Tree
TDirectory * Track_Tree
Definition: SiStripLAProfileBooker.h:64
SiStripLAProfileBooker::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: SiStripLAProfileBooker.cc:262
SiStripLAProfileBooker::MagField
float MagField
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::ZGlobal
float ZGlobal
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::trajsize
int trajsize
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::YGlobal
float YGlobal
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::HitNr
int HitNr
Definition: SiStripLAProfileBooker.h:55
SiStripLAProfileBooker::SiStripLAProfileBooker
SiStripLAProfileBooker(const edm::ParameterSet &conf)
Definition: SiStripLAProfileBooker.cc:61
SiStripLAProfileBooker::hitcounter
int hitcounter
Definition: SiStripLAProfileBooker.h:55
TrackerGeometry.h
SiStripLAProfileBooker::histomap
std::map< unsigned int, MonitorElement * > histomap
Definition: SiStripLAProfileBooker.h:49
SiStripLAProfileBooker::EtaTrack
float EtaTrack
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::HitCharge
int HitCharge
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::SignCorrection
float SignCorrection
Definition: SiStripLAProfileBooker.h:53
edm::Run
Definition: Run.h:45
TrackerTopology
Definition: TrackerTopology.h:16
SiStripLAProfileBooker::chi2norm
float chi2norm
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::pt
float pt
Definition: SiStripLAProfileBooker.h:53
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
SiStripLAProfileBooker::detmap
detparmap detmap
Definition: SiStripLAProfileBooker.h:71
EDAnalyzer.h
SiStripLAProfileBooker::TrackCounter
int TrackCounter
Definition: SiStripLAProfileBooker.h:57
SiStripLAProfileBooker::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiStripLAProfileBooker.h:28
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
SiStripLAProfileBooker::beginRun
void beginRun(edm::Run const &, const edm::EventSetup &c) override
Definition: SiStripLAProfileBooker.cc:65
DetId
Definition: DetId.h:17
SiStripLAProfileBooker::size
int size
Definition: SiStripLAProfileBooker.h:55
SiStripLAProfileBooker::TanTrackAngleParallel
float TanTrackAngleParallel
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::dbe_
DQMStore * dbe_
Definition: SiStripLAProfileBooker.h:69
SiStripLAProfileBooker::PhiTrack
float PhiTrack
Definition: SiStripLAProfileBooker.h:53
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripLAProfileBooker::MonoStereo
int MonoStereo
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::EventTree
TTree * EventTree
Definition: SiStripLAProfileBooker.h:61
SiStripLAProfileBooker::TanTrackAngle
float TanTrackAngle
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::Momentum
float Momentum
Definition: SiStripLAProfileBooker.h:53
IdealMagneticFieldRecord.h
SiStripLAProfileBooker::HitPerTrack
int HitPerTrack
Definition: SiStripLAProfileBooker.h:55
SiStripLAProfileBooker::sumx
float sumx
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::Hit_Tree
TDirectory * Hit_Tree
Definition: SiStripLAProfileBooker.h:64
SiStripLAProfileBooker::EventCounter
int EventCounter
Definition: SiStripLAProfileBooker.h:57
SiStripLAProfileBooker::thick_detector
float thick_detector
Definition: SiStripLAProfileBooker.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripLAProfileBooker::HitsTree
TTree * HitsTree
Definition: SiStripLAProfileBooker.h:61
SiStripLAProfileBooker::RunNumber
int RunNumber
Definition: SiStripLAProfileBooker.h:51
edm::ParameterSet
Definition: ParameterSet.h:36
SiStripLAProfileBooker::detparameters
Definition: SiStripLAProfileBooker.h:43
SiStripLAProfileBooker::trackcollsize
int trackcollsize
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::bw_fw
int bw_fw
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::~SiStripLAProfileBooker
~SiStripLAProfileBooker() override
Definition: SiStripLAProfileBooker.cc:251
SiStripLAProfileBooker::Wheel
int Wheel
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::id_detector
int id_detector
Definition: SiStripLAProfileBooker.h:57
SiStripLAProfileBooker::ParticleCharge
int ParticleCharge
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::TrackTree
TTree * TrackTree
Definition: SiStripLAProfileBooker.h:61
SiStripLAProfileBooker::tracker
const TrackerGeometry * tracker
Definition: SiStripLAProfileBooker.h:76
SiStripLAProfileBooker::worse_double_hit
int worse_double_hit
Definition: SiStripLAProfileBooker.h:55
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
SiStripLAProfileBooker::barycenter
float barycenter
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::Type
int Type
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::Ext_Int
int Ext_Int
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::hit_std_dev
float hit_std_dev
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::summarydetmap
detparmap summarydetmap
Definition: SiStripLAProfileBooker.h:72
SiStripLAProfileBooker::hFile
TFile * hFile
Definition: SiStripLAProfileBooker.h:62
SiStripLAProfileBooker::hitcounter_2ndloop
int hitcounter_2ndloop
Definition: SiStripLAProfileBooker.h:55
SiStripLAProfileBooker::Event_Tree
TDirectory * Event_Tree
Definition: SiStripLAProfileBooker.h:64
DetId.h
SiStripLAProfileBooker::Layer
int Layer
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::ClSize
int ClSize
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::Amplitudes
uint8_t Amplitudes[100]
Definition: SiStripLAProfileBooker.h:59
SiStripLAProfileBooker::summaryhisto
histomap summaryhisto
Definition: SiStripLAProfileBooker.h:67
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
SiStripLAProfileBooker::pitch_detector
float pitch_detector
Definition: SiStripLAProfileBooker.h:58
SiStripLAProfileBooker::XGlobal
float XGlobal
Definition: SiStripLAProfileBooker.h:53
SiStripLAProfileBooker::conf_
edm::ParameterSet conf_
Definition: SiStripLAProfileBooker.h:73
SiStripLAProfileBooker::nstrip
int nstrip
Definition: SiStripLAProfileBooker.h:55
SiStripLAProfileBooker::histos
histomap histos
Definition: SiStripLAProfileBooker.h:66
ParameterSet.h
SiStripLAProfileBooker
Definition: SiStripLAProfileBooker.h:26
SiStripLAProfileBooker::getlayer
void getlayer(const DetId &detid, const TrackerTopology *tTopo, std::string &name, unsigned int &layerid)
Definition: SiStripLAProfileBooker.cc:717
SiStripLAProfileBooker::endJob
void endJob() override
Definition: SiStripLAProfileBooker.cc:749
SiStripLAProfileBooker::detparameters::magfield
LocalVector magfield
Definition: SiStripLAProfileBooker.h:46
edm::Event
Definition: Event.h:73
LocalVector.h
SiStripLAProfileBooker::detparameters::thickness
float thickness
Definition: SiStripLAProfileBooker.h:44
SiStripLAProfileBooker::eventcounter
int eventcounter
Definition: SiStripLAProfileBooker.h:55
SiStripLAProfileBooker::better_double_hit
int better_double_hit
Definition: SiStripLAProfileBooker.h:55
SiStripLAProfileBooker::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiStripLAProfileBooker.h:29
SiStripLAProfileBooker::treename_
std::string treename_
Definition: SiStripLAProfileBooker.h:74
SiStripLAProfileBooker::EventNumber
int EventNumber
Definition: SiStripLAProfileBooker.h:51
SiStripLAProfileBooker::detparameters::pitch
float pitch
Definition: SiStripLAProfileBooker.h:45
SiStripLAProfileBooker::detparmap
std::map< unsigned int, detparameters * > detparmap
Definition: SiStripLAProfileBooker.h:48
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
TrackerGeometry
Definition: TrackerGeometry.h:14