10#include "GaudiKernel/MsgStream.h"
11#include "GaudiKernel/ServiceHandle.h"
43 StatusCode status=detStore->retrieve(em_id);
44 if(status.isFailure()){
47 status=detStore->retrieve(hec_id);
48 if(status.isFailure()){
51 status=detStore->retrieve(fcal_id);
52 if(status.isFailure()){
55 status=detStore->retrieve(lvl1_id);
56 if(status.isFailure()){
59 LArTTCell::const_iterator it = m.begin();
60 LArTTCell::const_iterator it_e = m.end();
63 std::set<Identifier> cellIdSet;
66 for (; it!=it_e; ++it) {
73 id = em_id->
channel_id(t.pn,t.sample,t.region,t.eta,t.phi);
76 id = hec_id->
channel_id(t.pn,t.sample,t.region,t.eta,t.phi);
79 id = fcal_id->
channel_id(t.pn,t.region,t.eta,t.phi);
90 <<
" region="<<t.region
91 <<
" sample="<<t.sample
92 <<
" eta="<<t.eta<<
" phi="<<t.phi
94 <<
" trig region="<<t.tregion
95 <<
" trig sample="<<t.tsample
96 <<
" trig eta="<<t.teta<<
" trig phi="<<t.tphi
97 <<
" layer="<<t.layer );
100 if(!(cellIdSet.insert(
id)).second) {
117 }
else if(t.layer==1) {
119 }
else if(t.layer==2) {
121 }
else if(t.layer==3) {
125 }
else if(t.tregion==1) {
127 }
else if(t.tregion==2) {
129 }
else if(t.tregion==3) {
133 }
else if(t.tsample==1) {
137 }
else if(t.layer==1) {
156 detStore->release() ;
165 std::map<Identifier,Identifier>::const_iterator it =
m_cell2ttIdMap.find(
id);
181const std::vector<Identifier>&
194 static const std::vector<Identifier> v;
212 LArTTCell::const_iterator it = d.begin();
213 LArTTCell::const_iterator it_e = d.end();
215 for ( ;it!=it_e;++it){
221 t2.sample = t.sample;
222 t2.region = t.region;
227 t2.tsample = t.tsample;
228 t2.tregion = t.tregion;
242 std::vector<LArTTCell_P::__t>::const_iterator it = p.m_v.begin();
243 std::vector<LArTTCell_P::__t>::const_iterator it_e = p.m_v.end();
246 for ( ;it!=it_e;++it){
252 t2.region = t.region;
253 t2.sample = t.sample;
258 t2.tregion = t.tregion;
259 t2.tsample = t.tsample;
Scalar phi() const
phi method
#define ATH_MSG_VERBOSE(x)
std::vector< LArTTCell_t > LArTTCell
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
Helper class for offline TT identifiers.
Identifier layer_id(int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const
build a layer identifier
value_type get_compact() const
Get the compact id.
Identifier channel_id(const ExpandedIdentifier &exp_id) const
Build a cell identifier from an expanded identifier.
Helper class for LArEM offline identifiers.
Identifier channel_id(const ExpandedIdentifier &exp_id) const
cell identifier for a channel from ExpandedIdentifier
Helper class for LArFCAL offline identifiers.
Identifier channel_id(const ExpandedIdentifier &exp_id) const
channel identifier for a channel from ExpandedIdentifier
Helper class for LArHEC offline identifiers.
Exception class for LAr Identifiers.
Identifier whichTTID(const Identifier &id) const
return the offline id (CaloLVL1_ID) of the TT to which a cell (CaloCell_ID) belongs
std::map< Identifier, Identifier > m_cell2ttIdMap
const std::vector< Identifier > & createCellIDvec(const Identifier &id) const
Return a vector of offline Identifiers (corresponding helpers = LArEM_ID, LArHEC_ID,...
const LArTTCell_P * getP() const
return the persistified map
void convert_to_P(const LArTTCell &t)
void set(const PDATA &t)
initialize from Nova
std::map< Identifier, std::vector< Identifier > > m_tt2cellIdMap
void convert_to_D(const LArTTCell_P &t, LArTTCell &d)
This is a database object holding the offline TT-cell map.
Structure definition of the LArTTCellMap.