CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
MyStubComparison Struct Reference

#include <CSCTriggerPrimitivesReader.h>

Public Member Functions

TTree * bookTree (TTree *t, const std::string &name="Stub_compare")
 
void init (int run, int event)
 

Public Attributes

Int_t bend_data
 
Int_t bend_emul
 
Int_t bend_pretrig
 
Int_t bx_corr_emul
 
Int_t bx_data
 
Int_t bx_emul
 
Int_t bx_pretrig
 
Int_t chamber
 
Int_t chambertype
 
Float_t dphi_data
 
Float_t dphi_emul
 
Int_t endcap
 
Float_t eta_data
 
Float_t eta_emul
 
Bool_t firstfill
 
Int_t fullbx_data
 
Int_t fullbx_emul
 
Bool_t has_data
 
Bool_t has_emul
 
Int_t key_hs_data
 
Int_t key_hs_emul
 
Int_t key_hs_pretrig
 
Int_t key_WG_data
 
Int_t key_WG_emul
 
Int_t maxpattern_pretrig
 
Int_t maxquality_pretrig
 
Int_t nEvent
 
Int_t nEvents
 
Int_t npretrig
 
Int_t nRUN
 
Int_t nStub_data
 
Int_t nStub_emul
 
Int_t pattern_data
 
Int_t pattern_emul
 
Int_t pattern_pretrig
 
Float_t phi_data
 
Float_t phi_emul
 
Int_t quality_data
 
Int_t quality_emul
 
Int_t quality_pretrig
 
Int_t ring
 
Int_t station
 
Int_t totStubs_data
 
Int_t totStubs_emul
 
Int_t totStubs_emul_readout
 
Int_t trknmb_data
 
Int_t trknmb_emul
 
Bool_t WGcrossHS_data
 
Bool_t WGcrossHS_emul
 

Detailed Description

Definition at line 68 of file CSCTriggerPrimitivesReader.h.

Member Function Documentation

◆ bookTree()

TTree * MyStubComparison::bookTree ( TTree *  t,
const std::string &  name = "Stub_compare" 
)

Definition at line 211 of file CSCTriggerPrimitivesReader.cc.

211  {
213  t = fs->make<TTree>(name.c_str(), name.c_str());
214 
215  t->Branch("nEvents", &nEvents);
216  t->Branch("nRUN", &nRUN);
217  t->Branch("nEvent", &nEvent);
218  t->Branch("firstfill", &firstfill);
219  t->Branch("totStubs_data", &totStubs_data);
220  t->Branch("totStubs_emul", &totStubs_emul);
221  t->Branch("totStubs_emul_readout", &totStubs_emul_readout);
222  t->Branch("nStub_data", &nStub_data);
223  t->Branch("nStub_emul", &nStub_emul);
224 
225  t->Branch("chamber", &chamber);
226  t->Branch("ring", &ring);
227  t->Branch("endcap", &endcap);
228  t->Branch("station", &station);
229  t->Branch("chambertype", &chambertype);
230  t->Branch("has_data", &has_data);
231  t->Branch("has_emul", &has_emul);
232  t->Branch("quality_data", &quality_data);
233  t->Branch("quality_emul", &quality_emul);
234  t->Branch("npretrig", &npretrig);
235  t->Branch("quality_pretrig", &quality_pretrig);
236  t->Branch("maxquality_pretrig", &maxquality_pretrig);
237  t->Branch("pattern_data", &pattern_data);
238  t->Branch("pattern_emul", &pattern_emul);
239  t->Branch("pattern_pretrig", &pattern_pretrig);
240  t->Branch("maxpattern_pretrig", &maxpattern_pretrig);
241  t->Branch("bend_data", &bend_data);
242  t->Branch("bx_data", &bx_data);
243  t->Branch("fullbx_data", &fullbx_data);
244  t->Branch("bend_emul", &bend_emul);
245  t->Branch("bx_emul", &bx_emul);
246  t->Branch("fullbx_emul", &fullbx_emul);
247  t->Branch("bend_pretrig", &bend_pretrig);
248  t->Branch("bx_pretrig", &bx_pretrig);
249  t->Branch("bx_corr_emul", &bx_corr_emul);
250  t->Branch("WGcrossHS_data", &WGcrossHS_data);
251  t->Branch("WGcrossHS_emul", &WGcrossHS_emul);
252  t->Branch("key_WG_data", &key_WG_data);
253  t->Branch("key_WG_emul", &key_WG_emul);
254  t->Branch("key_hs_data", &key_hs_data);
255  t->Branch("key_hs_emul", &key_hs_emul);
256  t->Branch("key_hs_pretrig", &key_hs_pretrig);
257  t->Branch("trknmb_data", &trknmb_data);
258  t->Branch("trknmb_emul", &trknmb_emul);
259  t->Branch("dphi_data", &dphi_data);
260  t->Branch("dphi_emul", &dphi_emul);
261  t->Branch("eta_data", &eta_data);
262  t->Branch("eta_emul", &eta_emul);
263  t->Branch("phi_data", &phi_data);
264  t->Branch("phi_emul", &phi_emul);
265 
266  return t;
267 }

