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 65 of file CSCTriggerPrimitivesReader.h.

Member Function Documentation

◆ bookTree()

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

Definition at line 214 of file CSCTriggerPrimitivesReader.cc.

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

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

Referenced by CSCTriggerPrimitivesReader::CSCTriggerPrimitivesReader().

◆ init()

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

Definition at line 163 of file CSCTriggerPrimitivesReader.cc.

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

References relativeConstraints::chamber, makeMuonMisalignmentScenario::endcap, 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 113 of file CSCTriggerPrimitivesReader.h.

◆ dphi_emul

Float_t MyStubComparison::dphi_emul

Definition at line 114 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 71 of file CSCTriggerPrimitivesReader.h.

◆ nEvents

Int_t MyStubComparison::nEvents

◆ npretrig

Int_t MyStubComparison::npretrig

◆ nRUN

Int_t MyStubComparison::nRUN

Definition at line 70 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:86
MyStubComparison::has_emul
Bool_t has_emul
Definition: CSCTriggerPrimitivesReader.h:84
MyStubComparison::chamber
Int_t chamber
Definition: CSCTriggerPrimitivesReader.h:78
MyStubComparison::eta_data
Float_t eta_data
Definition: CSCTriggerPrimitivesReader.h:115
MyStubComparison::quality_emul
Int_t quality_emul
Definition: CSCTriggerPrimitivesReader.h:89
MyStubComparison::nEvents
Int_t nEvents
Definition: CSCTriggerPrimitivesReader.h:69
MyStubComparison::pattern_data
Int_t pattern_data
Definition: CSCTriggerPrimitivesReader.h:103
MyStubComparison::pattern_emul
Int_t pattern_emul
Definition: CSCTriggerPrimitivesReader.h:104
MyStubComparison::WGcrossHS_data
Bool_t WGcrossHS_data
Definition: CSCTriggerPrimitivesReader.h:105
MyStubComparison::bx_corr_emul
Int_t bx_corr_emul
Definition: CSCTriggerPrimitivesReader.h:92
MyStubComparison::bend_emul
Int_t bend_emul
Definition: CSCTriggerPrimitivesReader.h:90
MyStubComparison::totStubs_emul
Int_t totStubs_emul
Definition: CSCTriggerPrimitivesReader.h:74
MyStubComparison::bx_emul
Int_t bx_emul
Definition: CSCTriggerPrimitivesReader.h:91
MyStubComparison::nRUN
Int_t nRUN
Definition: CSCTriggerPrimitivesReader.h:70
MyStubComparison::nStub_emul
Int_t nStub_emul
Definition: CSCTriggerPrimitivesReader.h:77
MyStubComparison::key_WG_data
Int_t key_WG_data
Definition: CSCTriggerPrimitivesReader.h:107
MyStubComparison::key_hs_emul
Int_t key_hs_emul
Definition: CSCTriggerPrimitivesReader.h:110
MyStubComparison::maxpattern_pretrig
Int_t maxpattern_pretrig
Definition: CSCTriggerPrimitivesReader.h:100
OrderedSet.t
t
Definition: OrderedSet.py:90
MyStubComparison::npretrig
Int_t npretrig
Definition: CSCTriggerPrimitivesReader.h:93
MyStubComparison::bx_data
Int_t bx_data
Definition: CSCTriggerPrimitivesReader.h:88
MyStubComparison::nStub_data
Int_t nStub_data
Definition: CSCTriggerPrimitivesReader.h:76
MyStubComparison::key_WG_emul
Int_t key_WG_emul
Definition: CSCTriggerPrimitivesReader.h:108
MyStubComparison::dphi_emul
Float_t dphi_emul
Definition: CSCTriggerPrimitivesReader.h:114
MyStubComparison::totStubs_emul_readout
Int_t totStubs_emul_readout
Definition: CSCTriggerPrimitivesReader.h:75
MyStubComparison::dphi_data
Float_t dphi_data
Definition: CSCTriggerPrimitivesReader.h:113
MyStubComparison::bend_data
Int_t bend_data
Definition: CSCTriggerPrimitivesReader.h:87
MyStubComparison::firstfill
Bool_t firstfill
Definition: CSCTriggerPrimitivesReader.h:72
MyStubComparison::phi_data
Float_t phi_data
Definition: CSCTriggerPrimitivesReader.h:117
MyStubComparison::bend_pretrig
Int_t bend_pretrig
Definition: CSCTriggerPrimitivesReader.h:96
edm::Service< TFileService >
MyStubComparison::ring
Int_t ring
Definition: CSCTriggerPrimitivesReader.h:79
MyStubComparison::key_hs_pretrig
Int_t key_hs_pretrig
Definition: CSCTriggerPrimitivesReader.h:98
MyStubComparison::maxquality_pretrig
Int_t maxquality_pretrig
Definition: CSCTriggerPrimitivesReader.h:95
MyStubComparison::station
Int_t station
Definition: CSCTriggerPrimitivesReader.h:81
writedatasetfile.run
run
Definition: writedatasetfile.py:27
MyStubComparison::fullbx_data
Int_t fullbx_data
Definition: CSCTriggerPrimitivesReader.h:101
MyStubComparison::WGcrossHS_emul
Bool_t WGcrossHS_emul
Definition: CSCTriggerPrimitivesReader.h:106
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MyStubComparison::trknmb_data
Int_t trknmb_data
Definition: CSCTriggerPrimitivesReader.h:111
MyStubComparison::fullbx_emul
Int_t fullbx_emul
Definition: CSCTriggerPrimitivesReader.h:102
MyStubComparison::has_data
Bool_t has_data
Definition: CSCTriggerPrimitivesReader.h:83
MyStubComparison::endcap
Int_t endcap
Definition: CSCTriggerPrimitivesReader.h:80
MyStubComparison::key_hs_data
Int_t key_hs_data
Definition: CSCTriggerPrimitivesReader.h:109
MyStubComparison::nEvent
Int_t nEvent
Definition: CSCTriggerPrimitivesReader.h:71
MyStubComparison::trknmb_emul
Int_t trknmb_emul
Definition: CSCTriggerPrimitivesReader.h:112
MyStubComparison::chambertype
Int_t chambertype
Definition: CSCTriggerPrimitivesReader.h:82
MyStubComparison::phi_emul
Float_t phi_emul
Definition: CSCTriggerPrimitivesReader.h:118
event
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of "!*" before the partial wildcard feature was incorporated). The per-event "cost" of each negative criterion with multiple relevant triggers is about the same as ! *was in the past
MyStubComparison::pattern_pretrig
Int_t pattern_pretrig
Definition: CSCTriggerPrimitivesReader.h:99
MyStubComparison::eta_emul
Float_t eta_emul
Definition: CSCTriggerPrimitivesReader.h:116
MyStubComparison::bx_pretrig
Int_t bx_pretrig
Definition: CSCTriggerPrimitivesReader.h:97
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:73
MyStubComparison::quality_pretrig
Int_t quality_pretrig
Definition: CSCTriggerPrimitivesReader.h:94