Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
EcalDigi
interface
EBSrFlag.h
Go to the documentation of this file.
1
// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 8; -*-
2
//$Id: EBSrFlag.h,v 1.2 2007/03/27 09:55:00 meridian Exp $
3
4
#ifndef EBSRFLAG_H
5
#define EBSRFLAG_H
6
7
#include "
DataFormats/EcalDetId/interface/EcalTrigTowerDetId.h
"
8
#include "
DataFormats/EcalDigi/interface/EcalSrFlag.h
"
9
#include "
FWCore/Utilities/interface/Exception.h
"
10
11
15
class
EBSrFlag
:
public
EcalSrFlag
{
16
public
:
17
typedef
EcalTrigTowerDetId
key_type
;
//key for edm::SortedCollection
18
19
public
:
22
EBSrFlag
() {};
23
28
EBSrFlag
(
const
EcalTrigTowerDetId
&
tt
,
const
int
&
flag
):
ttId_
(tt){
29
//SRP flag is coded on 3 bits:
30
if
(
flag<0 || flag>
0x7)
throw
cms::Exception
(
"InvalidValue"
,
"srp flag greater than 0x7 or negative."
);
31
flag_
= (
unsigned
char) flag;
32
}
33
37
const
EcalTrigTowerDetId
&
id
()
const
{
return
ttId_
;}
38
39
private
:
42
EcalTrigTowerDetId
ttId_
;
43
};
44
45
46
std::ostream&
operator<<
(std::ostream&
s
,
const
EBSrFlag
& digi);
47
48
#endif //EBSRFLAG_H not defined
flag
long int flag
Definition:
mlp_lapack.h:47
EcalSrFlag::flag_
unsigned char flag_
Definition:
EcalSrFlag.h:77
EBSrFlag::EBSrFlag
EBSrFlag()
Definition:
EBSrFlag.h:22
EcalSrFlag.h
EcalTrigTowerDetId
Definition:
EcalTrigTowerDetId.h:17
groupFilesInBlocks.tt
int tt
Definition:
groupFilesInBlocks.py:142
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
EBSrFlag::key_type
EcalTrigTowerDetId key_type
Definition:
EBSrFlag.h:17
EBSrFlag::ttId_
EcalTrigTowerDetId ttId_
Definition:
EBSrFlag.h:42
EBSrFlag::EBSrFlag
EBSrFlag(const EcalTrigTowerDetId &tt, const int &flag)
Definition:
EBSrFlag.h:28
Exception.h
edm::hlt::Exception
error
Definition:
HLTenums.h:24
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
EBSrFlag::id
const EcalTrigTowerDetId & id() const
Definition:
EBSrFlag.h:37
EBSrFlag
Definition:
EBSrFlag.h:15
EcalTrigTowerDetId.h
EcalSrFlag
Definition:
EcalSrFlag.h:11
Generated for CMSSW Reference Manual by
1.8.5