References relativeConstraints::chamber, makeMuonMisalignmentScenario::endcap, TFileService::make(), Skims_PA_cff::name, nEvent, nEvents, relativeConstraints::ring, relativeConstraints::station, and submitPVValidationJobs::t.

Referenced by CSCTriggerPrimitivesReader::CSCTriggerPrimitivesReader().

◆ init()

void MyStubComparison::init ( int  run,
int  event 
)

Definition at line 160 of file CSCTriggerPrimitivesReader.cc.

160  {
161  nEvents = -1;
162  nRUN = run;
163  nEvent = event;
164  firstfill = false;
165  totStubs_data = -1;
166  totStubs_emul = -1;
168  nStub_data = 0;
169  nStub_emul = 0;
170  chamber = -1;
171  ring = -1;
172  endcap = -1;
173  station = -1;
174  chambertype = -1;
175  has_data = false;
176  has_emul = false;
177 
178  npretrig = 0;
179  quality_pretrig = -1;
180  maxquality_pretrig = -1;
181  bend_pretrig = -1;
182  bx_pretrig = -1;
183  key_hs_pretrig = -1;
184  pattern_pretrig = -1;
185  maxpattern_pretrig = -1;
186  quality_data = -1;
187  bend_data = -1;
188  bx_data = -1;
189  quality_emul = -1;
190  bend_emul = -1;
191  pattern_data = -1;
192  pattern_emul = -1;
193  bx_emul = -1;
194  bx_corr_emul = -1; //corrected
195  key_WG_data = -1;
196  key_WG_emul = -1;
197  key_hs_data = -1;
198  key_hs_emul = -1;
199  WGcrossHS_data = false;
200  WGcrossHS_emul = false;
201  trknmb_data = -1;
202  trknmb_emul = -1;
203  dphi_data = -1;
204  dphi_emul = -1;
205  eta_data = -1;
206  eta_emul = -1;
207  phi_data = -1;
208  phi_emul = -1;
209 }

References relativeConstraints::chamber, makeMuonMisalignmentScenario::endcap, edmPickEvents::event, nEvent, nEvents, relativeConstraints::ring, writedatasetfile::run, and relativeConstraints::station.

Referenced by CSCTriggerPrimitivesReader::compareALCTs(), CSCTriggerPrimitivesReader::compareCLCTs(), CSCTriggerPrimitivesReader::compareLCTs(), and CSCTriggerPrimitivesReader::compareMPCLCTs().

Member Data Documentation

◆ bend_data

Int_t MyStubComparison::bend_data

◆ bend_emul

Int_t MyStubComparison::bend_emul

◆ bend_pretrig

Int_t MyStubComparison::bend_pretrig

◆ bx_corr_emul

Int_t MyStubComparison::bx_corr_emul

◆ bx_data

Int_t MyStubComparison::bx_data

◆ bx_emul

Int_t MyStubComparison::bx_emul

◆ bx_pretrig

Int_t MyStubComparison::bx_pretrig

◆ chamber

Int_t MyStubComparison::chamber

◆ chambertype

Int_t MyStubComparison::chambertype

◆ dphi_data

Float_t MyStubComparison::dphi_data

Definition at line 116 of file CSCTriggerPrimitivesReader.h.

◆ dphi_emul

Float_t MyStubComparison::dphi_emul

Definition at line 117 of file CSCTriggerPrimitivesReader.h.

◆ endcap

Int_t MyStubComparison::endcap

◆ eta_data

Float_t MyStubComparison::eta_data

◆ eta_emul

Float_t MyStubComparison::eta_emul

◆ firstfill

Bool_t MyStubComparison::firstfill

◆ fullbx_data

Int_t MyStubComparison::fullbx_data

