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