Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:57

0001 //-------------------------------------------------
0002 //
0003 //   Class: DTBtiTrig
0004 //
0005 //   Description: BTI Trigger Data
0006 //
0007 //
0008 //   Author List:
0009 //   C. Grandi
0010 //   Modifications:
0011 //
0012 //
0013 //--------------------------------------------------
0014 
0015 //#include "Utilities/Configuration/interface/Architecture.h"
0016 
0017 //-----------------------
0018 // This Class's Header --
0019 //-----------------------
0020 #include "L1Trigger/DTBti/interface/DTBtiChip.h"
0021 #include "L1Trigger/DTBti/interface/DTBtiTrig.h"
0022 
0023 //-------------------------------
0024 // Collaborating Class Headers --
0025 //-------------------------------
0026 #include <DataFormats/DTDigi/interface/DTDigiCollection.h>
0027 #include "L1Trigger/DTBti/interface/DTBtiChip.h"
0028 //---------------
0029 // C++ Headers --
0030 //---------------
0031 
0032 //----------------
0033 // Constructors --
0034 //----------------
0035 DTBtiTrig::DTBtiTrig() {
0036   // reserve the appropriate amount of space for vectors
0037   _digi.reserve(4);
0038   clear();
0039 }
0040 
0041 DTBtiTrig::DTBtiTrig(DTBtiChip* tparent, int step) : _tparent(tparent) {
0042   // reserve the appropriate amount of space for vectors
0043   _digi.reserve(4);
0044   clear();
0045 
0046   // data part of the trigger
0047   _data.setStep(step);
0048   _data.setParent(tparent->id());
0049 }
0050 
0051 DTBtiTrig::DTBtiTrig(DTBtiChip* tparent, int code, int K, int X, int step, int eq) : _tparent(tparent) {
0052   // reserve the appropriate amount of space for vectors
0053   _digi.reserve(4);
0054 
0055   // data part of the trigger
0056   _data.setStep(step);
0057   _data.setParent(tparent->id());
0058   _data.setCode(code);
0059   _data.setK(K);
0060   _data.setX(X);
0061   _data.setEq(eq);
0062 }
0063 
0064 DTBtiTrig::DTBtiTrig(DTBtiChip* tparent, int code, int K, int X, int step, int eq, int str, float* Keq)
0065     : _tparent(tparent) {
0066   // reserve the appropriate amount of space for vectors
0067   _digi.reserve(4);
0068 
0069   // data part of the trigger
0070   _data.setStep(step);
0071   _data.setParent(tparent->id());
0072   _data.setCode(code);
0073   _data.setK(K);
0074   _data.setX(X);
0075   _data.setEq(eq);
0076   _data.setStrobe(str);
0077   _data.setKeq(0, Keq[0]);
0078   _data.setKeq(1, Keq[1]);
0079   _data.setKeq(2, Keq[2]);
0080   _data.setKeq(3, Keq[3]);
0081   _data.setKeq(4, Keq[4]);
0082   _data.setKeq(5, Keq[5]);
0083 }
0084 
0085 DTBtiTrig::DTBtiTrig(DTBtiChip* parent, DTBtiTrigData data) : _tparent(parent), _data(data) {
0086   // reserve the appropriate amount of space for vectors
0087   _digi.reserve(4);
0088 }
0089 
0090 //--------------
0091 // Destructor --
0092 //--------------
0093 DTBtiTrig::~DTBtiTrig() {}