◆ fullbx_emul

Int_t MyStubComparison::fullbx_emul

◆ has_data

Bool_t MyStubComparison::has_data

◆ has_emul

Bool_t MyStubComparison::has_emul

◆ key_hs_data

Int_t MyStubComparison::key_hs_data

◆ key_hs_emul

Int_t MyStubComparison::key_hs_emul

◆ key_hs_pretrig

Int_t MyStubComparison::key_hs_pretrig

◆ key_WG_data

Int_t MyStubComparison::key_WG_data

◆ key_WG_emul

Int_t MyStubComparison::key_WG_emul

◆ maxpattern_pretrig

Int_t MyStubComparison::maxpattern_pretrig

◆ maxquality_pretrig

Int_t MyStubComparison::maxquality_pretrig

◆ nEvent

Int_t MyStubComparison::nEvent

Definition at line 74 of file CSCTriggerPrimitivesReader.h.

◆ nEvents

Int_t MyStubComparison::nEvents

◆ npretrig

Int_t MyStubComparison::npretrig

◆ nRUN

Int_t MyStubComparison::nRUN

Definition at line 73 of file CSCTriggerPrimitivesReader.h.

◆ nStub_data

Int_t MyStubComparison::nStub_data

◆ nStub_emul

Int_t MyStubComparison::nStub_emul

◆ pattern_data

Int_t MyStubComparison::pattern_data

◆ pattern_emul

Int_t MyStubComparison::pattern_emul

◆ pattern_pretrig

Int_t MyStubComparison::pattern_pretrig

◆ phi_data

Float_t MyStubComparison::phi_data

◆ phi_emul

Float_t MyStubComparison::phi_emul

◆ quality_data

Int_t MyStubComparison::quality_data

◆ quality_emul

Int_t MyStubComparison::quality_emul

◆ quality_pretrig

Int_t MyStubComparison::quality_pretrig

◆ ring

Int_t MyStubComparison::ring

◆ station

Int_t MyStubComparison::station

◆ totStubs_data

Int_t MyStubComparison::totStubs_data

◆ totStubs_emul

Int_t MyStubComparison::totStubs_emul

◆ totStubs_emul_readout

Int_t MyStubComparison::totStubs_emul_readout

◆ trknmb_data

Int_t MyStubComparison::trknmb_data

◆ trknmb_emul

Int_t MyStubComparison::trknmb_emul

◆ WGcrossHS_data

Bool_t MyStubComparison::WGcrossHS_data

◆ WGcrossHS_emul

