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

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

Definition at line 214 of file CSCTriggerPrimitivesReader.cc.

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

Referenced by CSCTriggerPrimitivesReader::CSCTriggerPrimitivesReader().

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 }
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
void MyStubComparison::init ( int  run,
int  event 
)

Definition at line 163 of file CSCTriggerPrimitivesReader.cc.

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().

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 }
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

Member Data Documentation

Int_t MyStubComparison::bend_data
Int_t MyStubComparison::bend_emul
Int_t MyStubComparison::bend_pretrig
Int_t MyStubComparison::bx_corr_emul
Int_t MyStubComparison::bx_data
Int_t MyStubComparison::bx_emul
Int_t MyStubComparison::bx_pretrig
Int_t MyStubComparison::chamber
Int_t MyStubComparison::chambertype
Float_t MyStubComparison::dphi_data

Definition at line 113 of file CSCTriggerPrimitivesReader.h.

Float_t MyStubComparison::dphi_emul

Definition at line 114 of file CSCTriggerPrimitivesReader.h.

Int_t MyStubComparison::endcap
Float_t MyStubComparison::eta_data
Float_t MyStubComparison::eta_emul
Bool_t MyStubComparison::firstfill
Int_t MyStubComparison::fullbx_data
Int_t MyStubComparison::fullbx_emul
Bool_t MyStubComparison::has_data
Bool_t MyStubComparison::has_emul
Int_t MyStubComparison::key_hs_data
Int_t MyStubComparison::key_hs_emul
Int_t MyStubComparison::key_hs_pretrig
Int_t MyStubComparison::key_WG_data
Int_t MyStubComparison::key_WG_emul
Int_t MyStubComparison::maxpattern_pretrig
Int_t MyStubComparison::maxquality_pretrig
Int_t MyStubComparison::nEvent

Definition at line 71 of file CSCTriggerPrimitivesReader.h.

Int_t MyStubComparison::nEvents
Int_t MyStubComparison::npretrig
Int_t MyStubComparison::nRUN

Definition at line 70 of file CSCTriggerPrimitivesReader.h.

Int_t MyStubComparison::nStub_data
Int_t MyStubComparison::nStub_emul
Int_t MyStubComparison::pattern_data
Int_t MyStubComparison::pattern_emul
Int_t MyStubComparison::pattern_pretrig
Float_t MyStubComparison::phi_data
Float_t MyStubComparison::phi_emul
Int_t MyStubComparison::quality_data
Int_t MyStubComparison::quality_emul
Int_t MyStubComparison::quality_pretrig
Int_t MyStubComparison::ring
Int_t MyStubComparison::station
Int_t MyStubComparison::totStubs_data
Int_t MyStubComparison::totStubs_emul
Int_t MyStubComparison::totStubs_emul_readout
Int_t MyStubComparison::trknmb_data
Int_t MyStubComparison::trknmb_emul
Bool_t MyStubComparison::WGcrossHS_data
Bool_t MyStubComparison::WGcrossHS_emul