CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DCCSRPBlock.h
Go to the documentation of this file.
1 #ifndef DCCSRPBLOCK_HH
2 #define DCCSRPBLOCK_HH
3 
4 
5 /*
6  *\ Class DCCSRPBlock
7  *
8  * Class responsible for SR flag unpacking.
9  *
10  * \file DCCSRPBlock.h
11  *
12  * $Date: 2012/08/06 21:51:35 $
13  * $Revision: 1.4 $
14  *
15  * \author N. Almeida
16  *
17 */
18 
19 
20 #include <iostream>
21 #include <memory>
22 #include <stdint.h>
23 #include <string>
24 #include <vector>
25 #include <map>
26 #include <utility>
27 
28 #include "DCCDataBlockPrototype.h"
29 
33 
34 
36 
37  public :
38 
40 
41  void display(std::ostream & o);
42 
43  int unpack(const uint64_t ** data, unsigned int * dwToEnd, unsigned int numbFlags = SRP_NUMBFLAGS);
44 
45  unsigned short srFlag(unsigned int feChannel){ return srFlags_[feChannel-1]; }
46 
47  protected :
48 
49  virtual void addSRFlagToCollection(){};
50 
51  virtual bool checkSrpIdAndNumbSRFlags(){ return true; };
52 
53  unsigned int srpId_ ;
54  unsigned int bx_ ;
55  unsigned int l1_ ;
56  unsigned int nSRFlags_ ;
57  unsigned int expNumbSrFlags_;
58 
59  unsigned short srFlags_[SRP_NUMBFLAGS];
60 
61 
62 
63 };
64 
65 
66 #endif
unsigned int srpId_
Definition: DCCSRPBlock.h:51
unsigned short srFlags_[SRP_NUMBFLAGS]
Definition: DCCSRPBlock.h:59
unsigned int expNumbSrFlags_
Definition: DCCSRPBlock.h:57
unsigned int l1_
Definition: DCCSRPBlock.h:55
virtual bool checkSrpIdAndNumbSRFlags()
Definition: DCCSRPBlock.h:51
virtual void addSRFlagToCollection()
Definition: DCCSRPBlock.h:49
unsigned short srFlag(unsigned int feChannel)
Definition: DCCSRPBlock.h:45
unsigned int bx_
Definition: DCCSRPBlock.h:54
DCCSRPBlock(DCCDataUnpacker *u, EcalElectronicsMapper *m, DCCEventBlock *e, bool unpack)
Definition: DCCSRPBlock.cc:6
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int unpack(const uint64_t **data, unsigned int *dwToEnd, unsigned int numbFlags=SRP_NUMBFLAGS)
Definition: DCCSRPBlock.cc:19
void display(std::ostream &o)
Definition: DCCSRPBlock.cc:97
unsigned int nSRFlags_
Definition: DCCSRPBlock.h:56