CMS 3D CMS Logo

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

#include <CSCTriggerPrimitivesReader.h>

Public Member Functions

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

Public Attributes

Int_t t_chamber
 
Int_t t_chambertype
 
Int_t t_endcap
 
Int_t t_Event
 
Int_t t_EventNumberAnalyzed
 
Int_t t_nStubs
 
Int_t t_nStubs_ME119
 
Int_t t_nStubs_ME11no911
 
Int_t t_nStubs_noMEpm11
 
Int_t t_nStubs_readout
 
Int_t t_ring
 
Int_t t_RUN
 
Int_t t_station
 

Detailed Description

Definition at line 45 of file CSCTriggerPrimitivesReader.h.

Member Function Documentation

◆ bookTree()

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

Definition at line 140 of file CSCTriggerPrimitivesReader.cc.

140  {
142  t = fs->make<TTree>(name.c_str(), name.c_str());
143 
144  t->Branch("t_EventNumberAnalyzed", &t_EventNumberAnalyzed, "t_EventNumberAnalyzed/I");
145  t->Branch("t_RUN", &t_RUN, "t_RUN/I");
146  t->Branch("t_Event", &t_Event, "t_Event/I");
147  t->Branch("t_nStubs", &t_nStubs, "t_nStubs/I");
148  t->Branch("t_nStubs_readout", &t_nStubs_readout, "t_nStubs_readout/I");
149  t->Branch("t_nStubs_ME119", &t_nStubs_ME119, "t_nStubs_ME119/I");
150  t->Branch("t_nStubs_ME11no911", &t_nStubs_ME11no911, "t_nStubs_ME11no911/I");
151  t->Branch("t_nStubs_noMEpm11", &t_nStubs_noMEpm11, "t_nStubs_noMEpm11/I");
152 
153  t->Branch("t_chamber", &t_chamber, "t_chamber/I");
154  t->Branch("t_ring", &t_ring, "t_ring/I");
155  t->Branch("t_endcap", &t_endcap, "t_endcap/I");
156  t->Branch("t_station", &t_station, "t_station/I");
157  t->Branch("t_chambertype", &t_chambertype, "t_chambertype/I");
158 
159  return t;
160 }

References TFileService::make(), Skims_PA_cff::name, and OrderedSet::t.

Referenced by CSCTriggerPrimitivesReader::CSCTriggerPrimitivesReader().

◆ init()

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

Definition at line 126 of file CSCTriggerPrimitivesReader.cc.

126  {
128  t_RUN = run;
129  t_Event = event;
130  t_nStubs = 0;
131  t_nStubs_readout = 0;
132 
133  t_chamber = -1;
134  t_ring = -1;
135  t_station = -1;
136  t_chambertype = -1;
137  t_endcap = -2;
138 }

References event(), and writedatasetfile::run.

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

Member Data Documentation

◆ t_chamber

Int_t TreePerStub::t_chamber

◆ t_chambertype

Int_t TreePerStub::t_chambertype

Definition at line 62 of file CSCTriggerPrimitivesReader.h.

◆ t_endcap

Int_t TreePerStub::t_endcap

◆ t_Event

Int_t TreePerStub::t_Event

Definition at line 51 of file CSCTriggerPrimitivesReader.h.

◆ t_EventNumberAnalyzed

Int_t TreePerStub::t_EventNumberAnalyzed

◆ t_nStubs

Int_t TreePerStub::t_nStubs

◆ t_nStubs_ME119

Int_t TreePerStub::t_nStubs_ME119

Definition at line 54 of file CSCTriggerPrimitivesReader.h.

◆ t_nStubs_ME11no911

Int_t TreePerStub::t_nStubs_ME11no911

Definition at line 55 of file CSCTriggerPrimitivesReader.h.

◆ t_nStubs_noMEpm11

Int_t TreePerStub::t_nStubs_noMEpm11

Definition at line 56 of file CSCTriggerPrimitivesReader.h.

◆ t_nStubs_readout

Int_t TreePerStub::t_nStubs_readout

◆ t_ring

Int_t TreePerStub::t_ring

◆ t_RUN

Int_t TreePerStub::t_RUN

Definition at line 50 of file CSCTriggerPrimitivesReader.h.

◆ t_station

Int_t TreePerStub::t_station
TreePerStub::t_ring
Int_t t_ring
Definition: CSCTriggerPrimitivesReader.h:59
TreePerStub::t_endcap
Int_t t_endcap
Definition: CSCTriggerPrimitivesReader.h:60
TreePerStub::t_chambertype
Int_t t_chambertype
Definition: CSCTriggerPrimitivesReader.h:62
TreePerStub::t_nStubs_noMEpm11
Int_t t_nStubs_noMEpm11
Definition: CSCTriggerPrimitivesReader.h:56
TreePerStub::t_nStubs_ME11no911
Int_t t_nStubs_ME11no911
Definition: CSCTriggerPrimitivesReader.h:55
TreePerStub::t_chamber
Int_t t_chamber
Definition: CSCTriggerPrimitivesReader.h:58
TreePerStub::t_station
Int_t t_station
Definition: CSCTriggerPrimitivesReader.h:61
TreePerStub::t_Event
Int_t t_Event
Definition: CSCTriggerPrimitivesReader.h:51
OrderedSet.t
t
Definition: OrderedSet.py:90
TreePerStub::t_nStubs
Int_t t_nStubs
Definition: CSCTriggerPrimitivesReader.h:52
edm::Service< TFileService >
TreePerStub::t_EventNumberAnalyzed
Int_t t_EventNumberAnalyzed
Definition: CSCTriggerPrimitivesReader.h:49
writedatasetfile.run
run
Definition: writedatasetfile.py:27
TreePerStub::t_nStubs_ME119
Int_t t_nStubs_ME119
Definition: CSCTriggerPrimitivesReader.h:54
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
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
TreePerStub::t_nStubs_readout
Int_t t_nStubs_readout
Definition: CSCTriggerPrimitivesReader.h:53
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
TreePerStub::t_RUN
Int_t t_RUN
Definition: CSCTriggerPrimitivesReader.h:50