Bool_t MyStubComparison::WGcrossHS_emul
MyStubComparison::quality_data
Int_t quality_data
Definition: CSCTriggerPrimitivesReader.h:89
MyStubComparison::has_emul
Bool_t has_emul
Definition: CSCTriggerPrimitivesReader.h:87
MyStubComparison::chamber
Int_t chamber
Definition: CSCTriggerPrimitivesReader.h:81
MyStubComparison::eta_data
Float_t eta_data
Definition: CSCTriggerPrimitivesReader.h:118
MyStubComparison::quality_emul
Int_t quality_emul
Definition: CSCTriggerPrimitivesReader.h:92
MyStubComparison::nEvents
Int_t nEvents
Definition: CSCTriggerPrimitivesReader.h:72
MyStubComparison::pattern_data
Int_t pattern_data
Definition: CSCTriggerPrimitivesReader.h:106
MyStubComparison::pattern_emul
Int_t pattern_emul
Definition: CSCTriggerPrimitivesReader.h:107
MyStubComparison::WGcrossHS_data
Bool_t WGcrossHS_data
Definition: CSCTriggerPrimitivesReader.h:108
MyStubComparison::bx_corr_emul
Int_t bx_corr_emul
Definition: CSCTriggerPrimitivesReader.h:95
MyStubComparison::bend_emul
Int_t bend_emul
Definition: CSCTriggerPrimitivesReader.h:93
MyStubComparison::totStubs_emul
Int_t totStubs_emul
Definition: CSCTriggerPrimitivesReader.h:77
MyStubComparison::bx_emul
Int_t bx_emul
Definition: CSCTriggerPrimitivesReader.h:94
MyStubComparison::nRUN
Int_t nRUN
Definition: CSCTriggerPrimitivesReader.h:73
MyStubComparison::nStub_emul
Int_t nStub_emul
Definition: CSCTriggerPrimitivesReader.h:80
MyStubComparison::key_WG_data
Int_t key_WG_data
Definition: CSCTriggerPrimitivesReader.h:110
MyStubComparison::key_hs_emul
Int_t key_hs_emul
Definition: CSCTriggerPrimitivesReader.h:113
MyStubComparison::maxpattern_pretrig
Int_t maxpattern_pretrig
Definition: CSCTriggerPrimitivesReader.h:103
MyStubComparison::npretrig
Int_t npretrig
Definition: CSCTriggerPrimitivesReader.h:96
MyStubComparison::bx_data
Int_t bx_data
Definition: CSCTriggerPrimitivesReader.h:91
MyStubComparison::nStub_data
Int_t nStub_data
Definition: CSCTriggerPrimitivesReader.h:79
MyStubComparison::key_WG_emul
Int_t key_WG_emul
Definition: CSCTriggerPrimitivesReader.h:111
MyStubComparison::dphi_emul
Float_t dphi_emul
Definition: CSCTriggerPrimitivesReader.h:117
MyStubComparison::totStubs_emul_readout
Int_t totStubs_emul_readout
Definition: CSCTriggerPrimitivesReader.h:78
MyStubComparison::dphi_data
Float_t dphi_data
Definition: CSCTriggerPrimitivesReader.h:116
MyStubComparison::bend_data
Int_t bend_data
Definition: CSCTriggerPrimitivesReader.h:90
MyStubComparison::firstfill
Bool_t firstfill
Definition: CSCTriggerPrimitivesReader.h:75
MyStubComparison::phi_data
Float_t phi_data
Definition: CSCTriggerPrimitivesReader.h:120
edmPickEvents.event
event
Definition: edmPickEvents.py:273
MyStubComparison::bend_pretrig
Int_t bend_pretrig
Definition: CSCTriggerPrimitivesReader.h:99
edm::Service< TFileService >
MyStubComparison::ring
Int_t ring
Definition: CSCTriggerPrimitivesReader.h:82
MyStubComparison::key_hs_pretrig
Int_t key_hs_pretrig
Definition: CSCTriggerPrimitivesReader.h:101
MyStubComparison::maxquality_pretrig
Int_t maxquality_pretrig
Definition: CSCTriggerPrimitivesReader.h:98
MyStubComparison::station
Int_t station
Definition: CSCTriggerPrimitivesReader.h:84
writedatasetfile.run
run
Definition: writedatasetfile.py:27
MyStubComparison::fullbx_data
Int_t fullbx_data
Definition: CSCTriggerPrimitivesReader.h:104
MyStubComparison::WGcrossHS_emul
Bool_t WGcrossHS_emul
Definition: CSCTriggerPrimitivesReader.h:109
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MyStubComparison::trknmb_data
Int_t trknmb_data
Definition: CSCTriggerPrimitivesReader.h:114
MyStubComparison::fullbx_emul
Int_t fullbx_emul
Definition: CSCTriggerPrimitivesReader.h:105
MyStubComparison::has_data
Bool_t has_data
Definition: CSCTriggerPrimitivesReader.h:86
MyStubComparison::endcap
Int_t endcap
Definition: CSCTriggerPrimitivesReader.h:83
MyStubComparison::key_hs_data
Int_t key_hs_data
Definition: CSCTriggerPrimitivesReader.h:112
MyStubComparison::nEvent
Int_t nEvent
Definition: CSCTriggerPrimitivesReader.h:74
MyStubComparison::trknmb_emul
Int_t trknmb_emul
Definition: CSCTriggerPrimitivesReader.h:115
MyStubComparison::chambertype
Int_t chambertype
Definition: CSCTriggerPrimitivesReader.h:85
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
MyStubComparison::phi_emul
Float_t phi_emul
Definition: CSCTriggerPrimitivesReader.h:121
MyStubComparison::pattern_pretrig
Int_t pattern_pretrig
Definition: CSCTriggerPrimitivesReader.h:102
MyStubComparison::eta_emul
Float_t eta_emul
Definition: CSCTriggerPrimitivesReader.h:119
MyStubComparison::bx_pretrig
Int_t bx_pretrig
Definition: CSCTriggerPrimitivesReader.h:100
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
MyStubComparison::totStubs_data
Int_t totStubs_data
Definition: CSCTriggerPrimitivesReader.h:76
MyStubComparison::quality_pretrig
Int_t quality_pretrig
Definition: CSCTriggerPrimitivesReader.h:97