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

Member Function Documentation

◆ bookTree()

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

Definition at line 137 of file CSCTriggerPrimitivesReader.cc.

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

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

Referenced by CSCTriggerPrimitivesReader::CSCTriggerPrimitivesReader().

◆ init()

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

Definition at line 123 of file CSCTriggerPrimitivesReader.cc.

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

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

◆ t_endcap

Int_t TreePerStub::t_endcap

◆ t_Event

Int_t TreePerStub::t_Event

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

◆ t_nStubs_ME11no911

Int_t TreePerStub::t_nStubs_ME11no911

Definition at line 58 of file CSCTriggerPrimitivesReader.h.

◆ t_nStubs_noMEpm11

Int_t TreePerStub::t_nStubs_noMEpm11

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

◆ t_station

Int_t TreePerStub::t_station
TreePerStub::t_ring
Int_t t_ring
Definition: CSCTriggerPrimitivesReader.h:62
TreePerStub::t_endcap
Int_t t_endcap
Definition: CSCTriggerPrimitivesReader.h:63
TreePerStub::t_chambertype
Int_t t_chambertype
Definition: CSCTriggerPrimitivesReader.h:65
TreePerStub::t_nStubs_noMEpm11
Int_t t_nStubs_noMEpm11
Definition: CSCTriggerPrimitivesReader.h:59
TreePerStub::t_nStubs_ME11no911
Int_t t_nStubs_ME11no911
Definition: CSCTriggerPrimitivesReader.h:58
TreePerStub::t_chamber
Int_t t_chamber
Definition: CSCTriggerPrimitivesReader.h:61
TreePerStub::t_station
Int_t t_station
Definition: CSCTriggerPrimitivesReader.h:64
TreePerStub::t_Event
Int_t t_Event
Definition: CSCTriggerPrimitivesReader.h:54
TreePerStub::t_nStubs
Int_t t_nStubs
Definition: CSCTriggerPrimitivesReader.h:55
edmPickEvents.event
event
Definition: edmPickEvents.py:273
edm::Service< TFileService >
TreePerStub::t_EventNumberAnalyzed
Int_t t_EventNumberAnalyzed
Definition: CSCTriggerPrimitivesReader.h:52
writedatasetfile.run
run
Definition: writedatasetfile.py:27
TreePerStub::t_nStubs_ME119
Int_t t_nStubs_ME119
Definition: CSCTriggerPrimitivesReader.h:57
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
TreePerStub::t_nStubs_readout
Int_t t_nStubs_readout
Definition: CSCTriggerPrimitivesReader.h:56
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:53