test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
3
#ifndef EBSRFLAG_H
4
#define EBSRFLAG_H
5
6
#include "
DataFormats/EcalDetId/interface/EcalTrigTowerDetId.h
"
7
#include "
DataFormats/EcalDigi/interface/EcalSrFlag.h
"
8
#include "
FWCore/Utilities/interface/Exception.h
"
9
10
14
class
EBSrFlag
:
public
EcalSrFlag
{
15
public
:
16
typedef
EcalTrigTowerDetId
key_type
;
//key for edm::SortedCollection
17
18
public
:
21
EBSrFlag
() {};
22
27
EBSrFlag
(
const
EcalTrigTowerDetId
&
tt
,
const
int
& flag):
ttId_
(tt){
28
//SRP flag is coded on 3 bits:
29
if
(flag<0 || flag>0x7)
throw
cms::Exception
(
"InvalidValue"
,
"srp flag greater than 0x7 or negative."
);
30
flag_
= (
unsigned
char
) flag;
31
}
32
36
const
EcalTrigTowerDetId
&
id
()
const
{
return
ttId_
;}
37
38
private
:
41
EcalTrigTowerDetId
ttId_
;
42
};
43
44
45
std::ostream&
operator<<
(std::ostream&
s
,
const
EBSrFlag
& digi);
46
47
#endif //EBSRFLAG_H not defined
EcalSrFlag::flag_
unsigned char flag_
Definition:
EcalSrFlag.h:76
Exception
Definition:
hltDiff.cc:290
EBSrFlag::EBSrFlag
EBSrFlag()
Definition:
EBSrFlag.h:21
EcalSrFlag.h
EcalTrigTowerDetId
Definition:
EcalTrigTowerDetId.h:16
hitfit::char
char
Definition:
Lepjets_Event_Jet.cc:254
groupFilesInBlocks.tt
int tt
Definition:
groupFilesInBlocks.py:142
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:188
EBSrFlag::key_type
EcalTrigTowerDetId key_type
Definition:
EBSrFlag.h:16
EBSrFlag::ttId_
EcalTrigTowerDetId ttId_
Definition:
EBSrFlag.h:41
EBSrFlag::EBSrFlag
EBSrFlag(const EcalTrigTowerDetId &tt, const int &flag)
Definition:
EBSrFlag.h:27
Exception.h
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
EBSrFlag::id
const EcalTrigTowerDetId & id() const
Definition:
EBSrFlag.h:36
EBSrFlag
Definition:
EBSrFlag.h:14
EcalTrigTowerDetId.h
EcalSrFlag
Definition:
EcalSrFlag.h:10
Generated for CMSSW Reference Manual by
1.8.5