10{
12 id=0;
13
14
16
17 cout<<id;
18
19 cout.width(8);
20 cout.fill('*');
21 cout<<"Hello"<<endl;
22
23 cout<<"==============EmcID Test================="<<endl;
24
26
27 cout<<"Identifier id="<<id<<endl;
28
33
34 for ( int theta=-5; theta<=10; theta++ ) {
36 }
37
40
41 cout<<"===============HltID Test================="<<endl;
42
45
46 cout<<"Identifier id="<<id<<endl;
47
55
60
61}
static Identifier crystal_id(const unsigned int barrel_ec, const unsigned int theta_module, const unsigned int phi_module)
For a single crystal.
static unsigned int getENDCAP_WEST()
static unsigned int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0)
static bool is_barrel(const Identifier &id)
Test for barrel.
static unsigned int getENDCAP_EAST()
static unsigned int theta_module(const Identifier &id)
static unsigned int getPHI_ENDCAP_MAX(const unsigned int theta)
static unsigned int phi_module(const Identifier &id)
static bool is_ef_result(const Identifier &id)
Test for data type.
static bool is_eventtype(const Identifier &id)
static Identifier data_type_id(const unsigned int detector, const unsigned int id_in_sub=0)
For a single data.
static unsigned int detector(const Identifier &id)
Values of different levels (failure returns 0)
static unsigned int getDETECTOR_MAX()
static bool is_algorithm(const Identifier &id)
static unsigned int getID_MDC_MAX()
static unsigned int id_sub_max(const Identifier &id)
static bool is_mdc_inf(const Identifier &id)
static unsigned int id_sub(const Identifier &id)
static bool is_energy(const Identifier &id)